struct

SunVox::Controller

Inherits Struct < Value < Object

High-level wrapper around a module controller inside a SunVox::Module.

Constructors

new(mod : Module, index : Int32)
Source

Instance methods

display_value

Gets the value as displayed in the SunVox UI (CtlScale::Displayed).

Source
group

Gets the group number of this controller.

Source
index
Source
max(scaled : CtlScale = CtlScale::Real) : Int32

Gets the maximum value of this controller.

Source
min(scaled : CtlScale = CtlScale::Real) : Int32

Gets the minimum value of this controller.

Source
name

Gets the name of this controller.

Source
offset

Gets the display value offset of this controller.

Source
range(scaled : CtlScale = CtlScale::Real) : Range(Int32, Int32)

Gets the valid value range (min..max) of this controller.

Source
real_value

Gets the raw internal controller value (CtlScale::Real).

Source
scaled_value

Gets the scaled controller value (0x0000..0x8000 for normal controllers, CtlScale::Scaled).

Source
set_value(val : Int32, scaled : CtlScale = CtlScale::Real) : self

Sets the controller value with an explicit scaling mode (Real, Scaled, or Displayed).

Source
slot

The slot that owns this controller's module.

Source
type

Gets the controller type (CtlType::Normal or CtlType::Selector).

Source
value(scaled : CtlScale = CtlScale::Real) : Int32

Gets the controller value according to scaled (Real, Scaled, or Displayed).

Source
value=(val : Int32) : Int32

Sets the controller value (using CtlScale::Real by default).

Source