In music theory, a diatonic scale is a heptatonic (seven-note) scale that includes five whole steps (whole tones) and two half steps (semitones) in each octave, in which the two half steps are separated from each other by either two or three whole steps. In other words, the half steps are maximally separated from each other.
The seven pitches of any diatonic scale can also be obtained by using a chain of six perfect fifths. For instance, the seven natural pitch classes that form the C-major scale can be obtained from a stack of perfect fifths starting from F:
