Options
All
  • Public
  • Public/Protected
  • All
Menu

Tuplets create irregular rhythms; e.g. triplets, quadruplets, quintuplets, etc.

Hierarchy

  • Tuplet

Index

Constructors

  • new Tuplet(tupletLabelNumber: number, bracket?: boolean): Tuplet

Properties

BracketedXmlValue: boolean

Boolean if 'bracket="no"' or "yes" was explicitly requested in the XML, otherwise undefined.

PlacementFromXml: boolean = false
RenderTupletNumber: boolean = true
ShowNumberNoneGivenInXml: boolean

Whether was given in the XML, indicating the tuplet number should not be rendered.

bracket: boolean

Whether this tuplet has a bracket. (e.g. showing |--3--| or just 3 for a triplet)

fractions: Fraction[] = []
notes: Note[][] = []

Notes contained in the tuplet, per VoiceEntry (list of VoiceEntries, which has a list of notes).

tupletLabelNumber: number
tupletLabelNumberPlacement: PlacementEnum

Accessors

  • get Bracket(): boolean
  • set Bracket(value: boolean): void
  • get Notes(): Note[][]
  • set Notes(value: Note[][]): void
  • get TupletLabelNumber(): number
  • set TupletLabelNumber(value: number): void

Methods

  • getNoteIndex(note: Note): number
  • shouldBeBracketed(useXmlValue: boolean, tupletsBracketed: boolean, tripletsBracketed: boolean, isTabMeasure?: boolean, tabTupletsBracketed?: boolean): boolean
  • Determines whether the tuplet should be bracketed (arguments are EngravingRules).

    Parameters

    • useXmlValue: boolean
    • tupletsBracketed: boolean
    • tripletsBracketed: boolean
    • isTabMeasure: boolean = false
    • tabTupletsBracketed: boolean = false

    Returns boolean

Generated using TypeDoc