Quantcast
Channel: KVR Audio
Viewing all articles
Browse latest Browse all 5768

DSP and Plugin Development • VST 2.4: DAW undo and read-only program banks

$
0
0
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!

Statistics: Posted by diroxe7660 — Sun Jan 21, 2024 4:50 pm — Replies 0 — Views 26



Viewing all articles
Browse latest Browse all 5768

Trending Articles