Skip to main content

Add Label

Add text label. It will be anchored to previously added symbol (note, rest).

There are two types of labels currently.

  1. "chord"

Add chord label, positioned above staff by default.

builder
.addChord(0, ["A3", "C4", "E4"], "2n")
.addLabel("chord", "Am");
  1. "note"

Add note label, positioned below staff by default.

builder
.addChord(0, "C#5", "2n")
.addLabel("note", "C#5");

💡 You can as well use Score.Label enum values.