Hi
I have a plugin that records midi data to an array of a midi event class along with some other data... What is the best method of saving that data between sessions of daw use? Parameter settings for the plugin are saved somewhere... is there an official way of doing the same to data in memory or do I write it to disk at key points and then load it back when the daw/plugin are next used?
I did read a few references to kuiml, but it did not really make sense for me.
thanks in advance,
michael
Plugnscript: handling data between sessions
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6336 posts since 8 Sep, 2004 from Paris (France)
Hi Michael,
If the data is available in the GUI, you can save it from here into a persistent string for example. If is is a DSP state on the dsp script side, there is currently no proper way to save it at the moment (this is a feature that we need to bridge from our infrastructure and it has not been done yet). You could however send the data to the GUI using output strings and save it there, but if the user interface is not open at some point, the data will never get there.
If the data is available in the GUI, you can save it from here into a persistent string for example. If is is a DSP state on the dsp script side, there is currently no proper way to save it at the moment (this is a feature that we need to bridge from our infrastructure and it has not been done yet). You could however send the data to the GUI using output strings and save it there, but if the user interface is not open at some point, the data will never get there.
-
- KVRer
- Topic Starter
- 10 posts since 22 Sep, 2008
That is a really unfortunate rather big hole in functionality from my point of view, given what I am trying to do... probably worth addressing, but I assume it is pretty complicated. One small step would be to provide some sort if unique id for the instance of the plugin on the dsp script side of things that could then be used in combination with storing the state in files on disk to link those to an instance of pns - its not an elegant solution, but could that be an initial solution at least?
-
Blue Cat Audio Blue Cat Audio https://www.kvraudio.com/forum/memberlist.php?mode=viewprofile&u=39981
- KVRAF
- 6336 posts since 8 Sep, 2004 from Paris (France)
It's not THAT complicated (our framework already handles that so most of the work has already been done), but to make it clean and robust it requires some specific integration for both scripting and native.
Using a unique id with external file would probably cause more problems than what it would solve.
Using a unique id with external file would probably cause more problems than what it would solve.