gabriels
2012-09-18 02:42:22
I built a midi controller which has a 16x7 matrix of switches for launching clips in Ableton Live. The clips are in 16 tracks, each with 7 clips. Each switch has an associated LED which shows if that clip is playing (LED on if clip is playing...off if clip isn't playing). The state of the LEDS is controlled by note on/off messages from Live.
For simplicity, I'll illustrate with just three tracks.
Bank 1
Track1__Track2_____etc____Track16
Clip1......Clip15........ etc ......Clip99
Clip2......Clip16........ etc ......Clip100
Clip2......Clip17........ etc ......Clip101
Clip4......Clip18........ etc ......Clip102
Clip5......Clip19........ etc ......Clip103
Clip6......Clip20........ etc ......Clip104
Clip7......Clip21........ etc ......Clip105
Well, actually, there are two "banks" of clips.
A toggle switch determines which bank of clips will be launched. So...there is a bank 2 as follows.
Bank 2
Track1__Track2_____etc_____Track16
Clip8......Clip22........ etc ......Clip106
Clip9......Clip23........ etc ......Clip107
Clip10.....Clip24........ etc ......Clip108
Clip11.....Clip25........ etc ......Clip109
Clip12.....Clip26........ etc ......Clip110
Clip13.....Clip27........ etc ......Clip111
Clip14.....Clip28........ etc ......Clip112
The problem is that, when I switch banks, the LEDs represent the status of clips (playing or not playing) for the bank i just "left behind". I would like to store the current states of all LEDs in each bank so that when I switch banks, the LEDS show which clips are playing in the bank I just switched to.
I can imagine doing this by storing a set of variables, for each bank representing which LED is on in each track of the current bank. Then I could query those variables when I switch banks, and turn on the LEDS that represent the clips that are playing.
But this seems tedious and plodding. Is there a clever way to do this?
Thanks,
Gabriel
For simplicity, I'll illustrate with just three tracks.
Bank 1
Track1__Track2_____etc____Track16
Clip1......Clip15........ etc ......Clip99
Clip2......Clip16........ etc ......Clip100
Clip2......Clip17........ etc ......Clip101
Clip4......Clip18........ etc ......Clip102
Clip5......Clip19........ etc ......Clip103
Clip6......Clip20........ etc ......Clip104
Clip7......Clip21........ etc ......Clip105
Well, actually, there are two "banks" of clips.
A toggle switch determines which bank of clips will be launched. So...there is a bank 2 as follows.
Bank 2
Track1__Track2_____etc_____Track16
Clip8......Clip22........ etc ......Clip106
Clip9......Clip23........ etc ......Clip107
Clip10.....Clip24........ etc ......Clip108
Clip11.....Clip25........ etc ......Clip109
Clip12.....Clip26........ etc ......Clip110
Clip13.....Clip27........ etc ......Clip111
Clip14.....Clip28........ etc ......Clip112
The problem is that, when I switch banks, the LEDs represent the status of clips (playing or not playing) for the bank i just "left behind". I would like to store the current states of all LEDs in each bank so that when I switch banks, the LEDS show which clips are playing in the bank I just switched to.
I can imagine doing this by storing a set of variables, for each bank representing which LED is on in each track of the current bank. Then I could query those variables when I switch banks, and turn on the LEDS that represent the clips that are playing.
But this seems tedious and plodding. Is there a clever way to do this?
Thanks,
Gabriel