pub enum Rate {
Quarter,
Eighth,
Sixteenth,
ThirtySecond,
EighthTriplet,
SixteenthTriplet,
}Expand description
How long one step lasts, as a musical division.
An enum rather than the raw tick count so that a rate cannot be a number
nothing plays at, and rather than a u8 index so that a session or a UI
cannot hand the audio thread a rate that does not exist. Ticks per step at
960 PPQ are exact for every entry, triplets included — 960 divides by 3.
Variants§
Implementations§
Source§impl Rate
impl Rate
Trait Implementations§
impl Copy for Rate
impl Eq for Rate
impl StructuralPartialEq for Rate
Auto Trait Implementations§
impl Freeze for Rate
impl RefUnwindSafe for Rate
impl Send for Rate
impl Sync for Rate
impl Unpin for Rate
impl UnsafeUnpin for Rate
impl UnwindSafe for Rate
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