Difference between revisions of "Humdrum homework"

From CCARH Wiki
Jump to navigation Jump to search
(Quotes needed for zsh)
Line 112: Line 112:
 
This section uses the Humdrum Tools' "context" command to examine successive pairs of melodic intervals.  Here is an example of extracting the two-interval melodic sequences (representing three notes) in the tenor part:
 
This section uses the Humdrum Tools' "context" command to examine successive pairs of melodic intervals.  Here is an example of extracting the two-interval melodic sequences (representing three notes) in the tenor part:
  
   extractx -s 2 *.krn | mint | grep -v [r=[] | context -n 2 | ridx -H | \
+
   extractx -s 2 *.krn | mint | grep -v "[r=[]" | context -n 2 | ridx -H | \
 
       sortcount -pv --min 0.5 \
 
       sortcount -pv --min 0.5 \
 
           -T "3-note melodic sequences in the tenor part" > analysis.html
 
           -T "3-note melodic sequences in the tenor part" > analysis.html

Revision as of 04:33, 18 March 2021

Music 253 Humdrum Homework

Examine melodic and harmonic properties of the Bach chorale data set. Refer to Humdrum Lab 1 for how to download the chorales (and install the tools useful for the homework).

Melodic intervals

Here is a template for extracting the melodic intervals for the tenor part in the chorales and plotting them in a histogram by percentages:

    extractx -s 2 *.krn | mint | ridx -H | grep -v "[r[]" | \
      sortcount -vp --sort interval \
         -T "Tenor melodic intervals" > melodic-tenor.html

The following plot should be displayed when opening up the generated HTML file:


[Move your mouse over the histogram bars to view the numeric values for the percentages.]

Also make plots for bass (spine 1), alto (spine 3), and soprano (spine 4) and visually compare the plots to each other.

Questions

1. Which part has the most repetitions (P1 interval)? And which has the least repetitions?

2. Which part has the most leaps (intervals greater than +2 or less than -2)?

3. Which stepwise direction is more common in each voice, going up a step or down a step? A "step" should be considered the sum of the "m2" and "M2" categories.

4. Is it more common to leap up or down in each voice (sum all of the [most common] intervals above +2/below -2)?

Melodic sequences

This section uses the Humdrum Tools' "context" command to examine successive pairs of melodic intervals. Here is an example of extracting the two-interval melodic sequences (representing three notes) in the tenor part:

  extractx -s 2 *.krn | mint | grep -v "[r=[]" | context -n 2 | ridx -H | \
     sortcount -pv --min 0.5 \
         -T "3-note melodic sequences in the tenor part" > analysis.html

This should be the resulting plot:

Notice that the most common two-interval (three-note) sequence is "-M2 -m2", meaning down a major second and then down a minor second.

Create similar plots for the other voices.

Questions

5. What is the most common two-interval melodic sequence for each voice?

6. What is the most common two-interval melodic sequence for each voice that contains a leap (an interval of 3 or higher)?

Harmonic intervals

Here is an example of how to extract the harmonic intervals between the soprano and bass parts:

    extractx -s 1,4 *.krn | hint | ridx -H | grep -v [r-] | \
         sortcount -pv -T "Harmonic intervals between Soprano and Bass" \
                   --sort interval  > analysis.html


This plot should be displayed when opening up the generated HTML file:


Make plots comparing each pair of parts bass (spine 1), tenor (spine 2), alto (spine 3), and soprano (spine 4), which is a total of 6 plots.

Questions

7. What is the most common harmonic interval between each part pair?

Scale Degrees

Here is an example of how to calculate the most common diatonic scale degrees in all parts for the Bach chorale data set:

    serialize *.krn | deg -a | ridx -H | grep -v r \
         | sed 's/[^1-7]//g' | sortcount -p

which should generate this data:

    18.85	5
    18.24	1
    14.53	3
    13.08	2
    12.46	4
    12.32	7
    10.51	6

The most common scale degree is the 5th degree (G in the key of C), followed closely by the 1st scale degree (C in the key of C).

And here is an example of how to calculate the frequencies of scale degress in a particular part:

         extractx -s 2 *.krn | deg -a | ridx -H | grep -v r | sed 's/[^1-7]//g' | sortcount -p


Questions

8. What is the most common scale degree in each part?

9. If each part were to sing their most common note in C major, what [chord] should we hear?

10. Use the context tool to calculate the most common three-interval (four-note) melodic sequence in all parts.