could you describe what exactly you are trying to achive with the patch? Then I can have a look and maybe suggest an easier alternative...
Please also look at the circuits togglebutton
With buttongroup you can group up to eight buttons into one group so that at any time always exactly one is being selected.
If you press one of the buttons all others will be deselected.
Here is an example where at I1, I2 and I3 you attach the V/Oct output of three sequencers.
At I5, I6 and I7 you attach their according gate outputs.
With the buttons 1, 3 and 5 you can select the V/Oct sourse, with 2, 4 and 6 the gate source
(independently!) And the result is output at O1 (V/Oct) and O2 (Gate).
Please note that in the latest version in buttongroup output1
have been renamed to led1
Code: Select all
# Switch pitch with buttons 1, 3 and 5
button1 = B1.1
button2 = B1.3
button3 = B1.5
led1 = L1.1
led2 = L1.3
led3 = L1.5
value1 = I1
value2 = I2
value3 = I3
output = O1
# Switch gates with buttons 2, 4 and 6
button1 = B1.2
button2 = B1.4
button3 = B1.6
button4 = B1.8
led1 = L1.2
led2 = L1.4
led3 = L1.6
led4 = L1.8
value1 = I5
value2 = I6
value3 = I7
output = O2
Of ourse now you could replace some of the inputs with internal sources like euclidean