High-level wrapper around a module controller inside a SunVox::Module.
Instance methods
display_value
Gets the value as displayed in the SunVox UI (CtlScale::Displayed).
Sourcegroup
Gets the group number of this controller.
Sourcemax(scaled :
CtlScale =
CtlScale::Real) :
Int32 Gets the maximum value of this controller.
Sourcemin(scaled :
CtlScale =
CtlScale::Real) :
Int32 Gets the minimum value of this controller.
Sourcename
Gets the name of this controller.
Sourceoffset
Gets the display value offset of this controller.
SourceGets the valid value range (min..max) of this controller.
Sourcereal_value
Gets the raw internal controller value (CtlScale::Real).
Sourcescaled_value
Gets the scaled controller value (0x0000..0x8000 for normal controllers, CtlScale::Scaled).
Sourceset_value(val :
Int32, scaled :
CtlScale =
CtlScale::Real) : self
Sets the controller value with an explicit scaling mode (Real, Scaled, or Displayed).
Sourceslot
The slot that owns this controller's module.
Sourcetype
Gets the controller type (CtlType::Normal or CtlType::Selector).
Sourcevalue(scaled :
CtlScale =
CtlScale::Real) :
Int32 Gets the controller value according to scaled (Real, Scaled, or Displayed).
SourceSets the controller value (using CtlScale::Real by default).
Source