# Graham complexity

The **Graham complexity** of a set of pitch classes in a rank-2 temperament is the number of periods per octave times the difference between the maximum and minimum number of generators required to reach each pitch class. For example, consider the just major triad in diaschismic temperament, with mapping [⟨2 0 11], ⟨0 1 -2]] corresponding to a generator of a '3'. That makes a 5/4 represented by [7 -2] and 3/2 by [-2 1], and 1 of course by [0 0]; so that the difference between the maximum and minimum number of generators is 1 - (-2) = 3, and so the Graham complexity of a major triad is 2 × 3 = 6.

Given a mos (or any generated scale) with *N* notes in a temperament where a given chord has a Graham complexity of *C* results in (*N* - *C*) chords in the mos. For instance, the Graham complexity for both a major or a minor triad in meantone is 4, and hence there are 7 - 4 = 3 major triads in the diatonic scale, which is meantone[7], and 3 minor triads. When the chord is a dyad, the Graham complexity of the dyad, which can be regarded as the Graham complexity of an interval, is therefore *N* - *m*, where *m* is the number of specific interval dyads in its interval class. So long as the mos is constant structure, which it will be except in special cases, this is therefore definable entirely in terms of the mos without reference to a rank-2 temperament, and such a definition can be extended to any chord in the mos as the maximum complexity of its dyads. Such complexity could be called mos Graham complexity as distinct from temperament Graham complexity.

The Graham complexity of the *q*-limit chord of nature is a complexity measure of the temperament itself, which is also sometimes called the Graham complexity.