A tutorial on how to encode basic pitch in **kern data.
Pitch
Here is a short music example of notes, each containing a rhythm and then a pitch:
4
represents a quarter note, and c
, d
, e
and f
represent
the first four pitches of the fourth octave (middle-C octave). The
musical example is interactive and changes whenever you type
text into the box to the left, so try adding pitches for G, A and B
in the same octave to the notation like this:
Experiment with the numbers to generate other rhythms, such as half notes and eighth notes:
Note the order of rhythm and then pitch in the encoded notes. The
order can be reversed, although the canonical order is rhythm first,
then pitch. Try reversing the order of a note such as 4c
to c4
and see what happens to the note in the graphical notation.