Documentation · Pitch

key <root>[oct] <quality> Key

The key that scale degrees resolve against: a root, an optional octave, and maj, min, harm or mel.

  • The default is C major, with degree 1 on middle C.
  • Without an octave, degree 1 sits in octave 4: key f# min puts 1 on f#4.
  • Without a quality the key is major.
  • A key holds until the next key line.
  • Literal notes like c4 ignore the key.

One tune in three keys.

running…edit it and it re-runs as you type

c4 e4 g4 e4 c4 a3 c4 e4 c4 a3 d#4 g4 a#4 g4 d#4

The four qualities on C: major, natural minor, harmonic minor, melodic minor.

running…edit it and it re-runs as you type

c4 d4 e4 f4 g4 a4 b4 c5 c4 d4 d#4 f4 g4 g#4 a#4 c5 c4 d4 d#4 f4 g4 g#4 b4 c5 …

The octave number moves degree 1, and a key with no octave uses octave 4.

running…edit it and it re-runs as you type

a3 c4 e4 a4 c5 e5

Literal notes are the same in every key.

running…edit it and it re-runs as you type

d#4 f4 g4 c4 d4 e4