Humdrum Extras

autostem examples


This page gives example input and output data for the autostem 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 autostem 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:Add stems to notes in the treble clef
    Test 002:Add stems to notes in the bass clef
    Test 003:Remove stems from notes
    Test 004:Only add stems to notes which do not have them.
    Test 005:Add stems to notes, overwriting any which already exist.
    Test 006:Set the default direction of the middle staff line to point upwards.
    Test 007:Only override stem direction for non-fixed stems.
    Test 008:Override fixed stem directions
    Test 009:Don't add stems to notes which shouldn't have stems.


Test 001: Add stems to notes in the treble clef

The command:

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

input-file:
output-file:
Test 002: Add stems to notes in the bass clef

The command:

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

input-file:
output-file:
Test 003: Remove stems from notes

The command:

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

input-file:
output-file:
Test 004: Only add stems to notes which do not have them.

The command:

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

input-file:
output-file:
Test 005: Add stems to notes, overwriting any which already exist.

The command:

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

input-file:
output-file:
Test 006: Set the default direction of the middle staff line to point upwards.

The command:

     autostem -o -u input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 007: Only override stem direction for non-fixed stems.

The command:

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

input-file:
output-file:
Test 008: Override fixed stem directions

The command:

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

input-file:
output-file:
Test 009: Don't add stems to notes which shouldn't have stems.

The command:

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

input-file:
output-file: