how ’assign/target’ names of tracks in M4L device

Questions and discussion about building and using Max for Live devices
Post Reply
danny klim
Posts: 71
Joined: Wed May 24, 2017 1:34 pm

how ’assign/target’ names of tracks in M4L device

Post by danny klim » Sun Jul 22, 2018 7:33 pm

Hi, i'm trying to figure out how to ’assign/target’ names of tracks to a M4L device, Could you please help?

I downloaded the float mixer m4l device from http://maxforlive.com/library/device/1295/float-mixer. It works well but just shows the first 20 tracks and each track is ‘assigned/targeted’ by track number. I want to assign the faders to a specific selection of tracks (like the master track, keys track, drums group track) and I want to 'assign/target' the faders by track name (instead of track number), so that it won’t break if i move track ordering around.


I tried changing the patches for the faders for a few tracks to the track name but the tracks aren’t responding. I tried changing 3 tracks (which were previously targeted/assigned to faders 16-18) and changed both the name of the subpatcher and the 3 parts of each subpatch where it was previously assigning/target the track number to the track name instead (Master, Keys, and King Bass). You can see the changes I made in the first picture below, and what a patch looked like previously in the second picture below. Am I missing some sort of formatting or ordering of words incorrectly or something?


How can I assign/target the faders in the patch by track name instead of track number?


https://www.dropbox.com/s/we2jvr5sjtcy3 ... 6.png?dl=0

https://www.dropbox.com/s/x7kwnfo4qxqw7 ... 2.png?dl=0


Thanks!

S4racen
Posts: 5106
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: how ’assign/target’ names of tracks in M4L device

Post by S4racen » Mon Jul 23, 2018 6:46 am

First you'll need to get all the names of the tracks, then use those to fill a umenu or similar, then you'll need take the index number of the selection to turn it back into a path.

As you can probably guess there is no "select by name" option.

Cheers
D

danny klim
Posts: 71
Joined: Wed May 24, 2017 1:34 pm

Re: how ’assign/target’ names of tracks in M4L device

Post by danny klim » Wed Jul 25, 2018 2:47 am

Thank you.

Could you please explain or provide example about how to " then use those to fill a umenu or similar, then you'll need take the index number of the selection to turn it back into a path"?

I tried adding the umenu object (and the example in 'help') to the patch, but got confused quickly ( https://www.dropbox.com/s/4vie0nr9yujya ... 8.png?dl=0 ).

First off, I couldn't figure out how to change the contents of the menu to the track names. How do I do this?

Secondly, how and where would I connect the umenu object to the rest of the patch? What does "take the index number of the selection to turn it back into a path" mean?

S4racen
Posts: 5106
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: how ’assign/target’ names of tracks in M4L device

Post by S4racen » Wed Jul 25, 2018 6:10 am

Hi Danny, Sorry what you're asking is really quite advanced, i'd stick with the numbers as thats the end game anyway...

Cheers
D

Post Reply