pub struct TempoModel {
pub text: Option<String>,
pub beat: Option<TempoBeat>,
pub beat_role: TempoBeatRole,
pub source_span: Span,
}Expand description
A parsed ABC Q: tempo field, structured for MusicXML <metronome> export.
The raw field text is preserved in ScoreMetadata::tempo; this model adds
the interpreted beat unit, beats-per-minute and any leading quoted text so
the writer can emit a real metronome direction rather than plain words.
Fields§
§text: Option<String>Optional quoted text accompanying the tempo (e.g. "Allegro").
beat: Option<TempoBeat>Beat unit and bpm, when the field carries a numeric tempo.
beat_role: TempoBeatRoleWhether the numeric tempo was a visible metronome or playback-only
MusicXML <sound tempo>. ABC Q: creates visible metronomes; imported
playback-only tempo uses a croma carrier so the round trip does not print
a metronome that was absent from the source.
source_span: SpanTrait Implementations§
Source§impl Clone for TempoModel
impl Clone for TempoModel
Source§impl Debug for TempoModel
impl Debug for TempoModel
impl Eq for TempoModel
Source§impl PartialEq for TempoModel
impl PartialEq for TempoModel
impl StructuralPartialEq for TempoModel
Auto Trait Implementations§
impl Freeze for TempoModel
impl RefUnwindSafe for TempoModel
impl Send for TempoModel
impl Sync for TempoModel
impl Unpin for TempoModel
impl UnsafeUnpin for TempoModel
impl UnwindSafe for TempoModel
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