Hi there, I need someone to answer this. What is the most preferred way of comparing two values using param_bigger or param_smaller?
I had an indefinite script running that goes like this
repeat_start_instant checkLoop 30ms & loop_position & param_bigger "get_var loopPos" ? sampler_play 1 & repeat_stop checkLoop : nothing
At some point it started to miss the check point and hence nothing happed. If I just check the condition directly like
loop_position & param_bigger "get_var loopPos" ? sampler_play 1 & repeat_stop checkLoop : nothing
It works and it doesn't miss the check point.
Huh, I might say that my machine isn't fast enough hence the misses but if I now reverse the logic and use param_smaller it works.
repeat_start_instant checkLoop 30ms & get_var loopPos & param_smaller "loop_position" ? sampler_play 1 & repeat_stop checkLoop : nothing
So why is that? So do we check the constant value against the changing one or vice versa?
I had an indefinite script running that goes like this
repeat_start_instant checkLoop 30ms & loop_position & param_bigger "get_var loopPos" ? sampler_play 1 & repeat_stop checkLoop : nothing
At some point it started to miss the check point and hence nothing happed. If I just check the condition directly like
loop_position & param_bigger "get_var loopPos" ? sampler_play 1 & repeat_stop checkLoop : nothing
It works and it doesn't miss the check point.
Huh, I might say that my machine isn't fast enough hence the misses but if I now reverse the logic and use param_smaller it works.
repeat_start_instant checkLoop 30ms & get_var loopPos & param_smaller "loop_position" ? sampler_play 1 & repeat_stop checkLoop : nothing
So why is that? So do we check the constant value against the changing one or vice versa?
Posted 2 days ago @ 11:41 am
Depends on what the value of var loopPos, loop length and the pitch.
Some combination of values it might never hit.
Some combination of values it might miss sometimes.
There is no preference in parameter order.
Some combination of values it might never hit.
Some combination of values it might miss sometimes.
There is no preference in parameter order.
Posted 2 days ago @ 12:02 pm
Okay but for me it seems checking the dynamic value against the constant works best. Thanks though for clarifying.
Posted 2 days ago @ 12:19 pm