scripting Sampler Settings
-
Hello all,
What's the cleanest way to script the sampler settings (like soft limit and fade time) via user input? I haven't scripted anything yet that allows user input.
Thanks!!! -
@dustbro You need to provide a user a way to set a value and apply that to the sampler properties. Probably a slider or a knob is simplest but if you want to restrict the values they can enter then use a combo box.
-
@d-healey What about the ability to enter with your keyboard. Basic click+type entry? Is that possible with a combo box?
-
@dustbro You can make a label editable and get the value from that I believe, although I've never tried it. And of course the default sliders can be typed into.
-
@Christoph-Hart Is this something we could bring into the Floating Tile? Similar to the Custom Settings content... just for Sampler settings?
-
No, the Label is the way to go because it will be restored in user presets (all FloatingTiles are sort of read-only elements or operate on a deeper data level like the preset browser).
-
@Christoph-Hart Are there any examples floating around on how to use Labels?
-
No, but they are pretty straight-forward to use - the
value
parameter of the callback is the text you've entered. What do you need to know?