How change the number of abstraction patch according to the number of track ?

    Sep 24 2011 | 10:06 am
    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 live_grid_track 0 live_grid_track 1 live_grid_track 2
    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.
    Thank you for your help.
    Best regards.

    • Sep 24 2011 | 6:28 pm
      I'm not too sure I understand the question.
      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.
    • Sep 27 2011 | 1:54 pm
      I understand. I'm going to change my program. Thank you