VDJPedia



 Adjust loop length using a knob or slider

Last edit by jrnandre, Professional edition user on Sat 19 Oct 13 @ 8:26 pm

loop ? param_smaller 12% ? loop 0.125 ? nothing : loop 0.125 : param_smaller 24% ? loop 0.25 ? nothing : loop 0.25 : param_smaller 36% ? loop 0.5 ? nothing : loop 0.5 : param_smaller 48% ? loop 1 ? nothing : loop 1 : param_smaller 60% ? loop 2 ? nothing : loop 2 : param_smaller 72% ? loop 4 ? nothing : loop 4 : param_smaller 84% ? loop 8 ? nothing : loop 8 : loop 16 ? nothing : loop 16 : nothing


To invert the behaviour of the slider, add param_invert, e.g:

loop ? param_invert & param_smaller 12% ? loop 0.125 ? nothing : loop 0.125 : param_smaller 24% ? loop 0.25 ? nothing : loop 0.25 : param_smaller 36% ? loop 0.5 ? nothing : loop 0.5 : param_smaller 48% ? loop 1 ? nothing : loop 1 : param_smaller 60% ? loop 2 ? nothing : loop 2 : param_smaller 72% ? loop 4 ? nothing : loop 4 : param_smaller 84% ? loop 8 ? nothing : loop 8 : loop 16 ? nothing : loop 16 : nothing


NOTE: To adjust loop length with an endless encoder knob (One that can be turned continuously with no stopping point), use:

param_greater 0 ? loop_double : loop_half


NOTE: For some types of endless encoder, you may need to use param_smaller instead of param_greater or 0% instead of 0, e.g:

param_smaller 0 ? loop_double : loop_half


param_greater 0% ? loop_double : loop_half


Return to VDJscript examples...