pub type t_libpd_controlchangehook = Option<unsafe extern "C" fn(channel: c_int, controller: c_int, value: c_int)>;
Expand description

MIDI control change receive hook signature channel is 0-indexed, controller is 0-127, and value is 0-127 channels encode MIDI ports via: libpd_channel = pd_channel + 16 * pd_port note: out of range values from pd are clamped