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;