Hello,
I'm working on a tiny plugin framework and I'm looking for some advise with regards to VST 2.4 programs/preset handling and DAW undo.
I initially implemented it so that the plugin's bank of presets/programs, as changed by the user, is stored/restored together with the current plugin state in the save-chunk. This is working fine.
I then changed my mind and decided that I wanted 'read-only' completely fixed presets instead of a programmable bank.
I first tried the lazy option and simply ignored changes to bank parameters in setParameter and chunk serialisation. This breaks DAW undo after a preset change. So I went back to temporarily storing changes to the bank in setParameter, but ignoring those changes when saving the state.
This is kind of the worst of both worlds.
I get DAW undo, but only for the current session.
My bank returns to its defaults, but only after reloading the project.
Is there a clean way of having a completely fixed bank AND preserving undo with VST 2.4? One that doesn't add a big fat 'reset programs to default' button?
Thanks!
I'm working on a tiny plugin framework and I'm looking for some advise with regards to VST 2.4 programs/preset handling and DAW undo.
I initially implemented it so that the plugin's bank of presets/programs, as changed by the user, is stored/restored together with the current plugin state in the save-chunk. This is working fine.
I then changed my mind and decided that I wanted 'read-only' completely fixed presets instead of a programmable bank.
I first tried the lazy option and simply ignored changes to bank parameters in setParameter and chunk serialisation. This breaks DAW undo after a preset change. So I went back to temporarily storing changes to the bank in setParameter, but ignoring those changes when saving the state.
This is kind of the worst of both worlds.
I get DAW undo, but only for the current session.
My bank returns to its defaults, but only after reloading the project.
Is there a clean way of having a completely fixed bank AND preserving undo with VST 2.4? One that doesn't add a big fat 'reset programs to default' button?
Thanks!
Statistics: Posted by diroxe7660 — Sun Jan 21, 2024 4:50 pm — Replies 0 — Views 26