[LAD] Weird USB MIDI sysex problem

From: Gordon JC Pearce <gordonjcp@email-addr-hidden>
Date: Sat Aug 31 2013 - 01:35:59 EEST

Hi folks,
I'm having some really odd behaviour trying to send sysex to a synth where I can only send (using snd_rawmidi_write) in three-byte blocks. The only exception is if I send something not a multiple of three bytes but terminate the transfer with 0xf7, it will send everything including the 0xf7 - but this kills the sysex transfer.

The synth I'm trying to send MIDI to - a Casio CZ1000 - expects seven bytes of data to start a patch dump, at which point it will send a handshake back to the computer. Now if I pad the output with zeros the synth *will* handshake, but then not respond to the handshake acknowledge presumably because of the extraneous zeros.

I can't figure out what I'm doing wrong with this. Example code here:

http://dpaste.com/1361268/

This is tested with the MIDI out of my Emu 1x1 cable plugged into the MIDI in of a sound module and MIDI in on the interface plugged into the MIDI through on the module - so there is no "processing" of the MIDI messages.

Is it really impossible to just send raw bytes over a USB MIDI cable?

-- 
Gordonjcp MM0YEQ
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Sat Aug 31 12:15:01 2013

This archive was generated by hypermail 2.1.8 : Sat Aug 31 2013 - 12:15:03 EEST