Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: How does one test if a cue_loop is active?
How does one test if a cue_loop is active?

deck 1 cue_loop 2 ? action1 : action2

Does NOT work
 

Posted Wed 09 Jun 21 @ 8:57 am
Havent tried cue_loop 2, but if I remember its a "blink" on/off hardcoded, so I guess it might return true / untrue at each blink and not work ideally as you intended.


 

Posted Wed 09 Jun 21 @ 11:05 am
would be great to be able to test if one is in a cued loop:

for example that cue_loop 2 is active (looping at hotcue 2)
and if one could test for the cue_loop being active, one could create a script to go to another position in the track or go to another loop...etc.


--------------------------
the work around becomes very cumbersome it seems (let me know if there is an easier way) and hopefully there is a way to test for a cue_loop being active that I am not aware of.

Workaround would be to the cumbersome script with the following logic to test if cue_loop 2 is active.:

1) use get_active_loop to get the number of beats in current loop
2) use setting globalQuantize to set it to the result get_active_loop
3) then query hot_cue 2 && loop ? action 1 : action 2 OR hot_cue 2 ? loop ? action 1 : nothing : action 2
4) then set globalQuantize back to ones preferred value.


 

Posted Wed 09 Jun 21 @ 10:29 pm