Forum: VirtualDJ Technical Support

For reporting any bug, questions or comment related to the latest version of VirtualDJ
(NOTE: VirtualDJ continuously updated, so many older topic on this forum are most probably already fixed in the current build)

If you need extended support, contact our Support Team.
Forum Guidelines  (*) The moderators hold the rights to move or modify posts in order to keep the discussions clear or to facilitate the search.
Topic: Script for cloning and auto crossfade
i use the following script "deck 2 clone_deck 1 & crossfader 0%" which does exactly what i want it to...but there is a slight glitch/pop sound(clearly audible if using headphones with the output set all the way to mix) when it clones and switches to deck 1 output. Is this a bug? or is it just because of the instantaneous switch to deck 1 after cloning..my laptop cannot process it quick enough and gives the pop sound.
Things i have tried/observed with no resolution:
tried all load priority options,
tried highest buffer settings.
However when i remove the crossfader 0% from the script and do it manually on the controller,there is no pop sound...but obviously it is not instantaneous as the script...leading me to the think that i must give the program/laptop just a few milliseconds to properly clone the deck before the deck goes live.
So i was thinking along the lines of delaying the 'crossfader 0%' part of the script by a few ms with some variation of the script..but i cant really think of anything.
For now im just doing the crossfader bit manually,but when im inna rush,i forget to do lower the line fader on deck 2 and although i move the crossfader back to the left quickly,i still get the both decks audio for just a brief moment..which im trying to avoid.
Thanks in adv!

Posted 7 days ago @ 5:23 pm
locodogPRO InfinityModeratorMember since 2013
use the repeat_start action to add a delay.
deck 2 clone_deck 1 & repeat_start "rsDelay" 33ms 1 & crossfader 0%

Posted 7 days ago @ 6:25 pm
Ok nice..the pops seems to have cleared up..curious of the ms value though..i tried it with 1ms and i didnt really hear any pops..

Posted 7 days ago @ 12:36 am
locodogPRO InfinityModeratorMember since 2013
I've found from testing 33ms is the fastest any repeat_start script will run. Anything less than 33ms still = 33ms

Posted 6 days ago @ 4:52 am
Thanks for the clarity

Posted 6 days ago @ 5:00 pm
locodogPRO InfinityModeratorMember since 2013
No worries, I wish i could remember how I proved 33ms, but it was so long ago, adion has since confirmed, but I've yet to test x64 build.
But hey 33ms is less than a 1/10th of a blink, who's going to notice...

Posted 6 days ago @ 5:46 pm
Ok cool..having said that...i think the script works in order of commands..so without using the repeat start..and just simply using '& crossfader 0%'...the crossfader part should execute after? So that's why i was curious if it were a bug...ps im just curious ok...the problem is solved lol

Posted 5 days ago @ 5:37 pm
locodogPRO InfinityModeratorMember since 2013
No worries, we find a problem, then a solution, then discussing it further we might learn something. Curiosity is no bad thing.

You're right scripts execute in order of being seen, i guessing the cloning part of the script takes a few ms to actually happen,
I don't know exactly what cloning entails at the code level but as we observe, it needs a few ms.

Posted 5 days ago @ 7:26 pm
very well...i guess although the audio is already in the memory..it still need that few ms to properly be applied to the other deck.ok thanks again loco

Posted 5 days ago @ 1:27 am