Ingreso rápido:  

Forum: General Discussion

Tema: Problem with definition file
Hello!
I made a diy dj controller and at first i just mapped it and i worked fine, but since i decided to add some leds, i need to make a definition file for my controller. I figured out how to do buttons and leds, but never got the sliders and pots working.
This is what Hairless midi serial bridge is saying when i move the pots, sliders: https://prnt.sc/25q84ri
This is what MIDIOX is saying when i move the pots, sliders: https://prnt.sc/25q8g7n
The question is, how can i define the sliders, pots in this situation.
Thanks in advance!
 

Mensajes Sun 02 Jan 22 @ 7:14 pm
<slider cc="0x07" name="SLIDER1" channel="0" />


How did that came out ?
Take a look at the bytes:
First byte is B0
B0 means "cc" message at channel 0
(Yes MIDIOX says channel 1, but that's the "human" reading)

Second byte is 07
So, second byte means cc="0x07"
We type 0x07 to indicate that values are HEX and not decimal values

Third byte is the message value. It's the position of the slider. That's what VirtualDJ reads to determine the position of the slider

PS:
B1 means cc at channel 1
80 means "note off" at channel 0
91 means "note on" at channel 1
Both "note on" and "note off" are treated as "note" messages in VirtualDJ

PS2:
If by any chance you see messages like this when you move a slider:
B0 03 00
B0 23 00
B0 03 00
B0 23 01
B0 03 00
B0 23 02
...
B0 03 05
B0 23 1A
--
B0 03 7F
B0 23 7F

Then that's a 14 bit MIDI slider.
It sends two messages at the same time (one message is coarse position -Most Significant Byte- and the other is fine position inside the coarse step)
In this case you define the slider as following
<slider cc="0x23" ccmsb="0x03" name="SLIDER2" channel="0" />
 

Mensajes Mon 03 Jan 22 @ 9:26 am
The first one worked! Now i understand how this works and i will be able to do it on my own. Thanks!
 

Mensajes Mon 03 Jan 22 @ 12:47 pm