I have as AU/VST plugin, that loads a midi file and plays it in a loop. My main purpose is to run this in Apple Mainstage. This already works properly. Now I want to save several parameters of the plugin, so if it is open again, the values will be “restored”.
This already works for integer or float values if I save the Concert in Mainstage but I don’t know, how to save the path to the midi file. I miss s.th. like AudioParameterString. I read in one or two threads, that s.th. can be transformed in floats and then restored again but to be honest, I do not understand this at all.
May you please give me a hint on how to do that or may you provide me a sample of how to save a file path using AudioProcessorValueTreeState. Or do I follow the wrong approach?