INIT-Preset
-
I have used the inbuilt preset manager and I want the plugin version to load the init preset when loaded.
Is there a way? -
Just make sure that you load the init preset before you export the plugin and / or save your instrument with the init preset loaded, it will use these as default values when the plugin is initialised.
-
thanks
-
There is a problem with this approach that I haven't been able to solve.
On my UI I have two buttons to load the previous or next preset. These use the corrosponding functions
Engine.loadPreviousUserPreset()
etc.The problem is since there is no "initial" preset set the previous/next buttons are always starting from no preset. This means the first time the user opens the instruments and clicks previous or next they don't see the correct preset, and if they click the opposite button it doesn't go back to the last preset.
The only workaround for this is to use the first preset as the initial preset, but we don't always want that to be the case.
Anyone got a solution?
-
@d-healey - nope thats exactly how it works in all my plugins...
-
@d-healey A timer maybe?
It would be nice to have a method where we could specify the preset to load automatically after the init is done -
@ustk said in INIT-Preset:
A timer maybe?
Maybe this ties nicely with my post init callback. I hadn't thought of that before, but in that callback we could just specify a preset to load.
-
@ustk You were right, using the timer in on init to load the "default" preset works fine.
-
@d-healey Timers are working for a few things like this but honestly, it seems so hacky...
-