Recursively traverse device chains

Questions and discussion about building and using Max for Live devices
Post Reply
robcapo
Posts: 6
Joined: Thu Jul 11, 2019 3:47 am

Recursively traverse device chains

Post by robcapo » Mon Sep 16, 2019 10:50 pm

Hello!

I'm currently trying to populate a [umenu] with all of the devices on a track (including devices in a rack chain).

I want to use this to create a UI so that certain buttons can be mapped to the enable button of the device.

Ideally the patcher would accept a track index in an inlet, and use it to populate the [umenu]. Then when the user makes a selection, it would output the id of the chosen device.

Anyone have high level suggestions?

I'm not sure how to send what I have right now (I've seen those base64 encoded snippets here but I can't figure out how to send it). But it doesn't work anyway. I'm using a loop with [zl iter] on the object ids, and I realized that I'm modifying the thing that i'm iterating over.

chapelier fou
Posts: 4942
Joined: Mon May 15, 2006 12:15 pm

Re: Recursively traverse device chains

Post by chapelier fou » Tue Sep 17, 2019 7:07 am

The LOM navigator could be a good starting point
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
iMac 27" Retina i5 3,2 GHz OS 10.11.3 L10.0.1 M4L.

Post Reply