Music 824: Computer Applications in Music Research
Ohio State University
School of Music



Humdrum Exercise #3


For this exercise you will need to know how to use a text editor like pico, vi or emacs. In addition, you will need to know the following commands:

UNIX Commands Humdrum Commands
grep
grep -h
   

Change directories /var/share/Humdrum/Music824/Scores and answer the following questions.

  1. In the Haydn directory, search for all string quartets marked "Presto". Most presto movements occur as the fourth movement (often indicated in the filename by the trailing letter "d"). Which string quartet has the "presto" marking for the third movement?
    COMMAND:     grep 'Presto' *
    ANSWER:         Opus 76, No. 6
  2. In the "monody" directory there is a subdirectory containing Hungarian folksongs ("Magyar"). Which folksong has a meter signature of 5/8?
    COMMAND:     grep 'M5/8' *.krn
    COMMAND:     grep 'OTL' magyar10.krn
    ANSWER:         !!!OTL: Wiedersehen an der Bahre Der Juengling, der in Kampfe zog,
  3. Which Hungarian folksong is entitled "Vater und Tochter"?
    COMMAND:     grep 'Vater und Tochter' *.krn
    ANSWER:         magyar31.krn
  4. The Corelli directory contains 12 trio sonatas by Arcangelo Corelli. The highest pitch in these sonatas is E6 (kern "eee"). In which sonata does this pitch occur?
    COMMAND:     grep 'eee' *.krn
    ANSWER:         3rd movement of opus 1, no. 3 (op01n03c.krn)
  5. The 'AIN' reference record encodes the instrumentation. Do all of the Corelli Opus 1 trio sonatas have the same instrumentation?
    COMMAND:     grep -h '!!!AIN' *.krn | uniq
    ANSWER:         Yes.
    Return to Exercises and Assignments Index
    Return to Music 824 Index