Hi, I have problems to upload larger Presets, is there any limitation for the size of Presets or lua scripts?
My observation is that if a Preset is something above 250k parsing fails sometimes and when it comes to 350k it fails always. Then an empty NoName Preset is loaded.
The Midi Monitor on the Computer shows the sending of the Preset (with ACK) and the LUA script (NAK) but it looks like that the Preset size causes the problem, not the LUA script (about 90k).
E1 MKII, Firmware 3.4, directly connected via USB to an iMac 27" (2020) with Ventura 13.5.1 (I also tried on Macbook Pro M1 Max, same behaviour), Google Chrome 116.0.5845.140
Does anybody has similar experiences regarding larger Presets?
Hi, that is quite a large preset The parsing area is now 300k. I will increase it. If you send me (on PM) a link the preset, I can verify it all works ok after the memory pool adjustment. Thx!
Thanks for the fast response. I’ll send you the preset.
Yes it’s big, but still 3 pages to implement left
Good to know that there is a limit about 300k for not going crazy (any similar limit for lua?).
130k are only for overlays (which is a nice feature). Of course there are some redundant in the preset, so I started to optimize by reducing redundacy with defining them once in a control and then assign to other controls in lua.
Maybe this could be a feature request: define overlays in the editor (independently from a control) and reference them instead of copying.
Also there is potential in the sysex messages, I’ll optimize.
I will increase the pool size size to double of current size. It is kind of an artificial limit, I set it based on the largest presets at given time. Lua has access to all available heap. The limit for Lua is around 20MB now. It it shared by all presets though.
hmm, note that one overlay (defined in overlays) can be assigned to multiple controls - in JSON. You just reference the same overlayId multiple times.
Editor deduplicates the overlays when the preset JSON is generated. The upcoming release has an option to create lists/overlays in Lua. As things are going that way, it totally makes sense to allow editing them independently. I will be working on lists (in the editor) right after the firmware 3.5 is out. There is a lot to do in that area for @Electrolove
I feel silly, but could you please send me the link again? I’ve checked my PMs, and I can’t find it. I did increase the parsing buffers, so I need to check what’s going wrong there again."