Classify a spelled interval by consonance, the way a counterpoint exercise
reads it.
The spelling decides, not the semitone count: a diminished fourth is a
dissonance though it sounds like a major third, and an augmented fifth is a
dissonance though it sounds like a minor sixth. Only the perfect unison, fifth
and octave and the major and minor thirds and sixths are consonant. The
perfect fourth is context-dependent exactly as in classifyInterval.
Classify a spelled interval by consonance, the way a counterpoint exercise reads it.
The spelling decides, not the semitone count: a diminished fourth is a dissonance though it sounds like a major third, and an augmented fifth is a dissonance though it sounds like a minor sixth. Only the perfect unison, fifth and octave and the major and minor thirds and sixths are consonant. The perfect fourth is context-dependent exactly as in classifyInterval.