Get bang when selecting the current track

ZeroValue's icon

Hi,
I wish to generate a bang when I select the current track.
Looking to LOM I saw the [M4L.api.GetSelectedTrackIndex], but not able to generate a bang at each selection.

Not sure if it's possible ?!

tyler mazaika's icon

A "get" message to a [live.object] means you query that information at the time you want it. What you are asking for is instead to be notified when the track selection changes. You do this using [live.observer].

ZeroValue's icon

make sense, this is what I did, but I'm pretty sure there's a more efficient / smarter way to do this

Max Patch
Copy patch and select New From Clipboard in Max.

Michael DeFiore's icon

Thanks so much for posting this; you saved me hours and hours of work trying to figure that out.