Solved Update Function after DAW restore
-
I have a function to auto colour the keyboard. It works ok after changing samplemap (with a LoadingCallback) and when you change a preset too (with a UserPresetHandler PostCallback).
I also called the function on init.
Everything works ok. But when I restore a DAW project with the plugin, the colours go back to the default preset. All other preset parameters are restored correctly.
It's like it's not updating the function after DAW restore, or for some reason it shows the colors of the default preset.
-
@bendurso said in Update Function after DAW restore:
(with a UserPresetHandler PostCallback).
ohh wait, my bad. I thought I was calling the function in PostCallback of UserPresetHandler, but I wasn't. That was the fix :)
-
-
-
@bendurso Remember not to use a callback to know when a SampleMap has finished loading — use a Broadcaster.