I forgot to include a new file rkrMIDI.h in the previous post, here is
the working patch. Note, for the proof of concept, this disables all
midi parameters except volume and wah wah depth (because otherwise the
'case 2:' still in the code would conflict with the new enumeration).
The attached patch is a partial implementation of a new feature that
adds the optional command line argument -midimap, which allows the user
to override the default midi parameter mapping.
For instance, if you passed a filename to -midimap that has the
following contents, the parameters for master volume and wah wah depth
would be reversed-
wah wah depth:::7:::wwdmc:::
The format of the configuration lines being
The gui_label field is currently ignored, but when implemented in the
obvious way could allow users to relabel the sliders in the GUI.
If either the midi_event_id or gui_label is '_keep_', it will be left
unchanged from the default.
Thus with the above midimap, instead of volume mapped to 7, and wah wah
depth to 1 as they are now in rakarrack, they would be switched.
This is not midi-learn, but an interim step until a GUI interface could
be added on top.
This is a partial implmentation, because only volume and wah wah depth
are handled. Much of the final patch is merely repetitive work of doing
the same code changes for the rest of the parameters. I could probably
do that in an hour or two, but don't want to waste my time if nobody
will really use the code.
Josep on the -devel list has expressed reservations, but I'm hoping this
actual partial implementation clears up some of those reseverations. So,
if you would like to see this in the rakarrack code, you'll have to
convince him that it is useful.
Comments, criticism, and suggestions are welcome.
Otherwise, I'll get back to improving my NDS code :)