Playing with tempo in Max for Live

    Nov 28 2012 | 12:12 am
    Hi All
    Im building a patch so I can save a tempo in a number box, and then slow down or speed up the tempo using Live, returning to the saved tempo at the touch of a button, on the 1st beat of the bar.
    Ive got everything working, except I seem to get a lag between hitting the button and the original tempo kicking back in.
    Its almost like the action is in a queue. Here is the patcher:
    Hitting 'Capture' saves the current Live tempo.
    Now alter the tempo in Live (slow it right down).
    Now hit 'Bounce'
    The tempo returns to the captured value on the 1st beat of the bar (but seems to run slightly laggy).
    I wondered if anyone could shed some light on this for me?

    • Nov 28 2012 | 11:49 am
      Keep in mind that the Live API generally doesn't ensure 100% accurate timing. So the effect of 'set tempo $1' may be delayed by some unpredictable amount.
    • Nov 28 2012 | 1:41 pm
      I would unfortunately expect this behavior. MIDI clock is not super tight, and never will be, especially in between applications.
      For example, if I send MIDI from Live to one of my Elektron Machines, and see the incoming tempo, it fluctuates by a value of 0.5 +/-.
      I hope there's a solution out there for you, just keep in mind that a lot of people have problems with MIDI sync/timing.