pub enum NoteEchoScaleSnap {
Off,
PitchClasses(Vec<u8>),
}Expand description
Controls whether echoed notes are snapped to a scale.
Variants§
Off
No snapping; the drifted key is used as-is.
PitchClasses(Vec<u8>)
Snap to the nearest key whose pitch class is in this set (each value is reduced modulo 12).
Implementations§
Trait Implementations§
Source§impl Clone for NoteEchoScaleSnap
impl Clone for NoteEchoScaleSnap
Source§fn clone(&self) -> NoteEchoScaleSnap
fn clone(&self) -> NoteEchoScaleSnap
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 NoteEchoScaleSnap
impl Debug for NoteEchoScaleSnap
impl Eq for NoteEchoScaleSnap
Source§impl PartialEq for NoteEchoScaleSnap
impl PartialEq for NoteEchoScaleSnap
Source§fn eq(&self, other: &NoteEchoScaleSnap) -> bool
fn eq(&self, other: &NoteEchoScaleSnap) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NoteEchoScaleSnap
Auto Trait Implementations§
impl Freeze for NoteEchoScaleSnap
impl RefUnwindSafe for NoteEchoScaleSnap
impl Send for NoteEchoScaleSnap
impl Sync for NoteEchoScaleSnap
impl Unpin for NoteEchoScaleSnap
impl UnsafeUnpin for NoteEchoScaleSnap
impl UnwindSafe for NoteEchoScaleSnap
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