3.10. TClass

TClass calculates the textural classes and returns two charts: textural classes in time and textural classes graph, both from a given JSON file generated by Calculator. This command generates basic charts:

rpscripts tclass score.json

Note: See Moreira, 2019 at Bibliography for further information about textural classes.

Note: All the examples below are from Robert Schumann’s op. 48, n. 2 (See the examples folder).

textural-classes-time

Textural classes in time

textural-class-graph

Textural classes graph. Solid lines represents steps, and dashed lines, skips.

TClass calculates the textural classes of a given JSON file and saves them in the same file.

See Annotator documentation for textural classes annotation on digital score files.

TClass accepts multiple options to omit charts and to show form labels.

The option -h prints the command help:

usage: rpscripts tclass [-h] [-np] [-ng] [-fl] [-s] [-c] [-r] filename

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

options:
-h, --help            show this help message and exit
-np, --no_plot        No textural class chart
-ng, --no_graph       No graph chart
-fl, --show_form_labels
                        Draw vertical lines to display given form labels. It demands a previous labeled file. Check rpscripts labels -h' column
-s, --as_step         Step chart
-c, --counting_chart  Counting chart
-r, --radar_chart     Radar chart

3.10.1. Omit textural classes chart generation

Use the -np option to omit textural classes in time chart generation.

rpscripts tclass -np score.json

3.10.2. Omit textural classes graph generation

Use the -ng option to omit textural classes graph generation.

rpscripts tclass -ng score.json

3.10.3. Form labels displaying

For the labels displaying, use the -fl option. It adds vertical lines in the textural classes chart. It demands a labeled JSON file. The Labeler program generates the labeled file.

rpscripts tclass -fl score.json
labeled-class-chart

Textural classes chart with form labels indications

3.10.4. Step style

Use the -s option to plot textural classes in time in step style:

rpscripts tclass -s score.json
stem-classes

Textural classes chart in step style

3.10.5. Counting chart

Use the -c option to plot a textural classes counting chart.

rpscripts tclass -c score.json
textural-classes-counting-chart

Textural classes counting chart

3.10.6. Radar chart

Use the -r option to plot a radar chart.

rpscripts tclass -r score.json
textural-classes-radar

Textural classes radar chart