pub enum Clocks {
DottedWhole,
Whole,
DottedHalf,
Half,
DottedQuarter,
Quarter,
DottedEighth,
Eighth,
DottedSixteenth,
Sixteenth,
Other(u8),
}
Expand description
There are 24 MIDI Clocks in every quarter note. (12 MIDI Clocks in an eighth note, 6 MIDI Clocks
in a 16th, etc). One example of using this enum is in the TimeSignature
, where we can specify
the frequency of the metronome click.
Variants§
DottedWhole
142 MIDI clocks.
Whole
96 MIDI clocks.
DottedHalf
72 MIDI clocks.
Half
48 MIDI clocks.
DottedQuarter
32 MIDI clocks.
Quarter
24 MIDI clocks.
DottedEighth
18 MIDI clocks.
Eighth
12 MIDI clocks.
DottedSixteenth
9 MIDI clocks.
Sixteenth
6 MIDI clocks.
Other(u8)
Any number of MIDI clocks, intended for durations not named above.
Implementations§
Trait Implementations§
source§impl Ord for Clocks
impl Ord for Clocks
source§impl PartialEq for Clocks
impl PartialEq for Clocks
source§impl PartialOrd for Clocks
impl PartialOrd for Clocks
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Clocks
impl Eq for Clocks
impl StructuralEq for Clocks
impl StructuralPartialEq for Clocks
Auto Trait Implementations§
impl RefUnwindSafe for Clocks
impl Send for Clocks
impl Sync for Clocks
impl Unpin for Clocks
impl UnwindSafe for Clocks
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