Connexion rapide:  

Forum: VirtualDJ Technical Support

Sujet Create loop roll using pads
Using Rane 4 controller. Wanted to know if it's possible to use a pad to create an automated loop roll. For example, over 8 beats, the first two beats, the loop will be cut to 1/2 beat, next two beats, loop will be cut to 1/4 beat, next two beats, loop will be cut to 1/8 beat and so on.

Thanks
 

Posté Tue 06 Aug 24 @ 6:12 pm
locoDogPRO InfinityModeratorMember since 2013
yeah that can be done.
as an automated script [the logic of it not exact script]
you'd call loop roll with sliders in position, then call a wait for 2 bt, then move the sliders to a new bt length, then call a wait, then call new bt length...

I must have 15+ buttons that do this, here's a collection, you can time the changes, jump to positions. [call other fx if you want] It's pretty open ended.
Try them on custom buttons, if you can't read what it's doing, I can help you out

set 'stage' 0 & set 'org' `get_beatpos` & effect_beats 'loop roll' 0.75 & effect_active 'loop roll' on & repeat_start_instant 'test' 25ms &  var 'stage' 0 ? param_bigger "get_var 'org' & param_add 2" "get_beatpos" ? effect_active 'loop roll' &  effect_active 'loop roll'  & set 'stage' +1 : nothing :  var 'stage' 1 ? param_bigger "get_var 'org' & param_add 4" "get_beatpos" ? effect_active 'loop roll' &  effect_active 'loop roll'  & set 'stage' +1 : nothing :  var 'stage' 2 ? param_bigger "get_var 'org' & param_add 6" "get_beatpos" ? effect_active 'loop roll' &  effect_active 'loop roll'  & set 'stage' +1 : nothing :  var 'stage' 3 ? param_bigger "get_var 'org' & param_add 8" "get_beatpos" ? repeat_stop 'test' & effect_active 'loop roll' & set 'stage' 0



effect_slider 'loop roll' 1 1 & set 'stage' 0 & set 'org' `get_beatpos` & effect_beats 'loop roll' 0.5 & effect_active 'loop roll' on & repeat_start_instant 'test' 25ms &  var 'stage' 0 ? param_bigger "get_var 'org' & param_add 1" "get_beatpos" ? effect_beats 'loop roll' 0.33 & set 'stage' +1 & effect_active 'loop roll' & dump & effect_active 'loop roll' : nothing :  var 'stage' 1 ? param_smaller "get_var 'org' & param_add 0.0" "get_beatpos" ? effect_beats 'loop roll' 0.5 & set 'stage' +1 & dump & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 2 ? param_bigger "get_var 'org' & param_add 3" "get_beatpos" ? set 'stage' +1 & effect_active 'loop roll' & goto +1 & dump : nothing :  var 'stage' 3 ? param_smaller "get_var 'org' & param_add 3" "get_beatpos" ? repeat_stop 'test' & set 'stage' 0 & dump & goto -1 : nothing : nothing





set 'stage' 0 & set 'org' `get_beatpos` & effect_beats 'loop roll' 0.75 & effect_active 'loop roll' on & repeat_start_instant 'test' 25ms &  var 'stage' 0 ? param_bigger "get_var 'org' & param_add 1.49" "get_beatpos" ? effect_beats 'loop roll' 0.5 & set 'stage' +1 : nothing :  var 'stage' 1 ? param_bigger "get_var 'org' & param_add 2.0" "get_beatpos" ? effect_beats 'loop roll' 0.75 & set 'stage' +1 : nothing :  var 'stage' 2 ? param_bigger "get_var 'org' & param_add 3.49" "get_beatpos" ? effect_beats 'loop roll' 0.16666 & set 'stage' +1 : nothing :  var 'stage' 3 ? param_bigger "get_var 'org' & param_add 4.0" "get_beatpos" ? effect_active 'loop roll' & goto +0.0 & repeat_stop 'test' & set 'stage' 0 


set 'stage' 0 & set 'org' `get_beatpos` & effect_beats 'loop roll' 1.5 & effect_active 'loop roll' on & repeat_start_instant 'test' 25ms &  var 'stage' 0 ? param_bigger "get_var 'org' & param_add 3" "get_beatpos" ? effect_beats 'loop roll' 0.5 & set 'stage' +1 & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 1 ? param_bigger "get_var 'org' & param_add 4" "get_beatpos" ? effect_beats 'loop roll' 0.75 & set 'stage' +1 & effect_active 'loop roll' &  goto -4 & effect_active 'loop roll' : nothing :  var 'stage' 2 ? param_bigger "get_var 'org' & param_add 3" "get_beatpos" ? effect_beats 'loop roll' 0.5 & set 'stage' +1 & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 3 ? param_bigger "get_var 'org' & param_add 4" "get_beatpos" ? effect_beats 'loop roll' 1.5 & set 'stage' +1 & effect_active 'loop roll' &  goto +4 & effect_active 'loop roll' : nothing :  var 'stage' 4 ? param_bigger "get_var 'org' & param_add 11" "get_beatpos" ? effect_beats 'loop roll' 0.5 & set 'stage' +1 & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 5 ? param_bigger "get_var 'org' & param_add 12" "get_beatpos" ? effect_beats 'loop roll' 0.75 & set 'stage' +1 & effect_active 'loop roll' &  goto -4 & effect_active 'loop roll' : nothing :  var 'stage' 6 ? param_bigger "get_var 'org' & param_add 11" "get_beatpos" ? effect_beats 'loop roll' 0.25 & set 'stage' +1 & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 7 ? param_bigger "get_var 'org' & param_add 12" "get_beatpos" ? effect_beats 'loop roll' 1.5 & set 'stage' +1 & effect_active 'loop roll' &  goto +4 & effect_active 'loop roll' : nothing :  var 'stage' 8 ? param_bigger "get_var 'org' & param_add 19" "get_beatpos" ? effect_beats 'loop roll' 0.5 & set 'stage' +1 & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 9 ? param_bigger "get_var 'org' & param_add 20" "get_beatpos" ? effect_beats 'loop roll' 0.75 & set 'stage' +1 & effect_active 'loop roll' &  goto -4 & effect_active 'loop roll' : nothing :  var 'stage' 10 ? param_bigger "get_var 'org' & param_add 19" "get_beatpos" ? effect_beats 'loop roll' 0.5 & set 'stage' +1 & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 11 ? param_bigger "get_var 'org' & param_add 20" "get_beatpos" ? effect_beats 'loop roll' 1.5 & set 'stage' +1 & effect_active 'loop roll' &  goto +4 & effect_active 'loop roll' : nothing :  var 'stage' 12 ? param_bigger "get_var 'org' & param_add 27" "get_beatpos" ? effect_beats 'loop roll' 0.25 & set 'stage' +1 & effect_active 'loop roll' & effect_active 'loop roll' : nothing :  var 'stage' 13 ? param_bigger "get_var 'org' & param_add 28" "get_beatpos" ? effect_active 'loop roll' off & repeat_stop 'test' & set 'stage' 0 & goto -0 :  nothing : nothing 
 

Posté Tue 06 Aug 24 @ 7:15 pm
Will give it a try. Thanks locodog. Is each section one syntax?
 

Posté Tue 06 Aug 24 @ 9:40 pm