Hi,
I'm back to creating scripts for Virtual DJ 2020 (v8.4) and am lost trying to understand 2 functions:
1) repeat_start_instant:
- Does this function repeat from the beginning of the script until the repeat_stop? (or)
- Does this function repeat everything after the repeat_start_instant call until the repeat_stop? (or)
- Does this function repeat everything until a delimiter like : and return back to where the repeat_start_instant is called? (or)
- Does it repeat in some other way not mentioned?
(and what if the repeat_stop is never used, will part of the script loop forever until VDJ is closed?)
2) param_bigger: (for example sampler_volume 2 & param_bigger 99% ? true action : false action)
- Do I need a 2nd : after the false action to end the conditional statement if my variable doesn't meet either condition and I want it to bypass the condition?
I'm back to creating scripts for Virtual DJ 2020 (v8.4) and am lost trying to understand 2 functions:
1) repeat_start_instant:
- Does this function repeat from the beginning of the script until the repeat_stop? (or)
- Does this function repeat everything after the repeat_start_instant call until the repeat_stop? (or)
- Does this function repeat everything until a delimiter like : and return back to where the repeat_start_instant is called? (or)
- Does it repeat in some other way not mentioned?
(and what if the repeat_stop is never used, will part of the script loop forever until VDJ is closed?)
2) param_bigger: (for example sampler_volume 2 & param_bigger 99% ? true action : false action)
- Do I need a 2nd : after the false action to end the conditional statement if my variable doesn't meet either condition and I want it to bypass the condition?
Posted Mon 13 Jan 20 @ 12:24 am
Welcome back
1 the second one, till the script ends
you can in some cases "break it up" if your script allows it.
repeat_start_instant 'rsiTwoSteps' 30ms 2 & cycle 'counterVar' 2 & var 'counterVar 1 ? FIRST LOAD OF SCRIPT : SECOND LOAD OF SCRIPT
something silly I just thought up, but I'm sure you'll get it
repeat_start_instant 'rsiTwoSteps' 30ms 2 & repeat_start_instant 'rsiFirstStep' !? repeat_start_instant 'rsiFirstStep' 30ms & FIRST LOT OF SCRIPT [since there's no repeat count you'd need a condition to repeat_stop 'rsiFirstStep' ] : repeat_start_instant 'rsiSecondStep' 30ms & repeat_start_instant 'rsiFirstStep' !? SECOND LOT OF SCRIPT [since there's no repeat count you'd need a condition to repeat_stop 'rsiSecondStep' ]
[a rare showing of the '!?' inverse query, useful sometimes]
2 param_bigger is a binary choice, it's either > or its <= .
1 the second one, till the script ends
you can in some cases "break it up" if your script allows it.
repeat_start_instant 'rsiTwoSteps' 30ms 2 & cycle 'counterVar' 2 & var 'counterVar 1 ? FIRST LOAD OF SCRIPT : SECOND LOAD OF SCRIPT
something silly I just thought up, but I'm sure you'll get it
repeat_start_instant 'rsiTwoSteps' 30ms 2 & repeat_start_instant 'rsiFirstStep' !? repeat_start_instant 'rsiFirstStep' 30ms & FIRST LOT OF SCRIPT [since there's no repeat count you'd need a condition to repeat_stop 'rsiFirstStep' ] : repeat_start_instant 'rsiSecondStep' 30ms & repeat_start_instant 'rsiFirstStep' !? SECOND LOT OF SCRIPT [since there's no repeat count you'd need a condition to repeat_stop 'rsiSecondStep' ]
[a rare showing of the '!?' inverse query, useful sometimes]
2 param_bigger is a binary choice, it's either > or its <= .
Posted Mon 13 Jan 20 @ 1:11 am
Hi thanks @locodog
I'm just asking because of the script I currently pasted in another thread to increase and decrease volume isn't working like I thought it might:
https://virtualdj.com/forums/232857/General_Discussion/Auto_sample_volume_up_then_down_script.html
I'm just asking because of the script I currently pasted in another thread to increase and decrease volume isn't working like I thought it might:
https://virtualdj.com/forums/232857/General_Discussion/Auto_sample_volume_up_then_down_script.html
Posted Mon 13 Jan 20 @ 1:22 am
seen & answered.
Posted Mon 13 Jan 20 @ 1:57 am