Skip to main content

PanelListener

Trait PanelListener 

Source
pub trait PanelListener: Send {
    // Required method
    fn control(
        &mut self,
        cc: u8,
        value: u8,
        program: &[u8],
    ) -> Option<(usize, u16)>;
}
Expand description

Decodes the Control Changes a synth’s panel sends: one per synth, as it keeps state between messages (a 10-bit value’s lower bits, an NRPN selection).

Required Methods§

Source

fn control(&mut self, cc: u8, value: u8, program: &[u8]) -> Option<(usize, u16)>

One Control Change on the synth’s channel: the field it sets in program (the program the synth plays) and the value, once complete.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§