pub struct Record<'a> { /* private fields */ }Expand description
One line of a measure: music21’s MuseDataRecord.
Implementations§
Source§impl Record<'_>
impl Record<'_>
Sourcepub fn is_cue_or_grace(&self) -> bool
pub fn is_cue_or_grace(&self) -> bool
music21’s isCueOrGrace.
Sourcepub fn pitch_parameters(&self) -> Result<String>
pub fn pitch_parameters(&self) -> Result<String>
music21’s _getPitchParameters: the pitch’s name as music21 writes
it, E-4.
§Errors
A record that is no note, chord tone, cue or grace note.
Sourcepub fn pitch(&self) -> Result<Pitch>
pub fn pitch(&self) -> Result<Pitch>
music21’s getPitchObject: the pitch, with the accidental column 19
shows.
§Errors
Sourcepub fn has_cautionary_accidental(&self) -> bool
pub fn has_cautionary_accidental(&self) -> bool
music21’s hasCautionaryAccidental: a + among the notations.
Sourcepub fn shown_accidental(&self) -> Result<Option<Accidental>>
pub fn shown_accidental(&self) -> Result<Option<Accidental>>
music21’s _getAccidentalObject: the accidental column 19 shows.
§Errors
None in practice: each name is one the crate knows.
Sourcepub fn quarter_length(&self, divisions: FloatType) -> Result<FloatType>
pub fn quarter_length(&self, divisions: FloatType) -> Result<FloatType>
Sourcepub fn beams(&self) -> Option<String>
pub fn beams(&self) -> Option<String>
music21’s getBeams: the beam column, trailing spaces taken off.
Sourcepub fn slur_marks(&self) -> String
pub fn slur_marks(&self) -> String
getSlurSymbols: the slur marks among the notations, in the order
they are written; a stage-1 record has none.
Sourcepub fn articulations(&self) -> Vec<Articulation>
pub fn articulations(&self) -> Vec<Articulation>
music21’s getArticulationObjects.
Sourcepub fn expressions(&self) -> Vec<Expression>
pub fn expressions(&self) -> Vec<Expression>
music21’s getExpressionObjects.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for Record<'a>
impl<'a> Freeze for Record<'a>
impl<'a> Move for Record<'a>
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnsafeUnpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more