Is it possible to save an arbitrary Lua table to a param? I realise there would likely be no way to set the values for the data inside the table via the Params menu, but it would still be nice to be able to save and recall data about, say, a custom note scale set via a UI to a param.
to perform a tabutil save or load with a PSET save or load, you can also assign functions to params.action_write and params.action_read, which will be called when a PSET is written or read. it was added by Zack a few months ago, but didnāt make it into the docs ā iāve made a note to add it in today!
Timing of this question couldnāt be better! Iām building a sequencer with some class-like tables and this saved me from a ton of refactoring to move everything into a parameter.
followup questionāis there a way to hook into a PSET being deleted? It occurred to me that the data files will just hangout there indefinitely unless manually removed. Is that correct?
oh good call, iāve proposed adding a delete callback as well as PSET numbers to help with data management ā i realized that in the example, if an artist chose the same name for many PSETs, then they would overwrite each other. hang tight for revision!
closing the loop!
the PR linked above was approved + will be merged into the next norns update. EDIT: i had previously thought this made the cutoff for the latest 220321 update, but it didnāt, apologies for the false lead!
while thereās no delete functionality as of now, i figure if weāre sticking to building additional files inside of matching-named folders, then there shouldnāt be too much cruff. apologies for jumping the gun!