Skip to main content

Add Annotation

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

There are two kinds of annotation types currently.

  1. "dynamics"
builder.addAnnotation("dynamics", "ff");
  1. "tempo"
builder.addAnnotation("tempo", "accel.");

It is also possible to detect annotation type automatically, but the list of known annotation strings is incomplete.

The following example will be detected as "dynamics" annotation type.

builder.addAnnotation("ppp");

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