spongebob Posted September 20, 2009 Report Posted September 20, 2009 I have some strange situation with DIN module. device sends wrong commands.source:void DIN_NotifyToggle(unsigned char pin, unsigned char pin_value) __wparam { // a button has been pressed, send Note at channel 1 MIOS_MIDI_BeginStream(); MIOS_MIDI_TxBufferPut(0x90); // Note at channel 1 MIOS_MIDI_TxBufferPut(pin); // pin number corresponds to note number MIOS_MIDI_TxBufferPut(pin_value ? 0x00 : 0x7f); // buttons are high-active MIOS_MIDI_EndStream(); } reaction on button press:1st SRpins:1: [90 00 7F] Channel 1: Note On C-1 velocity: 127 [90 00 00] Channel 1: Note On C-1 velocity: 02: [90 01 7F] Channel 1: Note On C#-1 velocity: 127 [90 01 00] Channel 1: Note On C#-1 velocity: 03: no reaction4: no reaction5: no reaction6: [b0 4C 3D] Channel 1: CC Sound Controller 7 value: 61 (only on button release)7: no reaction8: no reaction2nd SR - all pins work fine3rd SRpins 1 and 2 - work fine3: [b0 3A 3F] Channel 1: CC LSB 26 (Undefined) value: 63 [b0 3A 41] Channel 1: CC LSB 26 (Undefined) value: 654: [b0 3A 41] Channel 1: CC LSB 26 (Undefined) value: 65 [b0 3A 3F] Channel 1: CC LSB 26 (Undefined) value: 635,6,7,8 - work fine4th SRpins 5,6,7,8 - work finepins 1,2,3,4 only react on button release and send random commands. Quote
spongebob Posted September 20, 2009 Author Report Posted September 20, 2009 I changed SR with each other, but the result has not changed Quote
spongebob Posted September 21, 2009 Author Report Posted September 21, 2009 trouble was in application.solved. Quote
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.