登录:     


Forum: General Discussion

Topic: Shift scripting issue

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

Hi, im using VDJ 6.1 with a hercules RMX. What i want to do is to have my SCRATCH/Vynal button act as SHIFT and consequently use my headphone cue mix and volume as effect parameter modifiers.

I have read the scripting section but Im still having some issues getting the vynal button to act as SHIFT the way i want it to.

It either doesnt act as shift or it remains on with no way of turning it off.
The way id like it to work is that once activated (dont want to have to keep it pressed) it switches to shift mode and pressing it again goes back to normal. That way i can use both my hands to manipulate effect parameters.

I also want the button to no longer have scratch/vynal capabilities (during my attempts sometimes it acts both as shift and vynal mode).

Would it be easier to script it to act as a MODE cycle button between normal and effect modes and then script the headphone cue and volume to act accordingly?

Right now im using the following commands:

for shift = set 'shift' 1 (stays on, no way to turn it off)
set 'shift 1 while_pressed (not my preferred method since id like to have both hands for effects)

for effect sliders = var 'shift' ? effect active ? effect slider 1/2

I am also having an issue mapping an effect function to my knobs without them loosing their original function.
 

发表时间 Mon 31 May 10 @ 2:46 pm
If you want the shift button to toggle on/off, map it to the following:

toggle 'shift'

Then map the headphone cue/mix knob as follows:

var 'shift' ? effect active ? effect slider 1: headphone_mix : headphone_mix

And the headphone volume knob as follows:

var 'shift' ? effect active ? effect slider 2: headphone_volume : headphone_volume
 

Awesome. Thanks a ton.
 

Turns out that doesnt work. Shift doesnt engage at all. Should there be any other values after - toggle 'shift' - ?

EDIT: Im also attempting to use the Mode option for mapping by setting my SCRATCH button as the cycler. The issue is how do you know which mode you are in, none of the skins seem to show the info.
 

toggle will toggle the variable between 1 and 0 with each press of the button.

The above mapping will only apply if the effect is actually active (Which from what you posted is what I assumed you wanted.) If you want it to always control the effect parameters when active, then map it as follows:

var 'shift' ? effect slider 1: headphone_mix

var 'shift' ? effect slider 2: headphone_volume


If you are using cycle to cycle a variable between different values for different modes (As per the VDJscript examples http://www.virtualdj.com/wiki/VDJScript%20Examples.html ) then you cannot display this on the skin.

On a controller with text display you can get the controller to show which mode it is in as you cycle through the modes (As shown in the example.)

If the controller doesn't have text displays, you could use an LED to show the mode, e.g:

LED_SCRATCH =

var_equal 'mode' 1 ? on : var_equal 'mode' 2 ? on blink : var_equal 'mode' 3 ? on blinkfast : off

In this example, the LED will be on in mode 1, blink slowly in mode 2, blink fast in mode 3, and off in mode 0 or any other number.
 

Thanks that actually helped a lot.

I have 2 final questions.

I mapped my LED able SCRATCH button to be the MODE Cycle instead of the SHIFT.

I want my deck 2 LOAD button to be the SHIFT instead and im using the following script: action deck 1 ? page +1 : toggle 'shift'
(using an RMX so both load buttons only have 1 name in the mapper)

Then i want to set my master balance to work as the parameter 2 modifier. In this case i have tried 2 different scripts.

1 - var 'shift' ? effect slider 2 : master_balance

2 - var 'shift' ? effective active ? effect slider 2 : master_balance


It is not work either way and i am not sure if the error is in the LOAD button as SHIFT line or in the balance knob script.


The other question is whether effect parameters can only be modified if an effect is active. I tried the following line for the balance knob to make it exclusively a parameter modifier - effect slider 2 - however it doesnt work.
What if i want to lower the volume of the effect before activating it?


Thanks a ton for your help.
 

The above will not work if the button you are trying to use shift with is on a different deck (E.g: Shift button on left deck + knob on right deck.)

Balance will not be associated with either deck.

To get around this, change all instances of 'shift' to '$shift' - This will make it a global variable that is available to all decks.

Because balance is not associated with a deck, you would also need to use deck active to refer to the the current live playing deck (Which is probably the one you wish to adjust the parameter of, e.g:

var '$shift' ? deck active effective active ? deck active effect slider 2 : master_balance
 



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