MIDI Sysex Programming Question...
Posted on 2001-09-05
I am trying to write a Windows program to communicate with a MIDI device that is connected to my PC. However, I can't seem to get my program talking to the device. I am new to MIDI programming and I haven't been able to find a good example.
For now, I just want to send a Sysex message to the MIDI device and get a response back. I have been trying this using these functions:
but I haven't really gotten anywhere. Note I don't want to receive any midi audio from the device - I just want to send a request message to it and get a response. For now, I would prefer to use CALLBACK functions.
I believe the following is what I need to send to the device:
F0 7E <chan> 06 01 F7 System inquiry message
<chan> can be 7F (all devices) and the device documentation says it will respond. I have more sysex information on the device, but I am not sure if that is needed to solve this question. If so, let me know and I will post as much as needed.
I *believe* that I should be using midi output device 2 and midi input device 0.