Hi,
for controlling effects, I create faders for its parameters for which their nature depends on the type of FX parameter to control.
It’s fairly easy to do with lua such as in the excerpt example below:
control = controls.get (i)
control:setVisible (ctrlVis) -- controls visibility
control:setName (pair[3 + i*5]) -- controls the name
control:setColor(pair[4 + i*5]) -- controls the color
ctrlValue = control:getValue ("")
ctrlValue:setMin (pair[5 + i*5]) -- sets min display value
ctrlValue:setMax (pair[6 + i*5]) -- sets max display value
message = ctrlValue:getMessage ()
message:setMax (pair[6 + i*5] - pair[5 + i*5]) -- sets max MIDI value
ctrlValue:setOverlayId (pair[7+i*5]) -- set the overlay to use
But I have some trouble with overlays.
Most overlays have a limited amount of values between 2 and 100, so they can be defined within lua like:
overlayTable = {{ value = 0, label = "Sine" },{ value = 1, label = "Triangle" },{ value = 2, label = "Peak" },
{ value = 3, label = "Random" },{ value = 4, label = "Ramp" },{ value = 5, label = "Square" }}
overlays.create(350, overlayTable)
There are however 2 overlays for faders that have a range of 2014 and even 4022 different values. Only 14, resp. 22 of these (the last ones of the fader) need a special label.
If you create a specific fader with its own Overlay defined via the web editor, it’s perfectly okay to only assign labels to those 14 resp. 22 values, and still use the full range.
But when you assign such an overlay via “ctrlValue:setOverlayId” , the values to choose from are limited to those in the Overlay. So only the range 2001-2014 resp. 4001-4022 is available, which is not desired.
Is there a way to work around it?