Humdrum Extras

barnum examples


This page gives example input and output data for the barnum 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 barnum 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:Basic test adding measure numbers to **kern data.
    Test 002:Removing measure numbers from **kern data.
    Test 003:Adding measure numbers to kern data plus other types of spines.
    Test 004:Start numbering measures with a number other than 1.
    Test 005:Numbering measures when the initial barline is not indicated.
    Test 006:Numbering measures when there is a pickup measure.
    Test 007:Numbering measures with repeat bars in the middle of the measure.
    Test 008:Renumber measures.
    Test 009:Removing measure numbers from non-**kern data.
    Test 010:Adding measure numbers to non-**kern data.


Test 001: Basic test adding measure numbers to **kern data.

The command:

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

input-file:
output-file:
Test 002: Removing measure numbers from **kern data.

The command:

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

input-file:
output-file:
Test 003: Adding measure numbers to kern data plus other types of spines.

The command:

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

input-file:
output-file:
Test 004: Start numbering measures with a number other than 1.

The command:

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

input-file:
output-file:
Test 005: Numbering measures when the initial barline is not indicated.

The command:

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

input-file:
output-file:
Test 006: Numbering measures when there is a pickup measure.

The command:

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

input-file:
output-file:
Test 007: Numbering measures with repeat bars in the middle of the measure.

The command:

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

input-file:
output-file:
Test 008: Renumber measures.

The command:

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

input-file:
output-file:
Test 009: Removing measure numbers from non-**kern data.

The command:

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

input-file:
output-file:
Test 010: Adding measure numbers to non-**kern data.

The command:

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

input-file:
output-file: