Hi there,
currently I have those - for me - very complicated scripts on 6 custom pads. I really would like to have them bound on just one pad. Is that any possible?
currently I have those - for me - very complicated scripts on 6 custom pads. I really would like to have them bound on just one pad. Is that any possible?
deck master repeat_start 'dmx1' ? on & deck master repeat_stop 'dmx1' : deck master repeat_start 'dmx1' 25ms & deck master get_beat & param_bigger 0.5 ? get_var '4-4' 1 ? set_var '4-4' 0 & os2l_button '4-4' on & wait 200ms & os2l_button '4-4' off : nothing : set_var '4-4' 1
deck master repeat_start 'dmx2' ? on & deck master repeat_stop 'dmx2' : deck master repeat_start 'dmx2' 25ms & deck master get_beat_num 1 ? get_var '1-4' 1 ? set_var '1-4' 0 & os2l_button '1-4' on & wait 200ms & os2l_button '1-4' off : nothing : set_var '1-4' 1
deck master repeat_start 'dmx3' ? on & deck master repeat_stop 'dmx3' : deck master repeat_start 'dmx3' 25ms & deck master get_beat_bar 8 & param_invert & param_bigger 0.98 ? get_var '1-8' 1 ? set_var '1-8' 0 & os2l_button '1-8' on & wait 200ms & os2l_button '1-8' off : nothing : set_var '1-8' 1
deck master repeat_start 'dmx4' ? on & deck master repeat_stop 'dmx4' : deck master repeat_start 'dmx4' 25ms & deck master get_beat_bar 16 & param_invert & param_bigger 0.98 ? get_var '1-16' 1 ? set_var '1-16' 0 & os2l_button '1-16' on & wait 200ms & os2l_button '1-16' off : nothing : set_var '1-16' 1
deck master repeat_start 'dmx5' ? on & deck master repeat_stop 'dmx5' : deck master repeat_start 'dmx5' 25ms & deck master get_beat_bar 32 & param_invert & param_bigger 0.98 ? get_var '1-32' 1 ? set_var '1-32' 0 & os2l_button '1-32' on & wait 200ms & os2l_button '1-32' off : nothing : set_var '1-32' 1
deck master repeat_start 'dmx6' ? on & deck master repeat_stop 'dmx6' : set_var '$vu_summe' 0 & deck master repeat_start 'dmx6' 30ms -1 & param_add `get_vu_meter_peak` `get_var '$vu_summe'` & set_var '$vu_summe' & cycle $instance 4 & var $instance 0 ? get_var '$vu_summe' & param_multiply 0.25 & set_var '$vu_average' & set $vu_summe 0 & get_var '$vu_average' & param_smaller 0.1 ? os2l_cmd 100 0% : get_var '$vu_average' & param_smaller 0.2 ? os2l_cmd 100 50% : get_var '$vu_average' & param_smaller 0.4 ? os2l_cmd 100 100% : get_var '$vu_average' & param_smaller 0.6 ? os2l_cmd 100 160% : get_var '$vu_average' & param_smaller 1 ? os2l_cmd 100 255% : nothing
Posté Wed 20 Dec 23 @ 10:58 am
& is used to execute several scripts.
Since you do have some repeat_start in there as well, you may want to use braces to ensure each command is separated though.
(a) & (b) & (c)
I am guessing the scripts could also probably be simplified executing all in a single repeat_start if you want them all to run all the time anyway, but I didn't try to understand what they actually do
Since you do have some repeat_start in there as well, you may want to use braces to ensure each command is separated though.
(a) & (b) & (c)
I am guessing the scripts could also probably be simplified executing all in a single repeat_start if you want them all to run all the time anyway, but I didn't try to understand what they actually do
Posté Wed 20 Dec 23 @ 12:30 pm
That's it! Thanks a lot. Didn't know about the braces...
Posté Wed 20 Dec 23 @ 12:57 pm