file
control_port.hContents
- Reference
Functions for control ports.
Functions
- auto control_port_normalized_val_to_real(Port* self, float normalized_val) -> float
- Converts normalized value (0.0 to 1.0) to real value (eg.
- auto control_port_real_val_to_normalized(Port* self, float real_val) -> float
- Converts real value (eg.
- auto control_port_is_toggled(Port* self) -> bool
- Returns if the control port is toggled.
- auto control_port_is_val_toggled(float val) -> bool
- Checks if the given value is toggled.
- auto control_port_get_int(Port* self) -> int
- Gets the control value for an integer port.
- auto control_port_get_int_from_val(float val) -> int
- Gets the control value for an integer port.
- auto control_port_get_snapped_val(Port* self) -> float
- Returns the snapped value (eg, if toggle, returns 0.f or 1.f).
- auto control_port_get_snapped_val_from_val(Port* self, float val) -> float
- Returns the snapped value (eg, if toggle, returns 0.f or 1.f).
- auto control_port_get_val(Port* self) -> float
- Get the current real value of the control.
- void control_port_set_val_from_normalized(Port* self, float val, bool automating)
- Updates the actual value.