A Unified Theory of Diminished Chords