pub enum PitchRemap {
None,
Chromatic(i32),
PitchClass {
from: PitchClass,
to: PitchClass,
},
DrumKey(Vec<(u8, u8)>),
ScaleDegree(Symbol),
ChordTone(Symbol),
Tuning(Symbol),
Vector(Symbol),
Matrix(Symbol),
Callable(Symbol),
}Expand description
Pitch remapping applied after a placement’s transforms.
Variants§
None
Leaves pitches unchanged.
Chromatic(i32)
Shifts every pitch by a fixed number of semitones.
PitchClass
Replaces one pitch class with another.
DrumKey(Vec<(u8, u8)>)
Maps source MIDI keys to target keys for drum lanes.
ScaleDegree(Symbol)
Scale-degree remap resolved by a host-provided resolver.
ChordTone(Symbol)
Chord-tone remap resolved by a host-provided resolver.
Tuning(Symbol)
Tuning remap resolved by a host-provided resolver.
Vector(Symbol)
Vector remap resolved by a host-provided resolver.
Matrix(Symbol)
Matrix remap resolved by a host-provided resolver.
Callable(Symbol)
Callable remap resolved by a host-provided resolver.
Trait Implementations§
Source§impl Clone for PitchRemap
impl Clone for PitchRemap
Source§fn clone(&self) -> PitchRemap
fn clone(&self) -> PitchRemap
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 PitchRemap
impl Debug for PitchRemap
impl Eq for PitchRemap
Source§impl PartialEq for PitchRemap
impl PartialEq for PitchRemap
impl StructuralPartialEq for PitchRemap
Auto Trait Implementations§
impl Freeze for PitchRemap
impl RefUnwindSafe for PitchRemap
impl Send for PitchRemap
impl Sync for PitchRemap
impl Unpin for PitchRemap
impl UnsafeUnpin for PitchRemap
impl UnwindSafe for PitchRemap
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