I was wondering if I can push a certain button to execute a different command with another.. sounds confusing right?
I want a certain button (button #1) on my mixer to have the VDJScript: unload
But, I want to assign another button (button #2) so that if I hold button #2 and press button #1 it loads a song instead of unloading it.
What do I type in the VDJScript?
Thanks so much!!
I want a certain button (button #1) on my mixer to have the VDJScript: unload
But, I want to assign another button (button #2) so that if I hold button #2 and press button #1 it loads a song instead of unloading it.
What do I type in the VDJScript?
Thanks so much!!
Posté Fri 29 Jan 10 @ 1:06 pm
Please see http://www.virtualdj.com/wiki/VDJScript%20Examples.html where what you are looking for is explained along with lots of other common examples.
Posté Fri 29 Jan 10 @ 2:43 pm
Thanks I got that page saved a long time ago, but I never really realized it was there too.
Thanks again!
Thanks again!
Posté Fri 29 Jan 10 @ 5:57 pm
It is still not acting the way its supposed to.. :(
Posté Mon 01 Feb 10 @ 6:58 pm
The buttons are probably not mapped correctly. What action(s) have you mapped them to?
Posté Tue 02 Feb 10 @ 12:16 pm
var 'shift' ? effect 'backspin' active : effect 'Flanger' active (INITIAL COMMAND FROM VDJSCRIPT EXAMPLES)
But I changed it to:
CH2_PFL = var 'CH1_PFL' ? loop_half : sampler 1 loop 50% (JUST AN EXAMPLE!)
(Basically I want it to half the loop of sampler 1 when I press CH2_PFL. However, when I hold CH1_PFL and press CH2_PFL I want it to loop_half)
HOWEVER! When I press CH2_PFL, it only does the sampler half loop thing.. even if I hold CH1_PFL. The same thing happens!
I hope you understand!
:S
But I changed it to:
CH2_PFL = var 'CH1_PFL' ? loop_half : sampler 1 loop 50% (JUST AN EXAMPLE!)
(Basically I want it to half the loop of sampler 1 when I press CH2_PFL. However, when I hold CH1_PFL and press CH2_PFL I want it to loop_half)
HOWEVER! When I press CH2_PFL, it only does the sampler half loop thing.. even if I hold CH1_PFL. The same thing happens!
I hope you understand!
:S
Posté Tue 02 Feb 10 @ 12:26 pm
This is because the two buttons that you are mapping are on two different decks (CH1 vs CH2)
Unless preceded with a $, variables in VDJscript are local to each deck, so CH2_PFL will not be able to see the variable 'CH1_PFL'.
To correct, simply add a $ in front of the variable name (I.e: $CH1_PFL) to turn it into a global variable which will be accessible on both decks.
Unless preceded with a $, variables in VDJscript are local to each deck, so CH2_PFL will not be able to see the variable 'CH1_PFL'.
To correct, simply add a $ in front of the variable name (I.e: $CH1_PFL) to turn it into a global variable which will be accessible on both decks.
Posté Wed 03 Feb 10 @ 12:16 pm
Thanks but, I simply said CH1 and CH2 because of an example. Really both buttons are on the same deck.
But I am going to try it out and wish me luck!
But I am going to try it out and wish me luck!
Posté Wed 03 Feb 10 @ 4:08 pm
I think you might be misunderstanding something ;)
Set these buttons:
CH1_PFL: set 'shift' while_pressed
CH2_PFL: var 'shift' ? loop_half : sampler 1 loop 50%
You need to tell CH1_PFL what to do when it's pressed - in this case set shift.
Set these buttons:
CH1_PFL: set 'shift' while_pressed
CH2_PFL: var 'shift' ? loop_half : sampler 1 loop 50%
You need to tell CH1_PFL what to do when it's pressed - in this case set shift.
Posté Wed 03 Feb 10 @ 7:21 pm
SBDJ I LOVE YOU!!
Thank you SO MUCH!!
Thank you!!
Yes!! My dream mixes are now realities man ! THANKS AGAIN!
Thank you SO MUCH!!
Thank you!!
Yes!! My dream mixes are now realities man ! THANKS AGAIN!
Posté Thu 04 Feb 10 @ 4:06 pm
WAIT! Why can't I do this?
holding ? set '$shift' while_pressed : loop
It does not do the while_pressed.. it only toggles it.
holding ? set '$shift' while_pressed : loop
It does not do the while_pressed.. it only toggles it.
Posté Thu 04 Feb 10 @ 5:57 pm
Because 'holding' will only trigger the held action when the button is released (while_pressed needs to be triggered on both press and release for it to work.)
Try the following:
set '$shift' while_pressed & holding ? nothing : loop
Try the following:
set '$shift' while_pressed & holding ? nothing : loop
Posté Fri 05 Feb 10 @ 12:26 pm
No luck..
Posté Fri 05 Feb 10 @ 6:37 pm
Try:
set '$shift' while_pressed & holding ? nothing : loop
set '$shift' while_pressed & holding ? nothing : loop
Posté Sun 07 Feb 10 @ 3:23 pm
Nope..
Posté Sun 07 Feb 10 @ 6:49 pm