Ingreso rápido:  

Forum: Old versions

Tema: jpboggis!! I need your help!!

Este tópico es antiguo y puede contener información incorrecta para la nueva versión.

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!!
 

Mensajes Fri 29 Jan 10 @ 1:06 pm
 

Mensajes 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!
 

Mensajes Fri 29 Jan 10 @ 5:57 pm
It is still not acting the way its supposed to.. :(
 

Mensajes Mon 01 Feb 10 @ 6:58 pm
The buttons are probably not mapped correctly. What action(s) have you mapped them to?
 

Mensajes 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



 

Mensajes 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.
 

Mensajes 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!
 

Mensajes Wed 03 Feb 10 @ 4:08 pm
SBDJPRO Infinity Member since 2006
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.
 

Mensajes 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!
 

Mensajes 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.
 

Mensajes 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
 

Mensajes Fri 05 Feb 10 @ 12:26 pm
No luck..
 

Mensajes Fri 05 Feb 10 @ 6:37 pm
Try:

set '$shift' while_pressed & holding ? nothing : loop
 

Mensajes Sun 07 Feb 10 @ 3:23 pm
Nope..
 

Mensajes Sun 07 Feb 10 @ 6:49 pm


(Los tópicos y foros antiguos son automáticamente cerrados)