rncbc / padthv1

padthv1 - an old-school polyphonic additive synthesizer
https://padthv1.sourceforge.io
GNU General Public License v2.0
19 stars 7 forks source link

LV2: Param: Save full state (sample + params) #7

Closed AnClark closed 8 months ago

AnClark commented 3 years ago

Before, PadthV1 will only store sample data into plugin state. This can cause a problem: presets won't be loaded properly (either nothing was loaded, or other unrelated preset was restored).

So the best choice is to let PadthV1 store anything of what a preset should have. Considering that accessing external presets has no problem, I just implement codes from padthv1_param::loadPreset() and padthv1_param::savePreset().

NOTE: Only commit 5256118 related to this improvement.