I’m building a M4L patch to control Live with my control surface "monome 256" : to control launch/stop clip, scenes…
For launch clip, I use a abstraction for each track in my live set.
This abstraction call "live_grid_track + argument" (argument = N° of the track).
For exemple, if I have 3 tracks in my live set, I need to have 3 abstractions, call
Then, how change the number of abstraction in the M4L patch (without entering the patch) according to the number of track with the good argument for each abstraction ? automatically.
You want to change the argument of a patcher dynamically from within the patch? Why would you want to ? An argument is only used to set a default value, if you need to have that changed you’d normally send a message to the object.
So in this case I think your best option is to iterate over the number of tracks and call your abstraction for each track. So basically; one abstraction which can be used for all tracks.