Struct midi_msg::TimeSignature
source · pub struct TimeSignature {
pub signature: Signature,
pub midi_clocks_in_metronome_click: u8,
pub thirty_second_notes_in_midi_quarter_note: u8,
pub compound: Vec<Signature>,
}
Expand description
Used to communicate a new time signature to the receiver.
Used by UniversalRealTimeMsg
.
Fields§
§signature: Signature
The base time signature.
midi_clocks_in_metronome_click: u8
How many MIDI clock events per metronome click.
24 indicates one click per quarter note (unless specified otherwise by thirty_second_notes_in_midi_quarter_note
)
thirty_second_notes_in_midi_quarter_note: u8
Number of notated 32nd notes in a MIDI quarter note. 8 is the normal value (e.g. a midi quarter note is a quarter note)
compound: Vec<Signature>
At most 61 (!) additional times signatures for compound time definitions
Trait Implementations§
source§impl Clone for TimeSignature
impl Clone for TimeSignature
source§fn clone(&self) -> TimeSignature
fn clone(&self) -> TimeSignature
Returns a copy of the value. Read more
1.0.0 · 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 TimeSignature
impl Debug for TimeSignature
source§impl Default for TimeSignature
impl Default for TimeSignature
source§impl PartialEq for TimeSignature
impl PartialEq for TimeSignature
source§fn eq(&self, other: &TimeSignature) -> bool
fn eq(&self, other: &TimeSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TimeSignature
impl StructuralPartialEq for TimeSignature
Auto Trait Implementations§
impl Freeze for TimeSignature
impl RefUnwindSafe for TimeSignature
impl Send for TimeSignature
impl Sync for TimeSignature
impl Unpin for TimeSignature
impl UnwindSafe for TimeSignature
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