Add Annotation
Add annotation text. It will be anchored to previously added symbol (note, rest).
There are two kinds of annotation types currently.
"dynamics"
builder.addAnnotation("dynamics", "ff");
"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.