Humdrum Extras

transpose examples


This page gives example input and output data for the transpose 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 transpose 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:Transpose a C Major scale up a minor third.
    Test 002:Transpose a C Major scale to E Major.
    Test 003:Transpose a C Minor phrase up a major second.
    Test 004:Transpose a C Minor phrase to D Minor.
    Test 005:Transpose only the second spine up a perfect fifth.
    Test 006:Transpose up a perfect 5th from C major to G major.
    Test 007:Transpose up a major 2nd from F lydian to G lydian.
    Test 008:Transpose up a major third using diatonic/chromatic binomial interval.
    Test 009:Transpose without inserting a *Tr interpretation.
    Test 010:Transposing only one spine, printing *Tr indication only in that spine.
    Test 011:Adding multiple *Tr transposition actions.
    Test 012:Convert an instrumental written part without transposition information into concert pitch form.


Test 001: Transpose a C Major scale up a minor third.

The command:

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

input-file:
output-file:
Test 002: Transpose a C Major scale to E Major.

The command:

     transpose -k E input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 003: Transpose a C Minor phrase up a major second.

The command:

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

input-file:
output-file:
Test 004: Transpose a C Minor phrase to D Minor.

The command:

     transpose -k d input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 005: Transpose only the second spine up a perfect fifth.

The command:

     transpose -t P5 -s 2 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 006: Transpose up a perfect 5th from C major to G major.

The command:

     transpose -k g -s 2 -o 1 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 007: Transpose up a major 2nd from F lydian to G lydian.

The command:

     transpose -k g -s 2 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 008: Transpose up a major third using diatonic/chromatic binomial interval.

The command:

     transpose -d 2 -c 4 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 009: Transpose without inserting a *Tr interpretation.

The command:

     transpose -b 23 -q -s2 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 010: Transposing only one spine, printing *Tr indication only in that spine.

The command:

     transpose -b 17 -s2 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 011: Adding multiple *Tr transposition actions.

The command:

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

input-file:
output-file:
Test 012: Convert an instrumental written part without transposition information into concert pitch form.

The command:

     transpose -I -s2 -b-6 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file: