I've Cracked the Code!
Jan. 2nd, 2009 03:32 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
After nearly a month of intermittently looking at the problem, I finally have come to the conclusion that MIDIStroke doesn't differentiate between the three different types of MIDI signals at *all*. The idea that it did was what sent me off on this wild goose chase to begin with, since it would be kind of stupid if a program treated playing note #5 the same as changing to instrument #5 or the pedal passing point 5 our of 128, but, evidently, MIDIStroke is stupid.
I finally came to this conclusion after I noticed that only one byte of the original MIDI message was actually being looked at. This byte isn't the one that tells you what kind of message it is. All the rest of it was ignored.
So instead of a Note On #36, I tried sending a Control Change #36, and it worked.
For some reason my initial tries with the pedalboard aren't working, but it's almost 4 AM and that might be a project for later...
I finally came to this conclusion after I noticed that only one byte of the original MIDI message was actually being looked at. This byte isn't the one that tells you what kind of message it is. All the rest of it was ignored.
So instead of a Note On #36, I tried sending a Control Change #36, and it worked.
For some reason my initial tries with the pedalboard aren't working, but it's almost 4 AM and that might be a project for later...