Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: script for auto loop

This topic is old and might contain outdated or incorrect information.

I want to adjust the auto loop function on my controller so if no loop is engaged, when selecting auto loop it will go to a 4 beat loop. Then if I select auto loop with any loop length engaged, I would want it to cancel the loop. I am not familiar with a var script so hoping someone could help me out. I was thinking the following script would work, however it doesnt.

var 'loop' ? loop_exit : loop 4

if no loop is engaged it will jump to a 4 beat loop as expected, however if a loop other than a 4 beat loop is already engaged (e.g. 8 beat loop) and I select the button, VDJ will first go to a 4 beat loop and then disengage if I select it again. How can I amend the script so it will disengage the loop after hitting it once?

thanks!
 

Posted Fri 02 Jun 17 @ 1:59 am
djdadPRO InfinityDevelopment ManagerMember since 2005
dj5826 wrote :
if no loop is engaged it will jump to a 4 beat loop as expected, however if a loop other than a 4 beat loop is already engaged (e.g. 8 beat loop) and I select the button, VDJ will first go to a 4 beat loop and then disengage if I select it again.

simply ...
loop 4
 

Posted Fri 02 Jun 17 @ 4:24 am
Sorry, I should've mentioned I tried that already. Its the same results; if on a 8 beat loop, selecting the key will first bring it to a 4 beat loop then disengage if selected a second time.
 

Posted Fri 02 Jun 17 @ 4:13 pm
Try this:
loop ? loop : loop 4
 

Posted Fri 02 Jun 17 @ 5:27 pm
Cheers! That script functions as I'm describing. Thank You!

 

Posted Sat 03 Jun 17 @ 6:25 pm


(Old topics and forums are automatically closed)