Forums > Max For Live

How to detect ableton transport start

June 13, 2013 | 7:41 am

Sup fellas

Is there an object i can use that will send a bang when the ableton transport starts?
I dont want to use "metro @autostart" as that will continue sending bangs, i just need one bang when the ableton transport starts

Thanks


June 13, 2013 | 10:27 am

[timepoint 1 1 0] sends a bang at start since Live automatically jumps to the start position.


June 13, 2013 | 12:36 pm

Thank you sir


June 13, 2013 | 1:59 pm

also, interfacing with the [transport] option is typically useful for this kind of stuff – combined with timepoint you get some good control.


June 13, 2013 | 3:31 pm

Do you want to receive a bang also when Live starts anywhere else than 1.1.0 ? as this can also happen if you start with shift-space of from an insertion point in the arrange grid. If this is the case, you’ll have to observe Live’s transport through the LOM.

<code>

– Pasted Max Patch, click to expand. –

</code>


June 13, 2013 | 10:00 pm

Thanks guys.

What am i doing wrong here, when i play this midi clip in ableton it plays fine and in tempo but when i use the seq object this way it goes off tempo:

<code>

– Pasted Max Patch, click to expand. –

</code>


June 14, 2013 | 1:04 am

I’m not familiar with the seq object but I think this might come from the fact that your tempo division in [tempo] is set à 96 (the maximum) and [seq] might wait for higher resolution ticks. It isn’t clear to me in the seq help what the ‘start 1024′ for normal speed playing refers to.


June 14, 2013 | 2:35 am

The tempo division 96 is correct (same as midi clock).

However, you can’t simply retrigger playback from the last midi event (right outlet of seq) since it happens before the last bar has ended. Instead you need to retrigger playback every x bars if x is the length of the midi file in bars, ie. basically the same what Live does with looped midi clips.


June 14, 2013 | 3:54 am

Hi Broc

Its a 4 bar midi loop, i know by looking at it, how would i know what bar it is on in the Max effect and how would i retrigger at the end of the last bar?



Lee
June 14, 2013 | 4:04 am

you can always observe is_playing on the live_set – this sends a 1/0 when transport is started/stopped


June 14, 2013 | 4:06 am

im playing a 4 par piano loop in live and in the seq object im tryna play a 4 bar drum loop, but i can hear the drum loop is off tempo when played in the seq object. If i take the drum midi loop and play it in an ableton clip, it plays perfectly and loops perfectly with the piano


June 14, 2013 | 4:51 am

If already the first play (without loop) is out of sync I’d suspect that the tempo control with ticks doesn’t work as expected inside the seq object. Sync with ticks is inherently problematic as the tempo must be calculated from tick intervals which can only be done after at least 2 ticks are received.


June 14, 2013 | 5:50 am

that makes absolute sense broc, it will never be synced in that case….hmmm so what is the solution, is there anyway for me to specify the tempo manually then before hitting play? Im tryna play the midi file at 60bpm


June 14, 2013 | 6:09 am

Quote from the ref page:

"The word start, followed by a number, plays the stored sequence at a tempo determined by the number. The message start 1024 indicates normal tempo. If the number is 512, seq plays the sequence at half the original recorded speed, start 2048 plays it back at twice the original speed, and so on."


June 14, 2013 | 7:09 am

"The message start 1024 indicates normal tempo" thats normal relative to the tempo of the midi file, to play it at a tempo of my choice i guess i would need to know the tempo of the midi file first before hand so that i can get a number to play the file with


June 14, 2013 | 8:44 am

Yes, but you can find out the tempo of your midi file by dragging it into an empty Live set. The global tempo of Live will then be adjusted to the tempo of that file, if it contains an explicit tempo definition. Midi files without tempo definition are considered to have standard tempo 120.


June 15, 2013 | 8:05 pm

Isn’t there a built-in patcher that comes with Max for Live that is made EXACTLY for this? It outputs a bang at the exact time that you start Live’s transport.

It’s [m4l.api.observetransport].


June 16, 2013 | 1:11 am

Keep in mind that the Live API doesn’t ensure accurate timing as it runs on low priority threads.


Viewing 18 posts - 1 through 18 (of 18 total)