Humdrum Extras

sonority examples


This page gives example input and output data for the sonority program. The output data from these tests can be compared to output on your platform using the same input file in order to determine if there is a problem with the sonority program. If the output you generate is not the same as the output listed in the individual tests, then something may be wrong with the compiled program or your computing environment (or a bug added to the program after the example output was generated).


Test Index

    Test 001:Test of basic chord types in root position.
    Test 002:Test of basic chord types in first inversion.
    Test 003:Moving the root to different pitch classes.
    Test 004:Display only the inversions of chords.
    Test 005:Display only the root of chords.
    Test 006:Display only the chord quality of the sonority.


Test 001: Test of basic chord types in root position.

The command:

     sonority input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 002: Test of basic chord types in first inversion.

The command:

     sonority input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 003: Moving the root to different pitch classes.

The command:

     sonority input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 004: Display only the inversions of chords.

The command:

     sonority -i input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 005: Display only the root of chords.

The command:

     sonority -r input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 006: Display only the chord quality of the sonority.

The command:

     sonority -t input-file > output-file
using the following input, will generate the following output:

input-file:
output-file: