Humdrum Extras

beat examples


This page gives example input and output data for the beat 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 beat 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 beat position of each point in the score.
    Test 002:Measure the beat position of each point in the score, using fractions.
    Test 003:Measure the beat position of each point in the score, using ticks.
    Test 004:Append output data to input lines.
    Test 005:Prepend output data to input lines.
    Test 006:Sum the number of beats in each measure.
    Test 007:Sum the number of beats in each measure and append analysis to input data.
    Test 008:Measure the beat position in 6/8 meter, beat on the eighth note.
    Test 009:Measure the beat position in 6/8 meter, beat on the dotted quarter-note.
    Test 010:Start counting beats at 0 rather than 1.
    Test 011:Analyze music in a compound meter, displaying as fractions.


Test 001: Measure the beat position of each point in the score.

The command:

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

input-file:
output-file:
Test 002: Measure the beat position of each point in the score, using fractions.

The command:

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

input-file:
output-file:
Test 003: Measure the beat position of each point in the score, using ticks.

The command:

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

input-file:
output-file:
Test 004: Append output data to input lines.

The command:

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

input-file:
output-file:
Test 005: Prepend output data to input lines.

The command:

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

input-file:
output-file:
Test 006: Sum the number of beats in each measure.

The command:

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

input-file:
output-file:
Test 007: Sum the number of beats in each measure and append analysis to input data.

The command:

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

input-file:
output-file:
Test 008: Measure the beat position in 6/8 meter, beat on the eighth note.

The command:

     beat -u 8 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 009: Measure the beat position in 6/8 meter, beat on the dotted quarter-note.

The command:

     beat -u 4. input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 010: Start counting beats at 0 rather than 1.

The command:

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

input-file:
output-file:
Test 011: Analyze music in a compound meter, displaying as fractions.

The command:

     beat -f -u 4. input-file > output-file
using the following input, will generate the following output:

input-file:
output-file: