3.9. 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: All the examples below are from Robert Schumann’s op. 48, n. 2 (See the examples folder).
TClass calculates the textural classes of a given JSON file and saves them in the same file. JSON files generated by RPScripts versions prior to 2.1 must be regenerated by Calculator.
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] [-c] filename
positional arguments:
filename JSON filename (calc's output)
options:
-h, --help show this help message and exit
-np, --no_plot No texture 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
-c, --counting_chart Counting chart
3.9.1. Omit texture class chart generation¶
Use the -np
option to omit texture class in time chart generation.
rpscripts tclass -np score.json
3.9.2. Omit texture class graph generation¶
Use the -ng
option to omit texture class graph generation.
rpscripts tclass -ng score.json
3.9.3. Form labels displaying¶
For the labels displaying, use the -fl
option. It adds vertical lines in the indexogram. It demands a labeled JSON
file. The Labeler program generates the labeled file.
rpscripts tclass -fl score.json
3.9.4. Counting chart¶
Use the -c
option to plot a texture classes counting chart.
rpscripts tclass -c score.json