Imposing functions on tracks by track name

Questions and discussion about building and using Max for Live devices
Post Reply
Posts: 17
Joined: Mon Feb 01, 2010 7:44 pm

Imposing functions on tracks by track name

Post by abbey1 » Wed Feb 16, 2011 9:13 am

This may sound more complicated than it is. I am using dummy clips on my drum group. For my delay dummy clip, I would like Max to automatically find the track titled "Kik" and stop that track when the Delay dummy clip is selected. As a result, I will just be delaying the upper frequency percussion. This would be easy to do if I were to know that my Kik track will always be in the same position in my session. But if I move my Kik track for some reason, then it will be muting the track ID that the kick drum used to be on. I will have to go adjust each path in the Max patch before it will work properly again.

So basically what I'm asking is: Can you find out what a track ID is based on the name of the track? Can I query a list of all track names and find out which track ID is called "Kik", and then have max act out its duties accordingly on that track? I am just thinking about saving myself a lot of time down the road in this session, as well as when I want to start a new session. I may want to have a different layout but still use the same features of my patch.

Posts: 560
Joined: Wed May 17, 2006 1:18 am

Re: Imposing functions on tracks by track name

Post by Surreal » Wed Feb 16, 2011 6:07 pm

yes you can. track has a name property. ... model.html

Iterate through all of the tracks and stop anyone with the appropriate name.

the thing you will fight is QUICKLY doing this. it won't be terrible, but scaling is an issue I always worry about.

Posts: 17
Joined: Mon Feb 01, 2010 7:44 pm

Re: Imposing functions on tracks by track name

Post by abbey1 » Thu Feb 17, 2011 1:31 am

Thanks a lot. This is what I came up with to find what track the Kik is on. Seems to work fine when I move the track around. Any other ideas of how to do this or anyone pointing out bugs would be cool. The pack object I am not too sure about because I will have to delace it again to get the ID number. There's probably an easier way to do this.


Post Reply