Humdrum Extras

harm2kern examples


This page gives example input and output data for the harm2kern 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 harm2kern 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:Triads on the scale degrees of C Major.
    Test 002:Triads on the scale degrees of C Minor.
    Test 003:Appending **kern data to original **harm data.
    Test 004:Triads in first inversion.
    Test 005:Triads in second inversion.
    Test 006:Seventh chords and their inversions in C Major.
    Test 007:Chord qualities with a root on C.
    Test 008:Example of the octave option.
    Test 009:Extracting only the root of the chord.
    Test 010:Extracting only the base line of the chord.
    Test 011:Adding duration information to the **kern output.
    Test 012:Preventing duration information from being added to the **kern output.
    Test 013:Secondary dominants.


Test 001: Triads on the scale degrees of C Major.

The command:

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

input-file:
output-file:
Test 002: Triads on the scale degrees of C Minor.

The command:

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

input-file:
output-file:
Test 003: Appending **kern data to original **harm data.

The command:

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

input-file:
output-file:
Test 004: Triads in first inversion.

The command:

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

input-file:
output-file:
Test 005: Triads in second inversion.

The command:

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

input-file:
output-file:
Test 006: Seventh chords and their inversions in C Major.

The command:

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

input-file:
output-file:
Test 007: Chord qualities with a root on C.

The command:

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

input-file:
output-file:
Test 008: Example of the octave option.

The command:

     harm2kern -o 1 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 009: Extracting only the root of the chord.

The command:

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

input-file:
output-file:
Test 010: Extracting only the base line of the chord.

The command:

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

input-file:
output-file:
Test 011: Adding duration information to the **kern output.

The command:

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

input-file:
output-file:
Test 012: Preventing duration information from being added to the **kern output.

The command:

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

input-file:
output-file:
Test 013: Secondary dominants.

The command:

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

input-file:
output-file: