So... with one button to change CC sent by my 8 knobs matrix, i had this in the props field :
"preArgs": "[1, #{@{button_id} ? 70 + $: 16 + $}]",
That's ok, and i understand it.
But now... i need not only one button, but a 4 values switch... to change CC sent.
switch value 1 -> first CC = 16, channel 1
switch value 2 -> first CC = don't know yet...
switch value 3 -> first CC = 57, channel 14
switch value 4 -> first CC = 70, channel 1
I was about to use this kind of script in the script field / or props field:
if(get('switch')==1) send('/control',1,#_{16+get('$')},get('knob#{$+1}'))
if(get('switch')==2) send('/control',...,...,...)
if(get('switch')==3) send('/control',14, 57+$,...)
if(get('switch')==4) send('/control',1, 70+$,...)
But once again... i'm lost... on how to formulate the whole thing... so... any help appreciated !