Hi there, I was creating a lv2 plugin (WIP name ZynPerfomix) with puredata and exporting it to dpf code via heavy compiler. All in all the lv2-plugin is working in oram.
I tested it with the CLI calling it with jalv.gtk. Also tested it as zynthian plugin, saving it in the directory /zynthian/zynthian-plugins/lv2/ as lv directory. It is working in zynthian … fine.
As soon as I want saved the preset, the plugin crashes .
The preset ttl files have been written to /zynthian/zynthian-my-data/presets/lv2/ZynPerfomix.presets.lv2/.
But the content written into the file /zynthian/config/jalv/presets_ZynPerfomix.json which contains the links to the preset ttl files doesn’t look good:
{"": {"bank_url": "", "presets": [{"label": "New1", "url": "audio_debug = 0.690000"}]}}
The url written is the name of the last changed lv2 parameter in the zynthian ui.
Compared to, for example, the content of the lv2 Plugin whaa (artyfx), which looked like:
{“None”: {“bank_url”: null, “presets”: [{“label”: “New1”, “url”: “file:///zynthian/zynthian-my-data/presets/lv2/Whaaa.presets.lv2/New1.ttl”}, {“label”: “New2”, “url”: “file:///zynthian/zynthian-my-data/presets/lv2/Whaaa.presets.lv2/New2.ttl”}]}}
Strange.
After calling “search for new engines/presets” in the web-ui, the entry in preset_ZynPerfomix.json changed to:
{“None”: {“bank_url”: null, “presets”: [{“label”: “New1”, “url”: “file:///zynthian/zynthian-my-data/presets/lv2/Whaaa.presets.lv2/New1.ttl”}]}}
If I add another preset, same procedure…
Another issue: only after loading my presets 3 times, the parameters are accepted by the plugin.
Everything works with the CLI and jalv, but not as expected with zynthian.
My question is, why? What am I doing wrong. Why is it working for Whaa? What’s the difference?
Any advices? Appending the lv2 plugin… if someone is interested.
ZynPerfomix.lv2.zip (158.9 KB)