Modulation is deleted when loading a DAW project!
-
If you add modulation to a slider in the DAW, it will be deleted when you reload the DAW project. This happens even if you create a preset in the plug-in and then reload the DAW project. The modulation is deleted every time you reload the DAW project.
Here is a snippet that contains a slider/parameter with MatrixModulator and a slider that is modulated directly via the matrixTargetId.
The problem occurs with both variants!
I tested it in Cubase and Logic (MAC). Maybe you can test it in other DAWs? Just compile the project and then load it into the DAW. Establish the modulation connection (via right-click), save the DAW project, and reload it. After that, the modulation always disappeared for me.
@Christoph-Hart do you have any ideas for a workaround until it is fixed in the HISE source code? Currently, it is virtually impossible to use HISE's great new modulation options in a commercial plug-in because presets are not loaded correctly after reopening a DAW project.
Or am I making a mistake here?
All the best,
OliSnippet:
HiseSnippet 2270.3oc6Z0saaibElz1LIVNMYS2rc21qHL5EYW3MPjRxxtEEQ1RVNBMNVwxwoaWTrcL4HIhPNC6vg9mtXAJ5U8An21mklGgBr.858QnWz6aOCGJwgRz1JdiS7Fr5BaLmy7y2b9+LRcYTGbTDkooWZ+SCwZ521n2oD9vlCQdDsNszz+.i.parOh6QI6ii3ZadZHJJB6poqO+1hYou3BZIe9OOZSjOh3fyHooc.0yA+Du.OdF0tM9sd99sQt388BTlc0FcbnjlTeZLfn4MJqEhbdIZ.9oHwzlyP6wnngZ5elQ4pNn0r6WqRk0WudM2CwN8svGV2AUtFpeMDPsJpZMqpZ52XKWONk0ii33HM8E1j5dZugziIxC3.uHuC8whAVZ8fSVRtM02UbEET0ZNzy2s6HQUjFrocyDbyKEb22XGOWuwzUEfBFlYqPU.pOWd3MeN3YoBuxJvq.Hoq.oEjP5dF8bXdg7LNB7rjQGBGy5i.8jJTjyUS++ZzjBSfveX.5k31LXv3E7fUKWdES3Oe5utTIPUEwMCBL+MlaQF3QvOzgggqwNisW1AwYdm7fk2dmlKKVQ+XhiftIk7TJGuK4AeZoutzhk9lRlSxpe+B4IfFi56iYExVXNwNuE9.RbvgX1JlGg7iwimHHxxqGLNa8fpYhiTRoLQJoCwiuaHlbVFOZohW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LYjsUI+XDyEzg4RTc0zJzM9wVg9wZpempE2I6K795oV7iM.WZayDUo46Fc4aiWU68kyH.4vneki7WuiHD2sRn.xVRxuysEglFfwlVS9q1AphEBu8UNN42poVn8kcgUtrKr5kcg0trKb0K6BqeYW3ZW7BEYe1.Z7JP5+AYg6tk7mPjtLAbhqn1+GDqJ+GG -
@Christoph-Hart
I tried it out a little today, and it's not that the modulation is deleted when a DAW project is loaded, but rather that the modulation is reset to the state with which the plug-in was exported.So:
If the plug-in was compiled with modulation of a parameter, it will also be loaded with modulation when the DAW project is reloaded. It doesn't matter if the actual user preset was saved without modulation. And vice versa.My ideas for a workaround:
-
I create a panel in whose
valueI store the modulation matrix data (ScriptModulationMatrix.toBase64()). The panel issaveInPreset. -
Saving takes place in
ScriptModulationMatrix.setConnectionCallback. -
I create a load callback (
ScriptPanel.setLoadingCallback) for the panel. When loading is complete, I load the data stored in the panel'svalueinto the modulation matrix (ScriptModulationMatrix.fromBase64(String b64)). I hope this does not create an infinite loop. I could also tryUserPresetHandler.setPostCallback, but I don't know if this will also be executed when the plug-in is loaded with the DAW project without a user preset being loaded.
I'll let you know if the workaround works.
-