Sorry, it seems i didn't read your first mail carefully. So you need NRPN and sysex. NRPN is easy then, you just have to check that you use the right CC numbers. Sysex is easy too if you have a functional [midiout] :o) otherwise it doesn't work. I couldn't find (i don't have the first mails anymore), which OS are you using? On Linux, it works for sure, on other OSs, give it a try because it may just work. I recommend that you use a physical loopback to test the throughput: you send out the MIDI from your interface and feed it back to its input and see [midiin] if it arrives and if it arrives in its entirety. BTW the second inlet of [midiout] and the second outlet of [midiin] are for port numbers, which is not exactly the same as channel number: channel 3 of your second MIDI interface would be 19 and so on. And you'll have to send a comma separated list of decimals(!) to the first inlet of [midiout]: something like [240, 1, 2, 3, 4, 5, 6, 247(
Andras
On Tue, Mar 8, 2011 at 03:07, David dfkettle@gmail.com wrote:
Thanks. I'm not sure I understand what you mean when you say "you don't really need sysex", though. I have to send a 6 byte NRPN message, followed by a 14 byte SysEx message. I think I understand how to send the NRPN message, but I'm still confused about the SysEx message. Would I use [midiout] to do that? According to the help file in PD, this object is still undocumented and is only supported on Linux. Is that still true? And it only has two inlets, which I'm guessing would be an arbitrary 1 byte value and a channel number, but I'm not sure.
Unfortunately, none of these messages are documented in the owner's manual or on their web site, but someone has reverse-engineered the messages and posted his findings here:
http://www.ewiusb.com/sysex_page1 http://www.ewiusb.com/sysex_page2
The whole stream (an NRPN, a 14 byte SysEx, the same NRPN again, another 19 byte SysEx, and a final NRPN) would look like this, for example:
// sysex enable : 63 01 62 04 06 20 // sysex message : F0 47 7F 6D 00 00 06 40 40 40 40 08 7F F7 // sysex enable : 63 01 62 04 06 20 // sysex message : F0 F7 7F 6D 02 00 0B 00 00 40 20 02 00 00 7F 00 7C 7D F7 // sysex done : 63 01 62 04 06 10
David.
Message: 1 Date: Sun, 6 Mar 2011 18:07:59 +0100 From: Andr?s Mur?nyi muranyia@gmail.com Subject: Re: [PD] Patch for Akai EWI (was "Reading and writing binary files") To: PD List pd-list@iem.at Message-ID: AANLkTimf2TztoeqGx38BLvs_Rphk5YQLi6NnFnB2Uu0j@mail.gmail.com Content-Type: text/plain; charset="iso-8859-1"
NRPNS are interestingly made up of CC messages so you don't really need sysex. Attached [nrpnout] (original version by David McCallum) and
[nrpnout-yamaha]
where CC numbers are modified according to Yamaha specs. You may need to match two of the four CC numbers with your gear (the other two are always the same), and check if your gear needs MSB and LSB address or just one "NRPN number".
Andras