Accesso rapido:  

Forum: Old versions

Topic: Using MIDI value in script

Questo argomento è obsoleto e potrebbe contenere informazioni obsolete o errate.

Hey guys,

I'm struggling coming up with a solution to this.

Basically, I am creating my own MIDI controller with software on the computer. I'm sending VDJ a MIDI value of either 1 or 0 and I would like to check the value and do something different depending if it's 1 or 0.

so something like

midi_value 0 ? deck 1 play : deck 2 play

I'm just not sure the proper way to reference the midi value being received.

Any ideas on how I can do different actions depending on the incoming MIDI value?


Thanks guys,
Tyler
 

Inviato Sun 06 Nov 11 @ 5:22 pm
cstollPRO InfinityMember since 2004
I am going to assume you are using buttons and the buttons are using CC not NOTE -

So in your device definition file you would define the buttons as follows:

<button cc="0x01" value="0" name="PLAY1" />
<button cc="0x01" value="1" name="PLAY2" />

Then you will have your mapping as:

<map value="PLAY1" action="deck 1 play" />
<map value="PLAY2" action="deck 2 play" />


Read here (if you haven't already) - http://www.virtualdj.com/wiki/ControllerDefinitionMIDI.html
 

Inviato Sun 06 Nov 11 @ 8:34 pm


(Vecchi argomenti e forum sono automaticamente chiusi)