OpenSheetMusicDisplay
    Preparing search index...

    Class InstantaneousTempoExpression

    Tempo expressions that usually have an instantaneous and non-gradual effect on playback speed (e.g. Allegro), or at least cover large sections, compared to the usually gradual effects or shorter sections of ContinuousExpressions.

    Hierarchy (View Summary)

    Index
    beatUnit: string
    ChangeSubType: ChangeSubType = ChangeSubType.none

    This is none unless TempoType is change.

    ColorXML: string
    Dashes: Dashes

    The dashed line that extends the expression's text up to where it stops applying, e.g. "cresc. - - - -": MusicXML <dashes>. Undefined if the text has none.

    dotCount: number = 0

    The number of dots of a metronome mark's beat unit (MusicXML <beat-unit-dot>), e.g. 2 for double-dotted quarter = 80. 0 for a tempo expression without a beat unit.

    InstTempo: InstTempo
    isMetronomeMark: boolean
    label: string
    language: string

    The xml:lang of the expression's words, see Label.language.

    metronomeNoteGroupLeft: MetronomeNoteGroup

    For complex metronome marks (note equations like swing): left-side note group

    metronomeNoteGroupRight: MetronomeNoteGroup

    For complex metronome marks (note equations like swing): right-side note group

    metronomeRelation: string

    The relation between left and right groups, e.g. "equals"

    parentMeasure: SourceMeasure
    parentMultiTempoExpression: MultiTempoExpression
    placement: PlacementEnum
    printObject: boolean = true

    Whether a metronome mark is drawn (false for MusicXML print-object="no"). A hidden mark still sets the tempo.

    staffNumber: number
    TempoType: TempoType
    YPositionXml: number

    The vertical position the file gives the words or dynamic, in tenths of a staff space, up from the top line of the staff: MusicXML default-y plus relative-y. Undefined without a default-y (see ExpressionReader.readYPositionXml()).

    • get TempoInQuarterNotesPerMinute(): number

      The tempo in quarter notes per minute, the unit of a <sound tempo> and of playback: TempoInBpm, converted by the beat unit and its dots for a metronome mark with a per-minute, e.g. 60 for half = 30, 90 for dotted quarter = 60, 140 for double-dotted quarter = 80 and 60 for eighth = 120.

      Returns number

    • The factor by which a note equation (metronomeNoteGroupLeft = metronomeNoteGroupRight) changes the tempo. The left side is read in the old tempo and the right side in the new one (the usual reading of a metric modulation), so quarter = dotted quarter gives 1.5: the new dotted quarter lasts as long as the old quarter. Both sides of a swing mark (two eighths = triplet quarter + eighth) last one quarter, so it keeps the tempo (1). 1 if this is no note equation or a side's length is unknown. A fraction, so that e.g. 144 * 2 / 3 stays exactly 96.

      Returns Fraction

    • Whether this changes the tempo in force for a while rather than giving a tempo of its own, so that "a tempo" returns to the tempo before it: a change word like rit. or accel., a word with only add-ons like poco rit., or a tempo word with più, meno or poco like piu lento or poco lento. Not a metronome mark, a tempo word like Allegro, "a tempo", Tempo I or doppio movimento.

      Returns boolean