# Interval class

In music, specifically, musical set theory an**interval class**, or unordered pitch-class interval, is an interval measured by the distance between its two pitch classes ordered so they are as close as possible. It was created to account for octave and inversional equivalency. Since there are 12 pitch classes in the equal tempered scale the largest interval class is 6, since any interval larger than that is not the closest ordering, see complement. For example, the interval of a perfect fifth, or 7, is the interval class 5, or a perfect fourth.

Using integer notation and modulo 12, the unordered pc interval, *i*(*a*,*b*), may be defined as:

- the smaller of and

*i*<

*a*,

*b*> being ordered pitch class interval.