Skip to main content
Version: v6

Add Label

Version 6.4.x​

Label is part of annotation. See Add Annotation.

Version 6.3.x and Earlier​

Labels have their own addLabel function.

Label text will be anchored to previously added note or rest.

// Add note/pitch label.
builder.addNote(0, "C#5", "1n").addLabel("note", "C#5");

// Add chord label.
builder.addChord(0, ["A3", "C4", "E4"], "1n").addLabel("chord", "Am");

Live Example​