[LAD] Weird USB MIDI sysex problem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Friday, August 30, 2013 - 10:32 pm

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@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Weird USB MIDI sysex problem, Gordon JC Pearce, (Fri Aug 30, 10:32 pm)
Re: [LAD] Weird USB MIDI sysex problem, Gordon JC Pearce, (Sat Aug 31, 11:41 am)
Re: [LAD] Weird USB MIDI sysex problem, Clemens Ladisch, (Sat Aug 31, 9:35 am)
Re: [LAD] Weird USB MIDI sysex problem, Ralf Mardorf, (Sat Aug 31, 10:00 am)
Re: [LAD] Weird USB MIDI sysex problem, Ralf Mardorf, (Sat Aug 31, 9:51 am)
Re: [LAD] Weird USB MIDI sysex problem, Ralf Mardorf, (Sat Aug 31, 2:37 am)
Re: [LAD] Weird USB MIDI sysex problem, Ralf Mardorf, (Sat Aug 31, 2:39 am)