Locking parameters out of Presets...
-
So I'd like to be able to "build" new random presets for a 4 voice system I have, so I'd like to lock(say) voice 1 and all its params and then randomly select and load a preset - which would load all the settings for voices 2 thru 4.
So the way I'm thinking of doing this is pretty simple really - just setting saveInPreset to false for all the params of voice 1, selecting a random preset , loading it, and then in the postPreset callback setting all the params of voice1 back to saveInPreset=true
Can any one think of a better way?
-
@Lindon Try it and report back.
-
@d-healey said in Locking parameters out of Presets...:
@Lindon Try it and report back.
well --sorta..... I can get it to work - but even staging the preset loads in the postPreset its a bit crashey....
-
@Lindon nononono,
saveInPreset
is not a dynamic property and you'll run into undefined behaviour and glitches.Use the pre and post callbacks of the user preset handler to store and restore the values / settings, that's how I'm implementing the lock feature.
-
@Christoph-Hart said in Locking parameters out of Presets...:
@Lindon nononono,
saveInPreset
is not a dynamic property and you'll run into undefined behaviour and glitches.Use the pre and post callbacks of the user preset handler to store and restore the values / settings, that's how I'm implementing the lock feature.
roger, roger - will do. thanks.
-
@Lindon Oh yeah, looks like I'm doing the same thing - https://codeberg.org/LibreWave/RhapsodyBoilerplate/src/branch/main/includes/Presets.js#L26
-
D d.healey referenced this topic on
-
@Christoph-Hart said in Locking parameters out of Presets...:
saveInPreset is not a dynamic property and you'll run into undefined behaviour and glitches.
Is it a bad idea to use saveInPreset dynamically for dynamic modules? I mean, I’m adding the sliders dynamically to control the hardcoded master FXs, and I only want to enable saveInPreset when a slider is active. Is that a bad approach? I’ve been testing it and it seems to work fine.
I want to keep it dynamic because I have 216 sliders, and one of the beta testers occasionally experiences crashes when switching presets. I’m think it might be due to the large number of parameters that have saveInPreset enabled.
Edit: Nop, it doesnt work well using it dynamically :(
-
@bendurso said in Locking parameters out of Presets...:
Is it a bad idea to use saveInPreset dynamically
Yes