Sign In:     


Forum: Old versions

Topic: Definition file problem / button cc

This topic is old and might contain outdated or incorrect information.

I'm having an issue with a definition file I'm making. Basically the issue is this... I'm currently mapping out my buttons and everything is going fine except one thing. All the buttons act as toggles... I want them to react as triggers. I think it's an issue of the button messages being sent as "button cc"... 127 when held and 0 when released but the "0" message isn't turing the switch off? I'm getting a push-on / push-off like a toggle but without writing a toggle code. Ideas?

Does some have some good examples of code, when using "button cc"?

Thanks,
Sean
 

Posted Sun 23 May 10 @ 2:10 pm
Maybe I need to add a "toggle" element to get it to react normal? Hmmm, I think I need to figure out that code.
 

This is strange...

I have a few controllers. So, using just the stop button as a reference... Both devices send 127 message when pressed and 0 when released. So you would think they would act the same but they don't. One device acts as a toggle with Virtual Dj and the other device acts a a momentary trigger? The one main difference is that the one device sends button note messages and the other sends button cc messages. The button note device works as a press-on / release-off. The button cc device has to have the button pressed once for on and again for off. I want them to act the same... help.
 

I had kinda the same problem with my nanoKontrol but I was able to change it from "CC" to "Note" or vice versa, is there a way you can change how the message gets sent? Bad ass rig you got by the way!!!
Just my 2 cents, lol!
Huey
 

I remember having the same problem with the nanokontrol too. But, this is different... once I change it from button cc to button note, it doesn't work at all :o(
 

 

It doesn't seem to work still. w/ 6.1

Here's some of my results...

-------------------------

OPTION 1:
def file code...
button cc="0x01" name="CUE" deck="1" />

map...
Key: CUE / Action: cue_stop

Results... on key press - nothing, on key release - play, then on key press - nothing, then key release - cue. It's still working as a toggle.

-------------------------

OPTION 2 (Better):
def file code...
button cc="0x01" value="127" name="CUE" deck="1" />

map...
Key: CUE / Action: cue_stop

Result... on key press - play, on release - nothing, the on second key press - cue, on release - nothing

-------------------------

Option 3 (Best)
def file code...
button cc="0x01" value="127" name="CUE" deck="1" />
button cc="0x01" value="0" name="CUE X" deck="1" />

map...
Key: CUE / Action: cue_stop
Key: CUE X / Action: cue & stop

Result... this is the only way i can get it too act somewhat normal "cue_stop" operation.
IE: "if playing stop and go to last cue point. if paused, set current position as cue point and preview the cue as long as pressed" However, by using this code my play button has to be hit twice to get it to play. Too much redundant coding... I hope I can work around this or I'm just not getting it right?

-------------------------

Conclusion... I'm pretty sure button cc note release info is still not being sent correctly... considering I had to add (value="0") to get VDJ to see button cc release.
 

Here is one way I was able to get it working properly...

Option 3 (Best)
def file code...
button cc="0x01" value="127" name="CUE" deck="1" />
button cc="0x01" value="0" name="CUE X" deck="1" />

map...
Key: CUE / Action: cue_stop
Key: CUE X / Action: cue & stop & play_pause
 

Try defining it as:

<toggle cc="0x01" name="CUE" />

Then map it to cue_stop.
 

Nope, toggle cc does not work either... Same results. By default VDJ only responds to the release of a button after being pressed. When concerning button cc push, you have add (value="127") But then you have to write redundant code for the off or release message (value="0")

btw... I remember this being a problem with Nanokontrol too.

I'm pretty sure it's a VDJ coding thing because I have many other controller that work fine using the same def file code and map except the messages are button note not button cc. Do you think the dev guys unintentionally wrote the default code to respond only on release, making act as a toggle? That's my bet.

btw... I've confirmed with midi trace that the button push is "7F" and release is "00" which is normal.
 

Hello dJdAb

In the last VDJ versions (6.1 for sure) you can now specify an "off" paramater like this:

<button cc=”0x11” value=”0x7F” off=”0x00”> (you can even omit the value=”0x7F” to take anything but 0 as note-on, and 0 as note-off).

So by doing that your button which is sending CC commands acts as if it was sending Note On/Off for VDJ


 

Thanks, I'll give that a try ;o)
 



(Old topics and forums are automatically closed)