julle Posted October 17, 2014 Report Share Posted October 17, 2014 Hi ! im trying to build a cheap cdj-styled usb-mp3-player with a raspberry and i went into trouble with the midi-messages from my STM32F4-Core Midibox. I got some pitchfaders, buttons and encoders which i want to use to test MIXXX(a DJ-SW)-performance. On my windows-machine everything works like a charm with Traktor. I receive the messages with the amidi -p hw:1,0,0 -d command. hw:1,0,0 is the adress of the midibox. For the pitchfaders (midipitch-message) i receive 3 bytes as desired. I use the SendPitchBend-Command for that. For Buttons (MIOS32_Send_CC) i receive lots of junk with the right message at the end: F0 00 00 7E 32 00 0D 40 42 75 74 74 6F 6E 20 38 20 67 65 64 72 75 65 63 6B 74 00 F7 BE 08 7F It should be (Channel 15 CC 08 Value 0x7F) For encoders (MIOS32_Send_CC too) there are also lots of junk bytes in the message: BE 1E 7F F0 00 00 7E 32 00 0D 40 45 6E 63 6F 64 65 72 20 30 3A 20 31 00 F7 In this case the right Message is at the beginning: (Channel 15 CC 30 Value 0x7F) How to get rid of that junkbytes? MIXXX works fine on the pitchfaders but it cant read the buttons and encoders. I already tried to compile my app without MIOS32_USB_MIDI_USE_AC_INTERFACE 1 as i need that setting for windows but there was still the junkbytes in it. Anyone experiend something like this on Linux? How to get rid of these junkbytes? For me the junkbytes doesnt make any sense. But they are always the same at the specific buttons and encoders.... Quote Link to comment Share on other sites More sharing options...
TK. Posted October 20, 2014 Report Share Posted October 20, 2014 Hi, this "junk" are SysEx based debugging messages. Your MIDI parser should be able to handle (and ignore them). You can make the message visible with MIOS Studio, the messages should appear in the terminal window. They might give you important hints about the configuration. E.g. the first message says "Button 8 gedrueckt" and the second message says "Encoder 0: 1" Could it be, that these messages are generated from your .NGR or .NGC file? Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
julle Posted October 21, 2014 Author Report Share Posted October 21, 2014 I compiled my own code from source and added these debug-commands... As u said i forgot to take them out... i think it will work if i take them out again. I was just confused as they didnt appear in MIDI-OX and they didnt confused traktor on my windowsmachine. Anyway..Thank u TK! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.