Align event in MAX with Live beat

    Dec 23 2013 | 8:51 pm
    Does anyone have a good method for aligning an event in MAX with Live? I am retrieving the BPM from live using the code below so that is OK however I want to trigger an event so that it starts accurately with e.g the "one" in a bar (i.e aligned with the metronome..)
    Code to get tempo: liveapi = new LiveAPI(this.patcher); liveapi.path = "live_set"; bpm = api.get("tempo");

    • Dec 23 2013 | 9:15 pm
      just use transport, metro, timepoint and such. They sync up very nicely, no need to sift through the api.
      ...transport will also give you the tempo, should you need it for other stuff, of course.
    • Dec 23 2013 | 9:32 pm
      Thanks for the advise. I quickly tested with transport but how can I get it to sync with Ableton?
    • Jan 07 2014 | 4:22 pm
      What are you triggering and how accurate do you want it to be? If you're looking for sample accurate triggering the best way I find is to use a [phasor~] with the lock attributed activated.
      as for Wetterberg's suggestion transport is always slaved to Live's clock when used within an M4L context.