VDJPedia



 Fader start using the crossfader

Last edit by Corazon787, Limited edition user on Thu 19 Jul 12 @ 2:38 pm

In VirtualDJ, there is a built-in action to toggle fader start on/off for the volume sliders (fader_start), however there is currently no action that can do this for the crossfader.


To enable fader start on the crossfader, simply change its mapping to the following:

crossfader & param_greater 0% ? param_smaller 100% ? deck left play & deck right play : deck left stop : deck right stop



If you would like to be able to toggle it on/off, map a button to the following:

toggle '$xfaderstart'


Then map the crossfader to:

var_equal '$xfaderstart' 0 ? crossfader : crossfader & param_greater 0% ? param_smaller 100% ? deck left play & deck right play : deck left stop : deck right stop


Here is an alternative by synthet1c:

var_equal '$xfaderstart' 1 ? crossfader & param_equal 0% ? set '$faderleft' 1 & set '$faderright' 0 : param_equal 100% ? set '$faderright' 1 & set '$faderleft' 0 : var '$faderleft' 1 ? param_greater 1% ? deck right play & set '$faderleft' 0 : nothing : var '$faderright' 1 ? param_smaller 99% ? deck left play & set '$faderright' 0 : nothing : nothing : crossfader & param_equal 0% ? set '$faderleft' 1 & set '$faderright' 0 : param_equal 100% ? set '$faderright' 1 & set '$faderleft' 0 : var '$faderleft' 1 ? param_greater 1% ? set '$faderleft' 0 : nothing : var '$faderright' 1 ? param_smaller 99% ? set '$faderright' 0 : nothing



Return to VDJscript examples...