audio/control_port.h file


Functions for control ports.


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) -> int
Returns if the control port is toggled.
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, int automating)
Updates the actual value.