Skip to main content

alphaTab.model.Chord

A chord definition.

 class Chord

Propertiesโ€‹

barreFretsโ€‹

Gets or sets a list of frets where the finger should hold a barre

barreFrets: number[];

firstFretโ€‹

Indicates the first fret of the chord diagram.

firstFret: number;

nameโ€‹

Gets or sets the name of the chord

name: string;

showDiagramโ€‹

Gets or sets whether the chord diagram is shown.

showDiagram: boolean;

showFingeringโ€‹

Gets or sets whether the fingering is shown below the chord diagram.

showFingering: boolean;

showNameโ€‹

Gets or sets whether the chord name is shown above the chord diagram.

showName: boolean;

staffโ€‹

Gets or sets the staff the chord belongs to.

staff: Staff;

stringsโ€‹

Gets or sets the frets played on the individual strings for this chord.

  • The order in this list goes from the highest string to the lowest string.
  • -1 indicates that the string is not played.
strings: number[];

uniqueIdโ€‹

Gets a unique id for this chord based on its properties.

readonly uniqueId: string;