Struct rust_music::score::Metadata
source · pub struct Metadata {
pub key_signature: i8,
pub mode: Mode,
pub time_numerator: u8,
pub time_denominator: u8,
}Expand description
Contains information about the score that aren’t needed for MIDI play such as time signature, key signature (number of accidentals), and mode
Fields§
§key_signature: i8Describes the number of accidentals of the Score.
Should always be between -7 and 7. Negative numbers are
Flats, positive numbers are Sharps
mode: ModeDescribes the mode of the scale
time_numerator: u8Describes the numerator in the time signature
time_denominator: u8Describes the denominator in the time signature
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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