3.3. Annotator

Annotator generates an annotated digital score from a given score and a JSON file generated by Calculator.

The basic command line is:

rpscripts annotate -s score.xml score.json
annotated-score

Annotated score

Annotator does not work with trimmed scores Trimmer.

Option -h returns the program’s help:

usage: rpscripts annotate [-h] -s SCORE_FILENAME [-t TYPE] filename

positional arguments:
filename              JSON filename (calc's output)

options:
-h, --help            show this help message and exit
-s SCORE_FILENAME, --score_filename SCORE_FILENAME
                        digital score filename (XML, MXL, MIDI and KRN)
-t TYPE, --type TYPE  type of annotation (partitions, tclass, tcontour)

3.3.1. Types

Annotator program can annotate multiple types of data into the given digital score. The default type is partitions.

The -t option defines the type of annotation:

3.3.1.1. Textural class

rpscripts annotate -t tclass -s score.xml score.json
annotated-score-tclass

Annotated score (tclass)

3.3.1.2. Textural complexity

rpscripts annotate -t tcontour -s score.xml score.json
annotated-score-tcontour

Annotated score (tcontour)