Humdrum Extras

gettime examples


This page gives example input and output data for the gettime 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 gettime 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:Measure the time of music at 60 beats per minute.
    Test 002:Measure the time of music at 144 beats per minute.
    Test 003:Measure the time of music in milliseconds rather than seconds.
    Test 004:Measuring time in milliseconds with no rounding.
    Test 005:Extract the tempo rather than the timings.
    Test 006:Measure the time of music when a ritard mark is present.
    Test 007:Measure the tempo of music when a ritard mark is present.
    Test 008:Measure the tempo of music when a ritard mark is present with no rounding.
    Test 009:Measure the time of music when an accelerando mark is present.
    Test 010:Measure the time of music when an accelerando mark is present with no rounding.
    Test 011:Interpolate between existing **time values to assign timings to intermediate points in the score.


Test 001: Measure the time of music at 60 beats per minute.

The command:

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

input-file:
output-file:
Test 002: Measure the time of music at 144 beats per minute.

The command:

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

input-file:
output-file:
Test 003: Measure the time of music in milliseconds rather than seconds.

The command:

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

input-file:
output-file:
Test 004: Measuring time in milliseconds with no rounding.

The command:

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

input-file:
output-file:
Test 005: Extract the tempo rather than the timings.

The command:

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

input-file:
output-file:
Test 006: Measure the time of music when a ritard mark is present.

The command:

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

input-file:
output-file:
Test 007: Measure the tempo of music when a ritard mark is present.

The command:

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

input-file:
output-file:
Test 008: Measure the tempo of music when a ritard mark is present with no rounding.

The command:

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

input-file:
output-file:
Test 009: Measure the time of music when an accelerando mark is present.

The command:

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

input-file:
output-file:
Test 010: Measure the time of music when an accelerando mark is present with no rounding.

The command:

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

input-file:
output-file:
Test 011: Interpolate between existing **time values to assign timings to intermediate points in the score.

The command:

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

input-file:
output-file: