
Refer to the guitar arrangements of music by Bach, Carulli and Dowland, and answer the following questions:
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'P'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'I'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'M'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'A'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'Q'
ANSWER: Index finger - 348 instances (Thumb 339; Middle 273; Ring 126; Little 0)
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'a'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'b'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'c'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'd'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'e'
ANSWER: Index finger - 242 instances (Thumb 0; Middle 176; Ring 192; Little 145)
COMMAND: extract -i '**fret' * | humsed 's/[^PIMAQ]//g' | rid -GLId | grep -v '^.$' | sort | uniq -c | sort -n
(ALTERNATE): extract -i '**fret' * | humsed 's/[^PIMAQ]//g' | rid -GLId | grep '..' | sort | uniq -c | sort -n
ANSWER: "PI" thumb & index finger - 85 instances
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'a.*a'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'b.*b'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'c.*c'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'd.*d'
COMMAND: extract -i '**fret' * | rid -GLId | grep -c 'e.*e'
ANSWER: index finger (27 instances)
COMMAND: extract -i '**fret' bwv996 | humsed 's/[^PIMAQ]//g' | rid -GLId | sort | uniq -c | sort -nIs this single plucking finger also the most frequently used by Dowland and by Carulli?
ANSWER: middle finger (37 times)
ANSWER: yes (Dowland 28 times; Carulli 68 times)
COMMAND: extract -i '**fret' bwv996 | humsed '/=/d; s/[^0-9]/ /g; s/ */ /g; s/^ *//' | rid -GLId | stats
COMMAND: extract -i '**fret' carulli | humsed '/=/d; s/[^0-9]/ /g; s/ */ /g; s/^ *//' | rid -GLId | stats
COMMAND: extract -i '**fret' dowland | humsed '/=/d; s/[^0-9]/ /g; s/ */ /g; s/^ *//' | rid -GLId | stats
ANSWER: Bach is slight higher up the neck (1.89 frets versus 1.85 for Carulli and 1.59 for Dowland)
Another approach to this question.
First calculate the total number of sonorities in each work:
COMMAND: rid -GLId bwv996 | grep -v = | grep -c '|'
COMMAND: rid -GLId carulli | grep -v = | grep -c '|'
COMMAND: rid -GLId dowland | grep -v = | grep -c '|'
Then calculate the number of sonorities containing open strings:
COMMAND: rid -GLId bwv996 | grep -v = | grep -c 0
COMMAND: rid -GLId carulli | grep -v = | grep -c 0
COMMAND: rid -GLId dowland | grep -v = | grep -c 0
ANSWER: Dowland has the most open-string sonorities (68/132 = 51.5%), followed by Carulli (159/368 = 43.2%) then Bach (62/148 = 41.9%)
COMMAND: extract -i '**fret' * | humsed 's/[^PIMAQ]//g; s/^$/./' | context -n 2 | sort | uniq -c | sort -nWhat do the four most common successions of plucking finger-combinations tell us about guitar arrangements?
ANSWER: middle followed by index (121 instances)
ANSWER: The four most common successions are: M -> I; I -> M; M -> PI; and PI -> M. These suggest that there is a tendency to avoid having the same finger pluck twice in a row.