Humdrum Extras

barnum manpage


    barnum -- Number, renumber, or remove numbers on barlines.


    barnum [-r|-s number[input[> output]


-a Number all barlines, not checking for partial measures.
-r Remove barline numbers.
-s number Starting measure number.


    The barnum program is used to manage measure numbers in Humdrum files. Its primary purpose is to add measure numbers in a score without them.



    Input arguments or piped data which are expected to be Humdrum files can also be web addresses. For example, if a program can process files like this:
           program file.krn
    It can also read the data over the web:
    Piped data works in a somewhat similar manner:
           cat file.krn | program
    is equivalent to a web file using ths form:
           echo | program

    Besides the http:// protocol, there is another special resource indicator prefix called humdrum:// which downloads data from the kernscores website. For example, using the URI humdrum://brandenburg/bwv1046a.krn:

          program humdrum://brandenburg/bwv1046a.krn
    will download the URL:
    Which is found in the Musedata Bach Brandenburg Concerto collection.

    This online-access of Humdrum data can also interface with the classical Humdrum Toolkit commands by using humcat to download the data from the kernscores website. For example, try the command pipeline:

          humcat humdrum://brandenburg/bwv1046a.krn | census -k


    The program fails Test 003 (does not number measure 2) and Test 007 (does not number measure 4; numbers the barline after measure 4 as measure 4). Also Test 010 (adding barlines to non-kern data) is not yet implemented.


    The compiled barnum program can be downloaded for the following platforms:
    • Linux (i386 processors) (dynamically linked) compiled on 28 Jun 2012.
    • Windows compiled on 29 Jun 2012.
    • Mac OS X/i386 compiled on 13 Nov 2013.
    • Mac OS X/PowerPC (version 10.2 and higher) compiled on 13 May 2009.

    The source code for the program was last modified on 9 Sep 2004. Click here to go to the full source-code download page.