快速登录:  

Forum: Old versions

话题: Using MIDI value in script

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

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
 

发表时间 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
 

发表时间 Sun 06 Nov 11 @ 8:34 pm


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