@oskarsh said in Help with assigning knobs...:
@d-healey DavidGPT trained on all the forum knowledge
@oskarsh said in Help with assigning knobs...:
@d-healey DavidGPT trained on all the forum knowledge
@d-healey said in Help with assigning knobs...:
const var Knob1 = Content.getComponent("Knob1");
inline function onButton1Control(component, value)
{
Knob1.setMode(value == 0 ? "TempoSync" : "Frequency");
};Content.getComponent("Button1").setControlCallback(onButton1Control);
Thanks, that seems to have gotten it!
@d-healey Its telling me 'this preset is not a container file' when trying to import the snippet.
@d-healey Thanks but no dice I'm afraid.
I was initially trying to use the 'ScriptSlider.setMode(String mode)' from the docs but no joy there either.
@bfaudio Iām talking about switching modes with setmode in scripting fyi
Ok, so further to THIS post...
after exporting said instrument and looking down the automation parameter list, its messy to have separate automation lanes for tempo synced and frequency. I've been looking at how to switch modes on the knobs when the tempo synced button is pressed rather than visible/invisible knobs. There doesn't seem to be a tempo synced mode to switch to? Is this correct?
Further to my previous posts, does anyone know what the pop-up that comes up when you're saving or creating a preset is called and can you alter it with LAF? I done the alert windows but this seems to be something else....
@bfaudio having said that, I've just created a new project with the version downloaded through hise and getting the same message on the console.