Humdrum Examples



  1. Identify any occurrences of German sixth chords:

    solfa -x | ditto -s = | grep '6-.*4+' | grep '3-'

  2. In African melodies, do most minor 2nds descend or ascend?

    mint Africa* | grep -c '+m2'; mint Africa* | grep -c '-m2'

  3. How many open strings are plucked in the final phrase of a Dowland lute work?

    yank -o { -r $ Dowland | rid -GLId | grep -v = | grep -c 0

  4. Determine the rhyme scheme for a vocal text.
    We're all in the dumps,
    For diamonds are trumps,
    The kittens are gone to St. Paul's
    The babies are bit,
    The moon's in a fit
    And the houses are built without walls.
    extract -i '**IPA' poem | context -b { -e } | humsed 's/}//' | humsed -f rhyme | rid -GLId

    A A B C C B