In music, a pitch class (p.c. or pc) is a set of all pitches that are a whole number of octaves apart; for example, the pitch class C consists of the Cs in all octaves. "The pitch class C stands for all possible Cs, in whatever octave position." Important to musical set theory, a pitch class is "all pitches related to each other by octave, enharmonic equivalence, or both." Thus, using scientific pitch notation, the pitch class "C" is the set
{Cn : n is an integer} = {..., C−2, C−1, C0, C1, C2, C3 ...}.
Although there is no formal upper or lower limit to this sequence, only a few of these pitches are audible to humans.
Pitch class is important because human pitch-perception is periodic: pitches belonging to the same pitch class are perceived as having a similar quality or color, a property called "octave equivalence".
Psychologists refer to the quality of a pitch as its "chroma". A chroma is an attribute of pitches (as opposed to tone height), just like hue is an attribute of color. A pitch class is a set of all pitches that share the same chroma, just like "the set of all white things" is the collection of all white objects.
Note that in standard Western equal temperament, distinct spellings can refer to the same sounding object: B3, C4, and D4 all refer to the same pitch, hence share the same chroma, and therefore belong to the same pitch class. This phenomenon is called enharmonic equivalence.
To avoid the problem of enharmonic spellings, theorists typically represent pitch classes using numbers beginning from zero, with each successively larger integer representing a pitch class that would be one semitone higher than the preceding one, if they were all realised as actual pitches in the same octave. Because octave-related pitches belong to the same class, when an octave is reached, the numbers begin again at zero. This cyclical system is referred to as modular arithmetic and, in the usual case of chromatic twelve-tone scales, pitch-class numbering is regarded as "modulo 12" (customarily abbreviated "mod 12" in the music-theory literature)—that is, every twelfth member is identical.