Sliderpack MIDI control / plugin parameter
-
Hi all, is it possible to make a single slider in a sliderpack available as a plugin parameter or MIDI controllable? I'm only showing one slider in my pack which is linked to the arpeggiator note length.
-
@paper_lung Why not use a slider and connect that to your sliderpack slider via control callback?
-
@d-healey I did try that but maybe I'm missing something?
const var Knob1 = Content.getComponent("Knob1"); inline function onKnob1Control(component, value) { SliderPack1.setValue(value); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control);
-
-
@d-healey Good point hah, how do we set that? Looking at the API, I'm unsure where to start.
-
Maybe Engine.createAndRegisterSliderPackData(int index) ?
-
@paper_lung Type
sliderpack
into the API browser and see what functions are available under "ScriptSliderPack", right click on them to see a description of what they do. You are looking to set a slider to a value, so that should narrow down your search. -
@d-healey Thanks, David!
-
This worked for me:
inline function onKnob1Control(component, value) { YourSliderPack.setSliderAtIndex(0, value); }; Content.getComponent("Knob1").setControlCallback(onKnob1Control);
-
@paper_lung Yep that's the one :)