pub enum PitchDelta {
Semitones(i32),
Octaves(i16),
ScaleDegrees {
scale: Scale,
steps: i32,
},
FrequencyRatio(Ratio<i64>),
Custom(CallablePitchMap),
}Expand description
Amount and kind of pitch displacement for a transpose transform.
Variants§
Semitones(i32)
Move by a fixed number of semitones.
Octaves(i16)
Move by whole octaves.
ScaleDegrees
Move by scale degrees within scale.
Fields
FrequencyRatio(Ratio<i64>)
Move by the interval nearest to a frequency ratio.
Custom(CallablePitchMap)
Move via a named CallablePitchMap.
Trait Implementations§
Source§impl Clone for PitchDelta
impl Clone for PitchDelta
Source§fn clone(&self) -> PitchDelta
fn clone(&self) -> PitchDelta
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 PitchDelta
impl Debug for PitchDelta
impl Eq for PitchDelta
Source§impl PartialEq for PitchDelta
impl PartialEq for PitchDelta
impl StructuralPartialEq for PitchDelta
Auto Trait Implementations§
impl Freeze for PitchDelta
impl RefUnwindSafe for PitchDelta
impl Send for PitchDelta
impl Sync for PitchDelta
impl Unpin for PitchDelta
impl UnsafeUnpin for PitchDelta
impl UnwindSafe for PitchDelta
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