I have some trouble with saving snapshots. They work on most presets that I download however not on the preset I developed myself. Is there a prerequisite in the LUA code that should be there which I maybe have missed? Or could the LUA code intervene in some way with the snapshot function? I also noticed when saving a snapshot that the parameter list in the snapshot web editor for the saved snapshot button stays empty like this:
{“version”:1,“projectId”:“Qa5EUUa8MmkSLhtk1Bfw”,“parameters”:,“name”:“A0”,“color”:“FFFFFF”}
There is an issue with snapshots in v3.6.1 and earlier firmware versions. I suggest upgrading to v4.0.0.
Snapshots are saving and loading the Parameter Map data. It means values of all controls in the preset. The only excluded controls are the ones that have messages with typeset to None. That is done on purpose. So, a snapshot will save data maintained with Lua as long as the parameterMap is used as a storage.
Perfect! Indeed, I had set all my controls typesets in the preset to None, because I’m using LUA callbacks to change LUA variables or to send out multiple MIDI messages. Now, I’ve set all the relevant controls to typeset Virtual, and now all my control settings are indeed saved in snapshots!
Thanks Martin.
great. Happy to hear that. You may want to take a look at persist/recall(). Not exactly the same thing as snapshots but it allows you to save state of Lua variables.