Hi,
I'm trying to use a 2 values switch to change some matrix's stuff :
- props.on
- props.off
- props.preArgs
So... let's say, if switch == 1, i want :
- props.on = [37+$,127]
- props.off = [28+$,127]
- props.preArgs = [10,@{'this'}]
and if switch==2, i want :
- props.on = 127
- props.off = 10
- props.preArgs = [10,60+$]
An here i am with my unworking thing :
props.on = "#{@{'switch_VST'}==2 ? '127' : '"+[37+$,127]+"'}"
props.off = "#{@{'switch_VST'}==2 ? '0' : '"+[28+$,127]+"'}"
props.address="/control"
props.preArgs="#{@{'switch_VST'}==2 ? '"+[10,60+$]+"' : '"+[10,@{'this'}]+"'}"
props.target="midi:OSC"
return props
I don't even remember how i had the good "switch==2" returns... but now... i'm stuck.
"Cerise sur le gâteau", i'll have to set a prop.script too, in order to make my matrix works as a switch, when switch==2... I know how to do all those things separately... but this way...
Thanks