At some point I discovered that the 'degree' of an interval (unison, sixth, ...) is simply determined by writing it as $\;t\text{ major seconds} + s\text{ sharps}\;$ (both $\;t\;$ and $\;s\;$ can be negative, for example$\;-2\text{ sharps} = 2\text{ flats}\;$; and this 'factorization' is unique), and then $\;t\;$ completely determines the degree:
- $\;t+1\;$ being $1$ is a unison, $2$ is a second, ..., $5$ is a fifth, ..., $8$ is an octave, etc.
- $\;t-1\;$ being $-1$ is an inverted unison, $-2$ is an inverted second, ..., $-5$ is an inverted fifth, ..., $-8$ is an inverted octave, etc.
(Note how I also could have chosen minor seconds instead of major seconds. Note also that this doesn't say that e.g. $\;t=7\;$ major seconds make up an octave; it just says that $7$ major seconds differs from an octave by at most a number of sharps.)
Relatedly, I discovered that if you want to know the 'quality' of a musical interval (whether it is e.g. augmented or perfect or minor), then the simplest way is to write the interval (again uniquely, again positive and negative integers allowed) as $\;f\text{ fifths} + o\text{ octaves}\;$, and then $\;f\;$ completely determines the quality:
- $\;f\;$ from $-1$ to $5$ is major (but see below!), from $6$ to $12$ is augmented, from $13$ to $19$ is doubly augmented, etc.
- $\;f\;$ from $1$ to $-5$ is minor (but see below!), from $-6$ to $-12$ is diminished, from $-13$ to $-19$ is doubly diminished, etc.
- Except if $\;f\;$ is between $-1$ and $1$ then we don't call it major and minor, but instead perfect.
Note how this gives 'blocks' of 7 that all have the same quality, so all are major, or all doubly diminished.
More mathematically, $\;h(f) = \max(0, \left\lfloor (f+8)/7 \right\rfloor)\;$ determines how 'major' an interval with $\;f\;$ fifths is (and $\;h(-f)\;$ how 'minor' it is); so that $\;h(f)-h(-f)\;$ is $0$ for a perfect interval, $2$ for an augmented one, $-1$ for a minor one, etc.
So for example, the interval of $\;10\text{ fifths} - 6 \text{ octaves} \;=\; -2\text{ major seconds} + 2\text{ sharps}\;$ (e.g. from E♭ to the C♯ below it) is the inverted third ($\;t-1=-3\;$) that is augmented ($\;f=10\;$). Which we don't normally call the augmented inverted third, but instead the inverted diminished third (where the move of "inverted" flips between major and minor).
Note how each 'factoring' is really writing an interval as a linear combination of basis vectors, either of $\;(1\text{ fifth}, 1\text{ octave})\;$ or of $\;(1\text{ major second}, 1\text{ sharp})\;$.
Also, note that this is simple in computational or mathematical terms, not necessarily for human day-to-day use.
My question: Is this explained any in music theory resource, preferably online, where I perhaps could also find some more background and musical and mathematical connections?
Because I can't imagine I would be the first to discover this.
