- How many measures are there in Corelli's Opus 1, No. 11, first movement?
COMMAND: census -k op01n11a.krn
COMMAND: grep -c '^=[^=]' op01n11a.krn
ANSWER: 18
- How many notes are there in the oboe part from the first movement of Bach's Brandenburg Concerto No. 2 (BWV 1047)?
COMMAND: extract -i '*Ioboe' bwv1047a.krn | census -k
ANSWER: 1,232
- Which Brandenburg Concerto contains a horn part? Which movements from this concerto don't use the horn?
COMMAND: grep '!!!AIN:.*cor' bwv*.krn
COMMAND: grep -l '!!!AIN:.*cor' bwv*.krn
ANSWER: BWV 1046 (Concerto No. 1)
- Which Brandenburg Concerto contains a trumpet part? How long is the longest note played by the trumpet? How long is the shortest note played by the trumpet?
COMMAND: grep -l '!!!AIN:.*tromp' bwv*.krn
ANSWER: BWV 1047 (Concerto No. 2)
COMMAND: extract -i '*Itromp' bwv1047a.krn | census -k
ANSWER: Longest note is a whole note.
ANSWER: Shortest note is a 32nd note.
- In Brandenburg Concerto No. 3, which movement contains the greatest number of notes in the string parts?
First determine how many movements there are in the third Concerto (BWV 1048):
COMMAND: ls bwv1048*.krn
extract -i '*ICstr' bwv1048a.krn | census -k
extract -i '*ICstr' bwv1048b.krn | census -k
ANSWER: The first movement has more string notes: 10,417 versus 6,252