Forums > Max For Live

clip observer in M4L

March 23, 2011 | 1:24 am

Hi all,

just a quick question – ive been looking for the path to observe whether an individual clip is playing.

I know (for example the top left clip) needs the live.path pointing to ‘live_set tracks 0 clip_slots 0 clip’, and this runs into the right input of the live.observer object – ive tried a ‘property value’ message on the left input, with a num box on output – i expected to see a 1 when playing, a 0 when not, but this isnt the case.

Anyone know where im going wrong here?

Many thanks,

J


March 23, 2011 | 10:09 am

According to the documentation, clip property ‘is_playing’ cannot be observed.

http://www.cycling74.com/docs/max5/refpages/m4l-ref/m4l_live_object_model.html


March 23, 2011 | 10:44 am

but you can observe the ‘playing_status’ which will give a bang when there is a change, then you need to recheck ‘is_playing’



pid
March 23, 2011 | 12:55 pm

sorry, maybe i misunderstand, but can you not do what you want with "playing_slot_index"?:

– Pasted Max Patch, click to expand. –

March 23, 2011 | 2:04 pm

thanks all – i ended up using the playing_slot_index as above. This can be combined with a getcount tracks, and an uzi firing across tracks to read a map of which clips are playing in the grid.

J


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