Quick Sign In:  

Forum: VirtualDJ 8.1 Technical Support

Topic: Loop Slots

Dieses Thema ist veraltet und kann veraltete oder falsche Informationen enthalten.

What is the script to trigger a Loop Slot? Just the saved_loop? Trying to understand all of this, but I feel like I am missing something.

I am trying to map a cue button that will trigger the loop saved in a particular slot.
 

geposted Sat 13 Feb 16 @ 10:21 pm
SBDJPRO Infinity Member since 2006
saved_loop x

Where x is either a numbered slot, or a named slot such as 'beat'

If the saved_loop doesn't exist, then it will automatically be created (like hot_cues are).
 

geposted Sun 14 Feb 16 @ 1:22 am
Can it be mapped to trigger Cue 1 only if no loop is present?
 

geposted Sun 14 Feb 16 @ 1:26 am
SBDJPRO Infinity Member since 2006
Sure, it can act as a query too:

saved_loop 1 ? saved_loop 1 : hot_cue 1
 

geposted Mon 15 Feb 16 @ 3:13 am
Awesome. New to writing those.
 

geposted Mon 15 Feb 16 @ 3:18 am
Actually I have come up with a complete set of commands on how to build a "mixed" PAD MODE with hotcues and saved loops:

PAD1:
saved_loop 1 ? saved_loop 1 : hot_cue 1 ? hot_cue 1 : loop ? saved_loop 1 & loop_color 1 'orange' : hot_cue 1 & cue_color 1 'green'

SHIFT_PAD1:
saved_loop 1 ? loop_delete 1 : hot_cue 1 ? delete_cue 1 : nothing

LED_PAD1:
saved_loop 1 ? loop_load 1 ? blink 333ms ? loop_color 1 : off : off : loop_load 1 ? loop_load_prepare 1 ? param_smaller loop_position 0 ? blink 250ms ? loop_color 1 : off : blink ? loop_color 1 : off : loop_color 1 : hot_cue 1 ? cue_color 1 : off

LED_SHIFT_PAD1:
saved_loop 1 ? loop_load 1 ? blink 333ms ? loop_color 1 : off : off : loop_load 1 ? loop_load_prepare 1 ? param_smaller loop_position 0 ? blink 250ms ? loop_color 1 : off : blink ? loop_color 1 : off : loop_color 1 : hot_cue 1 ? cue_color 1 : off


The above set is for RGB pads, but you can change it to not include colors if your controller does not have colorful pads.
You may want to give this set a try as well.
 

geposted Mon 15 Feb 16 @ 4:43 am
You guys need a LIKE button on here...

Thanks for ruining my next few days while I try this out!
 

geposted Mon 15 Feb 16 @ 4:45 am
Finally having a chance to play with this. Got the Dicers working well and doing what I want.

The LED for HOT CUE 1 on the X1mk2 isn't responding as I had hoped. It lights up white when the cue/saved loop is present, but does not illuminate green when active. This is crucial to me, as I sometimes utilize the X1 as my only controller.

Here is the current LED mapping: var_equal 'padmode' 1 ? get_sample_color 1 : param_equal get_cue 1 ? var '$shift' ? constant 'red' : constant 'green' : hot_cue 1 ? var '$shift' ? constant '40,0,0' : constant 'white' : constant '18,18,18'

Pads 2-4 seem to work as planned with no modification.

Thanks in advance.
 

geposted Tue 23 Feb 16 @ 1:26 am
Scratch that. None of the LEDs work as expected when mapping for loops as well as cues.

It seems that the loop preempts the cue, therefore not triggering the LED.

Thoughts?
 

geposted Tue 23 Feb 16 @ 4:52 am
What do you mean active ?

Also please give us the code of your hot_cue button and describe as best as you can when and how you want your button to illuminate
 

geposted Tue 23 Feb 16 @ 1:12 pm


(Alte Themen und Foren werden automatisch geschlossen)