RE: Control Surface MIDI Send?
2006/12/09 12:09:54
(permalink)
thanks! Yeah after much digging I learned a couple of things.
1) the return of 1 seems to indicate that there's no MIDI output associated with the control surface
2) Seems that running Sonar under the debugger tends to leave the midi device in a hung state, which then on invocation makes the MIDI device unavailable to Sonar (and to the control surface, thus resulting in the return of 1)
Appears what was happening was I'd get Sonar set up properly (with a MIDI device) and even get the control surface insert with a good MIDI OUTPUT, but during the course of debugging, hung the MIDI device (unsure exactly how that's happening). Then the MidiOutShortMsg starts returning 1 rather than 0. Even though the properties on the surface show that there's a MIDI Output it doesn't work. Side effect also that going into Sonar MIDI Options, you can't reselect the MIDI device. Too, part of the problem was that I'd once checked the Sonar box "don't show me again" on the "starting without a midi device" error, so I didn't know this was happening. Only way I found to clear the stuck MIDI device was reboot.
Now, I'm more diligent in making sure that the MIDI device stays valid and sure enough MidiOutShortMsg works just fine. Thanks a bunch!