快速登录:  

Forum: VirtualDJ Technical Support

话题: Script request: loop next cuepoint

由于该帖子已年深日久,可能包含陈旧过时或描述错误的信息。

Mr.URNsPRO InfinityMember since 2014
Hi,

somebody posted a script one that enables to switch on (and off) the autoloop fot the next cue point a track is arriving.

Sadly, I can't find that thread anymore. Can anybody point me to it or does anybody know how the script goes?
 

发表时间 Tue 19 Mar 19 @ 7:10 am
freppaPRO InfinityMember since 2002
Why not use the Cuepoint you want as a loop as "action type" and set it as a loop, for example loop 4 or loop 8
 

发表时间 Tue 19 Mar 19 @ 5:22 pm
Use Cue_Loop ;-)
 

发表时间 Tue 19 Mar 19 @ 7:21 pm
Mr.URNsPRO InfinityMember since 2014
freppa wrote :
Why not use the Cuepoint you want as a loop as "action type" and set it as a loop, for example loop 4 or loop 8


Thx, mate, that's actually better than what I am doing now (starting the loop manually once i reach the cuepoint I set). This method has a chance to have a choppy loop, especially when I had some beers. ;-)

 

发表时间 Wed 20 Mar 19 @ 6:32 pm
freppaPRO InfinityMember since 2002
Nice to give some help ;)
I often use this cue actions for outro loops or I set the last cue as action to goto_cue 1 or 2 for intro beats as outros.
 

发表时间 Wed 20 Mar 19 @ 7:09 pm
locoDogPRO InfinityModeratorMember since 2013
If you want to keep it on the fly you could use a script like this

repeat_start_instant 'rsiLoopNextCue' ? on : off & repeat_start_instant 'rsiLoopNextCue' 33ms & param_greater 'cue_countdown' 0.125 ? loop on & repeat_stop 'rsiLoopNextCue': nothing

One press & this will call a loop when the playhead gets within 1/8th beat of the next hotcue, quantizeLoop option can remove the early start.
 

发表时间 Wed 20 Mar 19 @ 8:14 pm
Mr.URNsPRO InfinityMember since 2014
locodog wrote :
If you want to keep it on the fly you could use a script like this

repeat_start_instant 'rsiLoopNextCue' ? on : off & repeat_start_instant 'rsiLoopNextCue' 33ms & param_greater 'cue_countdown' 0.125 ? loop on & repeat_stop 'rsiLoopNextCue': nothing

One press & this will call a loop when the playhead gets within 1/8th beat of the next hotcue, quantizeLoop option can remove the early start.


This looks promising. :-) Will try it out as soon
as I am back at my Controller.

 

发表时间 Thu 21 Mar 19 @ 11:35 am
Mr.URNsPRO InfinityMember since 2014
djdutschi wrote :
Use Cue_Loop ;-)


Coundn't get it to work yet. But thx for the tip, I'll keep trying.

 

发表时间 Thu 21 Mar 19 @ 11:37 am
Mr.URNsPRO InfinityMember since 2014
locodog wrote :
If you want to keep it on the fly you could use a script like this

repeat_start_instant 'rsiLoopNextCue' ? on : off & repeat_start_instant 'rsiLoopNextCue' 33ms & param_greater 'cue_countdown' 0.125 ? loop on & repeat_stop 'rsiLoopNextCue': nothing

One press & this will call a loop when the playhead gets within 1/8th beat of the next hotcue, quantizeLoop option can remove the early start.


This is exactly what I've been looking for. <3
I just don't understand the early start thing. Where do I put the quantizeLoop option in the scipt? I don't have a clue about scripting. ;-)

 

发表时间 Thu 21 Mar 19 @ 9:25 pm
locoDogPRO InfinityModeratorMember since 2013
No problem, it's what I do ;-)

The early start, depends if you use quantize_loop, if you do you won't see an early start, but if you don't it can be fixed like so

repeat_start_instant 'rsiLoopNextCue' ? on : off & repeat_start_instant 'rsiLoopNextCue' 33ms & param_greater 'cue_countdown' 0.125 ? quantize_loop on & loop on & repeat_stop 'rsiLoopNextCue' & quantize_loop off : nothing

broken down
repeat_start_instant 'rsiLoopNextCue' ? on : off
this bit is only the button light logic, is the repeat_start script running ? yes - light on : no - light off

& repeat_start_instant 'rsiLoopNextCue' 33ms
setting up the repeating script, give it a name and a duration between repeats (33ms is the fastest possible)

& param_greater 'cue_countdown' 0.125 ? quantize_loop on & loop on & repeat_stop 'rsiLoopNextCue' & quantize_loop off : nothing
now the script we want to repeat, is 0.125 bigger than cue_countdown (which is the count to next cue in beats) ?
Yes, we're within 1/8th beat of a cue, turn quantize loop on, turn loop on, stop this repeating script, turn quantize loop back off.
No, we're not near a cue yet, do nothing this turn, the repeating script will try again in 33ms
 

发表时间 Thu 21 Mar 19 @ 10:41 pm
Mr.URNsPRO InfinityMember since 2014
Hmm, I'm almost there, but the loop still doesnt behave ecactly as I want it to.
In my general setting I have quantise loo set to "off".
But if I use your script, It seems to quantise, which makes the loop slightly off.

I tried it like this:
repeat_start_instant 'rsiLoopNextCue' ? on : off & repeat_start_instant 'rsiLoopNextCue' 33ms & param_greater 'cue_countdown' 0.125 ? loop on & repeat_stop 'rsiLoopNextCue' : nothing

Loop is still slightly off. T_T
 

发表时间 Wed 03 Apr 19 @ 6:33 pm
Mr.URNsPRO InfinityMember since 2014
Never mind. I messed up the CUE point. Script is working fine. :-D
 

发表时间 Wed 03 Apr 19 @ 8:11 pm


(陈旧帖子或论坛版块会自动关闭)