pub fn midi_note(
kind: MidiNoteKind,
note: Option<u8>,
channel: Option<u8>,
target_node: NodeId,
target_param: &str,
min: f32,
max: f32,
transform: Transform,
) -> MappingExpand description
Convenience constructor for a MIDI note mapping.
Use MidiNoteKind to select which aspect of the note event to extract:
Frequency—midi_to_freq(note), Note Off produces no valueAmplitude—velocity / 127(On) or0.0(Off)Gate—1.0(On) or0.0(Off)