How to detect transport start/stop?

rydan's icon

Noob question. How do I detect transport start/stop (that is, how can I get a message or "bang" when the live transport starts, and another message or "bang" on another output when the transport stops?

I have been using the transport object, together with a free running metro object to detect stop, but that feels a lot like a workaround, and doesn't work properly if I want to detect the exact moment the transport starts (for resetting stuff after stop, it's good enough)

Andrew Pask's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Here are 2 ways of doing it

rydan's icon

Ah, plugsync was pretty much what I was looking for. Thanx!!

Nyrk Music's icon

This article is 7 years old but it is still useful! thanks

danielleoh's icon

Yeah, now it's eleven years old and it just saved me from total madness. Thanks again!!!

Joel Fairstein's icon

Me too, thanks!

DaSheng Hen's icon

Thanks for your help!

Thorne Brandt's icon

I noticed this only fires a bang when changing from 'playing' to 'stopped' ( or vice versa) "is_playing" for the live.observer is the same way.

Is there a way to detect if the stop has been called when live is already stopped?

I note that I use this as a kill / panic switch when I'm using certain devices. For example, in the built in Live Arpeggiator, you can test it while live is stopped, using the "hold" button will play an indefinite sequence, which you stop by re-hitting stop ( after live is already stopped )