I'm not sure exactly what your data is, probably because I've never sent OSC through m4l in this method (meaning I never use "on OSC" executed scripts)
I'm assuming OSC_Args is your list of labels maybe?? One thing is you can't set the labels attribute with just one value (it will just change the first switch's label).
you need to set all the labels at once with an array, not with individual index values.
You are using [udpsend] right? Just send an array(list) of the names over to lemur into a matching expression. Then set the labels attribute to that expression
Maybe you can send me your max patch if you are still having trouble though.
Ok, I attached a picture at the bottom of some posibilites you can do for a max patch. I would probably use the [thresh] object, BUT once I used a thresh to catch some API stuff and turn it into a list, and for some reason I don't understand it acted very laggy and strange... So if you have trouble try the zl.group or let me know.
Also, witht he uzi object, you shouldn't need a counter there (unless there is some issue you need to use it for). You can just use the far right outlet on the uzi as an index count, and add your offset to that.
I would execute the script that renames the pads to "on expression" and then make the expression the one that has the list of pad names. Therefore whenever you change that expression, the pads are renamed.
Hope it helps.
Attachments
Screen Shot 2015-06-24 at 2.16.31 PM.png (87.95 KiB) Viewed 3598 times
Ok good. Yea I just looked at my patch that I compiled a list with strings from API objects. I didn't end up using thresh or zl.group because I had issues with both. I just sent the values individually, but each value I added an index integer before it. Then when the values arrived at lemur I put them into a larger array at the corresponding index, and then the larger array becomes the array that is for the labels attribute.
So if zl.group gives you trouble, maybe try a method like that? (if you need to keep the correct ordering, sometimes zl.group may get off depending on how the values arrive)
So if zl.group gives you trouble, maybe try a method like that?
No problems so far using zl.group. Will look into the other options at a later date. Thanks.
I did start by looking at visible_drum_pads property but I could not figure out how to use it. And there was a lack of examples/tutorials online that I could use.