Greetings,
I wish to save/restore my MIDI-Learn controller-mappings to/from an XML file. Is there a recommended way to do this?
Following foleys_gui_magic/State/foleys_MidiParameterMapper.cpp
I can obtain the mappings and convert them to a nice looking XML string, but I have to use an apparently private ID to do it:
auto mappings = settings->settings.getChildWithName (IDs::mappings);
It would be great if MidiParameterMapper
had public member functions getMidiParameterMapXml()
and setMidiParameterMapFromXml()
or something like that. Otherwise, I suppose exposing foleys::IDs::mappings
is enough.
What’s the best approach? Thanks!