pub enum MidiNoteKind {
Frequency,
Amplitude,
Gate,
}Expand description
What aspect of a MIDI note event to extract for mapping.
Variants§
Frequency
Extracts frequency: midi_to_freq(note). Note Off produces no value.
Amplitude
Extracts amplitude: velocity / 127 (On) or 0.0 (Off).
Gate
Extracts gate: 1.0 (On) or 0.0 (Off).
Trait Implementations§
Source§impl Clone for MidiNoteKind
impl Clone for MidiNoteKind
Source§fn clone(&self) -> MidiNoteKind
fn clone(&self) -> MidiNoteKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MidiNoteKind
impl Debug for MidiNoteKind
Source§impl Default for MidiNoteKind
impl Default for MidiNoteKind
Source§fn default() -> MidiNoteKind
fn default() -> MidiNoteKind
Returns the “default value” for a type. Read more
Source§impl Hash for MidiNoteKind
impl Hash for MidiNoteKind
Source§impl PartialEq for MidiNoteKind
impl PartialEq for MidiNoteKind
Source§fn eq(&self, other: &MidiNoteKind) -> bool
fn eq(&self, other: &MidiNoteKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MidiNoteKind
impl Eq for MidiNoteKind
impl StructuralPartialEq for MidiNoteKind
Auto Trait Implementations§
impl Freeze for MidiNoteKind
impl RefUnwindSafe for MidiNoteKind
impl Send for MidiNoteKind
impl Sync for MidiNoteKind
impl Unpin for MidiNoteKind
impl UnsafeUnpin for MidiNoteKind
impl UnwindSafe for MidiNoteKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more