It would be useful to be able to change instruments remotely, from a MIDI controller or a MIDI sequencer. This could be done, as in hardware synthesizers, by handling the following MIDI messages (which are, for now, ignored): “CC0 (Bank Select MSB)” to load the specified bank, and “Program Change” to load the specified instrument in the current bank.
The attached patch is an attempt at implementing that behavior, let me know what you think of it. The changes can also be pulled from the “program-change” branch of my repository (git pull git://git.incenp.org/zynaddsubfx.git program-change).
Pulled from your git repo.
Added one call to applyparameters() to ensure that PADsynth based instruments are loaded correctly.
Besides this producing realtime issues, it seems to be fine.
Thanks for the feature addition.
I love this patch! Don't understand why this essential feature isn't in the git.
> Don't understand why this essential feature isn't in the git.
Unless there is something different in the .diff, this feature was integrated into the git repo (master branch) a while back (ie 2011-10-30).
Oh i stand corrected it is in there and works fine. Might have been a little confused because the GUI isn't updated when pressing CC 145 but that's just aesthetics.