Precision editing and hiding tabs #747
Replies: 4 comments 1 reply
-
|
For the second question: `chMod3 = function(--[[ CtrlrModulator --]] mod, --[[ number --]] value, --[[ number --]] source) --dump(message) end` for the second, i use: end` This is not elegant, and needs additional attention for the received midi: `function assignTimeFader(Time, TimeFine, Disp, paraTyp, FxPara) end` In this example i use a lagel to display the value. That is not needed in all situations. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
I found a way to increase sensitivity for uiSliders By clicking on the shift key or perhaps another modifier + onMouseDown the sensitivity is changed to a higher value - the default is 250. mouseDownsetMouseDragSensitivity = function(--[[ CtrlrComponent --]] comp --[[ MouseEvent --]], event)
local sensIncrease = panel:getModulatorByName("setSens"):getModulatorValue()
if event.mods:isShiftDown() then
sensDetect.set = true
panel:getSlider("nameOfSlider"):getOwnedSlider():setSliderSnapsToMousePosition(false)
panel:getSlider("nameOfSlider"):getOwnedSlider():setMouseDragSensitivity(sensIncrease)
end
local send = panel:getSlider("nameOfSlider"):getOwnedSlider():getMouseDragSensitivity()
panel:getLabelComponent("debugL"):setText(String(send))
end
mouseUpresetMouseDragSensitivity = function(--[[ CtrlrComponent --]] comp --[[ MouseEvent --]], event)
if sensDetect.set == false then
panel:getSlider("nameOfSlider"):getOwnedSlider():setMouseDragSensitivity(sensDetect.default)
local send = panel:getSlider("nameOfSlider"):getOwnedSlider():getMouseDragSensitivity()
panel:getLabelComponent("debugL"):setText(String(send))
end
sensDetect.set = false
end
sensDetect=setmetatable({default=250},{__index=function(t,k) t[k]=false return t[k] end}) -- globalDEMO panel here. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for all the suggestions. re: precision - in hardware, there's often a coarse/fine set of controls or a range switch+knob to allow a user to get more precise. I think a combination of a decent sized control plus the mouse wheel plus maybe implementing a quick jump via double-clicks might cover things. I know the default double click is a single value, but for large range parameters, maybe an override method that increments by 100 (or 500 or ...) for each double-click (with wrap around) might be useful. I'm hoping to be able to have a small but consistent approach for editing the set of parameters with wide-ranging values as well as those with a smaller, more defined set of choices. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Didn't think two separate topics would be useful/needed.
First question - if I have a set of tabs and some are conditional, is there a way to hide the tab (or at least have no response if a user tries to click on it)?
Second question - what do people do to provide precise selection of values when a parameter has a wide range? Does the size and/or type of control make a difference? Is there some accepted shift/alt/ctrl combo people use when moving a control for more precise selection?
I have some parameters ranging from 0 to 400 or 800 or 1500 and a small rotary uiSlider control doesn't seem to allow me to select individual values even though the step size is set to 1.
thanks for any info on these two.
Beta Was this translation helpful? Give feedback.
All reactions