Interface AbsoluteHardwareControl
- All Superinterfaces:
ContinuousHardwareControl<AbsoluteHardwareControlBinding>,HardwareBindingSource<AbsoluteHardwareControlBinding>,HardwareControl,HardwareElement
- All Known Subinterfaces:
AbsoluteHardwareKnob,HardwareSlider
public interface AbsoluteHardwareControl
extends ContinuousHardwareControl<AbsoluteHardwareControlBinding>
Represents a hardware control that can input and absolute value (for example, a slider, knob or foot
pedal).
- Since:
- API version 10
-
Method Summary
Modifier and TypeMethodDescriptionaddBindingWithRange(AbsoluteHardwarControlBindable target, double minNormalizedValue, double maxNormalizedValue) Adds a new binding from this hardware control to the supplied target.voidDetermines if this hardware control should immediately take over the parameter it is bound to rather than respecting the user's current take over mode.voidSets theAbsoluteHardwareValueMatcherthat can be used to detect when the user adjusts the hardware control's value.setBindingWithRange(AbsoluteHardwarControlBindable target, double minNormalizedValue, double maxNormalizedValue) Convenience methods that ensures there is only a single binding to the supplied target.value()The current value of this hardware control (0..1)Methods inherited from interface com.bitwig.extension.controller.api.ContinuousHardwareControl
hardwareButton, hasTargetValue, isUpdatingTargetValue, modulatedTargetDisplayedValue, modulatedTargetValue, setHardwareButton, targetDisplayedValue, targetName, targetValueMethods inherited from interface com.bitwig.extension.controller.api.HardwareBindingSource
addBinding, canBindTo, clearBindings, setBindingMethods inherited from interface com.bitwig.extension.controller.api.HardwareControl
backgroundLight, beginTouchAction, endTouchAction, getName, isBeingTouched, setBackgroundLight, setIndexInGroup, setNameMethods inherited from interface com.bitwig.extension.controller.api.HardwareElement
getHeight, getId, getLabel, getLabelColor, getLabelPosition, getWidth, getX, getY, setBounds, setLabel, setLabelColor, setLabelPosition
-
Method Details
-
setAdjustValueMatcher
Sets theAbsoluteHardwareValueMatcherthat can be used to detect when the user adjusts the hardware control's value.- See Also:
-
value
DoubleValue value()The current value of this hardware control (0..1) -
disableTakeOver
void disableTakeOver()Determines if this hardware control should immediately take over the parameter it is bound to rather than respecting the user's current take over mode. This is useful for motorized sliders for example, where the slider is already at the value of the bound parameter. -
addBindingWithRange
AbsoluteHardwareControlBinding addBindingWithRange(AbsoluteHardwarControlBindable target, double minNormalizedValue, double maxNormalizedValue) Adds a new binding from this hardware control to the supplied target. -
setBindingWithRange
AbsoluteHardwareControlBinding setBindingWithRange(AbsoluteHardwarControlBindable target, double minNormalizedValue, double maxNormalizedValue) Convenience methods that ensures there is only a single binding to the supplied target. This is equivalent to callingHardwareBindingSource.clearBindings()and thenaddBindingWithRange(AbsoluteHardwarControlBindable, double, double)
-