Struct midi_msg::FileTimeSignature
source · pub struct FileTimeSignature {
pub numerator: u8,
pub denominator: u16,
pub clocks_per_metronome_tick: u8,
pub thirty_second_notes_per_24_clocks: u8,
}
Expand description
A time signature occurring in a Standard Midi File.
Fields§
§numerator: u8
The numerator of the time signature, as it would be notated.
denominator: u16
The denominator of the time signature, as it would be notated.
This is tranformed from the power-of-two representation used in the file.
clocks_per_metronome_tick: u8
The number of MIDI clocks per metronome tick.
thirty_second_notes_per_24_clocks: u8
How many 32nd notes are in a MIDI quarter note, which should usually be 8.
Trait Implementations§
source§impl Clone for FileTimeSignature
impl Clone for FileTimeSignature
source§fn clone(&self) -> FileTimeSignature
fn clone(&self) -> FileTimeSignature
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 FileTimeSignature
impl Debug for FileTimeSignature
source§impl PartialEq for FileTimeSignature
impl PartialEq for FileTimeSignature
source§fn eq(&self, other: &FileTimeSignature) -> bool
fn eq(&self, other: &FileTimeSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FileTimeSignature
Auto Trait Implementations§
impl Freeze for FileTimeSignature
impl RefUnwindSafe for FileTimeSignature
impl Send for FileTimeSignature
impl Sync for FileTimeSignature
impl Unpin for FileTimeSignature
impl UnwindSafe for FileTimeSignature
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