Getting current channel info in M4L from live.observer

Peter Dines's icon

In M4L, what path or message do I send live.observer to get the playing_slot_index for the current channel the patch is in? Or do I have to specify / hardcode the channel by number?

Evan's icon

send (path this_device canonocal_parent) into a live.path

Peter Dines's icon

Thank you! Unfortunately I get the message: live.path: component 'playing_slot_index' is not an object

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

You need to observe the property 'playing_slot_index' with a live.observer. Use t path I provided in the previous post.

Peter Dines's icon

Ah, I see - you need to pick out playing_slot_index with a separate property message box. I was sticking it in with the path. Thanks so much for the example, this works perfectly. Cheers!