pub enum MusicUnit {
None,
Beats,
Ticks,
Percent,
Semitone,
Hertz,
}Expand description
The unit a parameter value is measured in.
Carried in a MusicParamDescriptor to describe how a parameter’s value
should be interpreted.
Variants§
None
No unit; the value is dimensionless or categorical.
Beats
Measured in beats.
Ticks
Measured in MIDI ticks.
Percent
Measured as a percentage.
Semitone
Measured in semitones.
Hertz
Measured in hertz.
Implementations§
Trait Implementations§
impl Copy for MusicUnit
impl Eq for MusicUnit
Source§impl Ord for MusicUnit
impl Ord for MusicUnit
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for MusicUnit
impl PartialOrd for MusicUnit
impl StructuralPartialEq for MusicUnit
Auto Trait Implementations§
impl Freeze for MusicUnit
impl RefUnwindSafe for MusicUnit
impl Send for MusicUnit
impl Sync for MusicUnit
impl Unpin for MusicUnit
impl UnsafeUnpin for MusicUnit
impl UnwindSafe for MusicUnit
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