Midi program changes in ProcessMidi function of WDL-OL
Hello!
I'm working on a MIDI vst instrument using WDL-OL, but understanding is a little difficult, more MIDI's fault than WDL-OL's.
Some how, this code retrieves the channel.
int event = pMsg->mStatus >> 4;
int channel = pMsg->mStatus & 0x0F;
I would like to retrieve program changes so that I can play, for example, different synths on different programs. Some plugins will change the presets when the programs are changed, which is a neat idea.
Any help would be appreciated!
If you can tell me some further reading matterial regarding WDL-OL and MIDI, that would also be highly appreciated!
Best,
Aaron
|