Quick Sign In:  

Forum: VirtualDJ Technical Support

Topic: Is there a way to reference the "slave" deck in a VirtualDJ Script?
seanPRO InfinityMember since 2018
I noticed it was possible to do:
deck master sync

Which will sync the master deck to the slave but I'm looking to achieve the opposite, basically:
deck slave sync

But unfortunately 'deck slave' doesn't seem to work. Is there another term to refer to this?
 

Posted Mon 08 May 23 @ 8:14 pm
Think you want to use is sync

The sync always sync's all other decks to the master deck.


Other things to consider are:

one can set (as fixed), a masterdeck, that does NOT change.. with masterdeck,
Or clicking the word "MASTER" for that deck on the skin.

and to return to VDJ's auto selection of masterdeck .. use masterdeck_auto on
Or clicking the word "MASTER" twice on any deck of the skin.

 

Posted Mon 08 May 23 @ 8:57 pm
seanPRO InfinityMember since 2018
Thanks for the reply, I just ran some tests to confirm and unfortunately this isn't the case, if you execute "sync" on a master deck it will sync to the slave. As the verb docs mention "smoothly synchronize the song with the other deck." I also tried using match_bpm and it does the same thing.

I should add this is part of a bigger script where I need this specific functionality of syncing the slave to master. I'm trying to replicate Traktors style of sync and turning most sync settings on and off when the sync button is pressed.

set 'syncdown' 1 while_pressed &
down ?
nothing :
auto_pitch_lock ?
deck all auto_match_bpm off &
deck all auto_sync off &
deck all auto_pitch_lock off &
deck all quantize_all off &
pitch_lock off :
sync &
deck all auto_match_bpm on &
deck all auto_sync on &
deck all auto_pitch_lock on &
deck all quantize_all on &
pitch_lock on
 

Posted Tue 09 May 23 @ 3:18 am
I don't understand what's your problem.
Using "deck all" means (obviously) the action will be performed to all decks, including MASTER.

Also, pitch_lock as an action will act against all decks, no matter from which deck it's enabled.

So, the only part of the above script that should work against "master" deck is sync.
HOWEVER, using "sync" on the masterdeck itself, will force it to sync with the "other" deck.

So, try this:
set 'syncdown' 1 while_pressed &
down ?
nothing :
auto_pitch_lock ?
deck all auto_match_bpm off &
deck all auto_sync off &
deck all auto_pitch_lock off &
deck all quantize_all off &
pitch_lock off :
(masterdeck ? nothing : sync) &
deck all auto_match_bpm on &
deck all auto_sync on &
deck all auto_pitch_lock on &
deck all quantize_all on &
pitch_lock on

PS: Personally I would also change a few other things as well (there's no need to execute all actions on "up" for instance) but that's a different story
 

Posted Tue 09 May 23 @ 9:41 am