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
-