Diatonic scale are major scales (those with a major third/triad: Ionian, Lydian, and Mixolydian), three are minor (those with a minor third/triad: Dorian, Phrygian, and Aeolian). To these may be added the seventh diatonic scale, with a diminished fifth above the reference note, the Locrian scale. These could be transposed not only to include one flat in the signature (as described by Glarean), but to all twelve notes of the chromatic scale, resulting in a total of eighty-four diatonic scales. The modern musical keyboard originated as a diatonic keyboard with only white keys. The black keys were progressively added for several purposes:
Transposition (music) Thus the set ("A") consisting of 0–1–2 transposed by 5 semitones is 5–6–7 (T("A")) since , , and . There are two different kinds of transposition, depending on whether one is measuring intervals according to the chromatic scale or some other scale. In chromatic transposition one shifts every pitch in a collection of notes by a fixed number of semitones. For instance, if one transposes the pitches C–E–G upwards by four semitones, one obtains the pitches E–G–B. In scalar transposition one shifts every pitch in a collection by a fixed number of scale steps relative to some scale. For example,