Sign In:     


Forum: VirtualDJ Technical Support

Topic: Loop Move / Beat Jump combo using encoders

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

Hi folks,

I want to recreate this functionality I have in Traktor, so hoping there's a way to do it in VDJ.

Using an encoder, I want to move the loop forward or back, by the length of that loop.

Additionally, even when the loop is off, I want to jump forward and back by the size of the (currently inactive) loop.


Here's what I want each encoder/btn to do...

PAD_ENC2_BTN: toggle loop on/off
PAD_ENC2: double / halve the loop.
PAD_ENC1_BTN: toggle loop on/off
PAD_ENC1: loop move by plus/minus the length of the loop (or, if loop is off, beat jump plus/minus the same length as the (currently inactive) loop length)

Any ideas how I should script this? (be gentle, I'm new to VDJscript)
Thanks!
 

Posted Fri 11 Nov 16 @ 7:20 am
PAD_ENC2_BTN: loop
PAD_ENC2: param_smaller 0 ? loop_half : loop_double
PAD_ENC1_BTN: loop
PAD_ENC1: loop ? param_smaller 0 ? loop_move -100% : loop_move +100% : loop_select 0.03 ? param_smaller 0 ? goto -0.03125 : goto +0.03125 : loop_select 0.06 ? param_smaller 0 ? goto -0.0625 : goto +0.0625 : loop_select 0.12 ? param_smaller 0 ? goto -0.125 : goto +0.125 : loop_select 0.25 ? param_smaller 0 ? goto -0.25 : goto +0.25 : loop_select 0.5 ? param_smaller 0 ? goto -0.5 : goto +0.5 : loop_select 1 ? param_smaller 0 ? goto -1 : goto +1 : loop_select 2 ? param_smaller 0 ? goto -2 : goto +2 : loop_select 4 ? param_smaller 0 ? goto -4 : goto +4 : loop_select 8 ? param_smaller 0 ? goto -8 : goto +8 : loop_select 16 ? param_smaller 0 ? goto -16 : goto +16 : loop_select 32 ? param_smaller 0 ? goto -32 : goto +32
 

Thanks PhantomDeejay

Line two didn't seem to work, but cutting it back to just this seems to work.
PAD_ENC2: loop_double

Is it possible to add some code to the PAD_ENC1 string, to enable beat jump forward or back with the loop active, so that the playhead jumps with the loop? (to the same point in the loop's new location?)

eg. With a 4 beat loop, turning the encoder to the right would jump the loop AND the playhead forward 4 beats.

edit: Actually, having played with it for a while, I think I prefer this coding... but I'm still curious how to code it as I've described above. Cheers!
 

You can try this:

loop_select 0.03 ? param_smaller 0 ? loop ? loop_move -100% & goto -0.03125 : goto -0.03125 : loop ? loop_move +100% & goto +0.03125 : goto +0.03125 : loop_select 0.06 ? param_smaller 0 ? loop ? loop_move -100% & goto -0.0625 : goto -0.0625 : loop ? loop_move +100% & goto +0.0625 : goto +0.0625 : loop_select 0.12 ? param_smaller 0 ? loop ? loop_move -100% & goto -0.125 : goto -0.125 : loop ? loop_move +100% & goto +0.125 : goto +0.125 : loop_select 0.25 ? param_smaller 0 ? loop ? loop_move -100% & goto -0.25 : goto -0.25 : loop ? loop_move +100% & goto +0.25 : goto +0.25 : loop_select 0.5 ? param_smaller 0 ? loop ? loop_move -100% & goto -0.5 : goto -0.5 : loop ? loop_move +100% & goto +0.5 : goto +0.5 : loop_select 1 ? param_smaller 0 ? loop ? loop_move -100% & goto -1 : goto -1 : loop ? loop_move +100% & goto +1 : goto +1 : loop_select 2 ? param_smaller 0 ? loop ? loop_move -100% & goto -2 : goto -2 : loop ? loop_move +100% & goto +2 : goto +2 : loop_select 4 ? param_smaller 0 ? loop ? loop_move -100% & goto -4 : goto -4 : loop ? loop_move +100% & goto +4 : goto +4 : loop_select 8 ? param_smaller 0 ? loop ? loop_move -100% & goto -8 : goto -8 : loop ? loop_move +100% & goto +8 : goto +8 : loop_select 16 ? param_smaller 0 ? loop ? loop_move -100% & goto -16 : goto -16 : loop ? loop_move +100% & goto +16 : goto +16 : loop_select 32 ? param_smaller 0 ? loop ? loop_move -100% & goto -32 : goto -32 : loop ? loop_move +100% & goto +32 : goto +32
 

This is working great, thanks...

Just one thing:

Currently, hitting "cue" ( cue_stop ), jumps the loop back to the existing cue marker.

What I'd like, is to have cue_stop set the cue marker to the beginning of the current loop, and cue the track up at that marker.

How would I do that?

(Usage: Allows me to jump the loop back and forward to find the looped section I want, then cue that loop up, ready to go, with a single key press.)

 



(Old topics and forums are automatically closed)