Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tuplet

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

Hierarchy

  • Tuplet

Index

Constructors

constructor

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

Properties

Private bracket

bracket: boolean

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

Private fractions

fractions: Fraction[] = []

Private notes

notes: Note[][] = []

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

Private tupletLabelNumber

tupletLabelNumber: number

Accessors

Bracket

  • get Bracket(): boolean
  • set Bracket(value: boolean): void

Fractions

Notes

  • get Notes(): Note[][]
  • set Notes(value: Note[][]): void

TupletLabelNumber

  • get TupletLabelNumber(): number
  • set TupletLabelNumber(value: number): void

Methods

getNoteIndex

  • getNoteIndex(note: Note): number

Generated using TypeDoc