# Dave Keenan & Douglas Blumeyer's guide to RTT: units analysis

This is article 5 of 9 in Dave Keenan & Douglas Blumeyer's guide to RTT, or "D&D's guide" for short. This article is not strongly sequenced with the others, however, so it can be read at any time.

In this article, we will be conducting units analyses of regular temperament structures in order to better understand how they connect with each other to give us the information we seek about sizes in cents, generator counts, and more.

## Stylistic note

It is a rule of the International System of Units (SI) that unit symbols, like $\small\mathsf{km}$/$\small\mathsf{h}$, are set in plain upright type. This helps to distinguish them from quantity symbols or variables like $d$ for distance and $t$ for time, which are usually set in italics (or bold, for vectors).

It is also an SI rule that when one unit is divided by another, their symbols are written horizontally, either with a slash between them like $\small\mathsf{km}$/$\small\mathsf{h}$ (the style we prefer), or with a middle dot or narrow no-break space between them and an exponent of -1 on the second unit, like $\small\mathsf{km\!·\!h^{-1}}$ or $\small\mathsf{km\,h^{-1}}$. They should never be written in the "built-up" style $\frac{\mathsf{km}}{\mathsf{h}}$ as variables often are, e.g. $\frac{d}{t}$.

Nor are units ever subscripted, like $\small\mathsf{h_1}$, as variables often are, like $t_1$.

But when performing a units analysis, we are essentially treating the units as if they are — if not variables — at least constants, and so in this article we will often violate these rules in the interest of explanation.

Because we use multiple text styles for our variables to indicate the class of object they represent,[1] including plain and bold upright styles, and because we also use a plain upright style for our ordinary units and a bold upright style for what we call vectorized units, we distinguish unit symbols from variables by setting the unit symbols in a $\small\mathsf{sans}\text{-}\mathsf{serif}\text{ }\mathsf{font}$ while variables are set in a $\text{serif font}$.

## Introduction

In regular temperament theory (RTT), vectors and matrices are used to represent information about intervals, temperaments, and tunings. Typically, the values in these objects are shown only as numerical amounts, that is, without any indication of their units.

For instance, the interval ratio $\frac54$ is represented by the vector [-2 0 1:

$\left[ \begin{array} {rrr} {-2} \\ 0 \\ 1 \\ \end{array} \right]$

One of the first things a student of RTT learns — if they haven't already learned it from studying JI — is that a prime-count vector like this is a concise way to represent an interval in terms of the prime harmonics which comprise it. In this example, the prime factorization of $\frac54$ is the product of prime powers $2^{{-2}}×3^{0}×5^{1}$. That representation isn't bad, but we can improve upon it. If we all agree to memorize the sequence of prime numbers (2, 3, 5), then we're able to assume that sequence of bases, and thereby get away with representing $\frac54$ as nothing more than that sequence of exponents: (-2, 0, 1).

We can say that the prime harmonic bases that we've dropped here are the units of these values, where the exponents give the corresponding amounts (or counts; the word "counts" is more natural when the amounts are integers). Calling these primes "units" is no different, really, than saying that the "Hz" in "440 Hz" answers the question,

"440 what?"

"hertz"

or that the cents symbol "$\mathsf{¢}$" in the amount "1200 $\mathsf{¢}$" answers the question,

"1200 what?"

"cents"

The answer to the question "-2 what?" in the above vector for $\frac54$ is "prime 2's". Similarly, the answer to "0 what?" is "prime 3's", and "1 what?" is "prime 5's".

What we have here, then, is not a singular unit "primes", as we have with the singular unit of hertz, or the singular unit of cents. In fact, each prime is its own separate unit. These separate prime units are certainly closely related, though. It may be helpful to think of them as a family of related units, which share a symbol, $\small\mathsf{p}$, distinguishing themselves from each other using subscripts. Prime 2, being the 1st prime, would be represented as $\small\mathsf{p_1}$, read "p sub 1". And prime 3, being the 2nd prime, may be represented as $\small\mathsf{p_2}$, read "p sub 2". And prime 5 is $\small\mathsf{p_3}$, "p sub 3". And so forth.

Explicitly labeling the vector in this way, then, we'd get:

$\left[ \begin{array} {rrr} {-2} \mathsf{p_1} \\ 0 \mathsf{p_2} \\ 1 \mathsf{p_3} \\ \end{array} \right]$

Clearly, this version which includes both the counts and the units is a bit cumbersome, which is why we don't usually see this. In general, the representation without units is the right representation for day-to-day work in RTT; the conciseness we achieve by letting the prime units be implicit is critical to its usefulness.

We can use the shorthand of a bold $\small 𝗽$ to represent all the $\small\mathsf{p}$'s collectively, in the same way we use bold variables to represent vectors. In many cases we can treat this as if it is a singular unit "primes", but the bolding is there to remind us that it isn't really. We call this sort of unit a vectorized unit, and you can read more about them in the later section of this article dedicated to that topic. Using the vectorized unit we could write the above vector, with units, as [-2 0 1$\small 𝗽$.

But the purpose of this article is not to argue that the vector notated even with the single bold unit symbol is preferable for general use. The actual purpose here is to conduct a review of basic RTT concepts, but with particular attention paid to the units of the values involved. We may call such a review a "units analysis".

We suggest that a heightened awareness of the units of RTT objects can help us compartmentalize our understanding of various RTT objects, as well as broaden and deepen our understanding of how RTT works overall. After all, in an important sense, practitioners of RTT share traits with physicists more so than pure mathematicians, because what we model are physical phenomena of sound, with units of measurement grounded in reality.[2]

## Units vs dimensions

The type of analysis we're calling a "units analysis" here is more commonly called a "dimensional analysis", where "dimension" here is a scientific term for physical properties such as length, time, and mass. However, the word "dimension" already has an important mathematical meaning in RTT, as the number of coordinates in our just interval vectors. In fact we have already avoided three other potential uses of "dimension" in RTT by using "order", "shape" and "rank" instead. So we will limit our use of the physical sense of "dimension" to this article, and elsewhere refer to it as units analysis.

In science and engineering, and indeed everyday life, values are understood to have both quantity and units, where the quantity shows up as the number, and the units follow it, imbuing the number with meaning. The physical dimensions, then, are properties that these units might have; for examples, kilometers and miles are both units of length, minutes and seconds are both units of time, and octaves and cents are both units of relative pitch (defined as log of frequency ratio, to avoid confusion with perceptual notions of pitch, such as mels). So by referring to a "dimensional analysis" as a "units analysis", we are not being disingenuous; we're merely highlighting a different aspect of the same idea.

And while breaking from established terminology is always a con to some extent, we note that there are definitely pros to us highlighting the analysis differently in this way. It is plain to see that our needs as musicians practicing RTT are different from those of scientists who are generally modeling the physical world. To physicists, quantities having units is taken for granted, and so it makes sense that it would be a "dimensional analysis" whenever they get more deeply interested in how these units interrelate via their dimensions; in our RTT application, on the other hand, the units of our quantities are not widely acknowledged, and so it's helpful for us to illuminate the presence of these units in the first place by calling it a "units analysis". Furthermore, dimensions in physics do often get complicated enough that it's the actual dimensions which warrant analysis (for an example, the dimensions of pressure are mass over length by time squared), whereas in RTT the actual dimensions of our units never get too complicated, and it's really only the units that we're ever worried about.

We should also acknowledge that not all of the things we're calling "units" in our system would be properly considered units to a physicist, namely: our prime units and generator units. Primes and generators are countable things. So when we measure them, it's easy; we just count them. We don't need a standard meter engraved on precious metal and kept in a vault.[3] In one way of thinking, our prime counts and generator counts have no units, but the standard description says that they have the unit one, or their unit is unity, which is usually invisible, but we (Dave and Douglas) choose to sometimes represent it as a double-struck digit $\mathsf{𝟙}$ for explanatory purposes. The standard description says instead that they have no dimension, they are called dimensionless units. However, outside this article we use the shorthand "is unitless" when we mean "has dimensionless units" in order to avoid confusion with the RTT meaning of "dimension". And so while counts of primes and generators behave well enough within our physics-inspired analysis, we do recognize and respect the limitations of comparing what we're doing to what physicists actually do. We can say that $\small\mathsf{p_1}$ is just the unit of the quantity "prime-one count" and $\small\mathsf{g_2}$ is the unit of the quantity "generator-two count", and define each prime and each generator as a having its own different dimension, which is different still from the log-frequency-ratio dimension of octaves and cents, so that none of these cancel with each other. However, if you're a hardline physicist, or for whatever reason object to thinking of these things as "units", then we suggest you might be amenable to thinking of them as "identifiers", which serve to identify the kinds of objects we're counting.[4]

## Illustrative examples

### Size of JI interval

As a basic illustrative example of the power of such a units analysis, let's find the size in cents of our $\frac54$ interval. This interval is 5-limit, and the just tuning map for this prime limit is represented by the vector $𝒋$ = 1200 1901.955 2786.314]:

$\begin{array} {c} 𝒋 \\ \left[ \begin{array} {rrr} 1200 & 1901.955 & 2786.314 \end{array} \right] \end{array}$

In the typical fashion, without thinking about units, we'd tune $\frac54$'s vector with this tuning map to find its size. Let's start calling the $\frac54$ vector $\textbf{i}$, for "interval". So in other words, we do $𝒋·\textbf{i}$:

\begin{align} \begin{array} {c} 𝒋 \\ \left[ \begin{array} {rrr} 1200 & 1901.955 & 2786.314 \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {rrr} {-2} \\ 0 \\ 1 \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒋\textbf{i} = \mathrm{o} \\ \left[ \begin{array} {rrr} (1200×{-2}) + (1901.955×0) + (2786.314×1) \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{o} \\ \left[ \begin{array} {rrr} {-2400} + 0 + 2786.314 \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{o} \\ \left[ \begin{array} {rrr} 386.314 \end{array} \right] \end{array} \end{align}

Now let's take a look at how this basic operation works out when we include units. We've already determined the units of the prime-count vector are the primes $\small\mathsf{p_1}$, $\small\mathsf{p_2}$, and $\small\mathsf{p_3}$. But what about the tuning map? Our instinct may be to go with the simplest take, that every entry is in cents:

$\begin{array} {c} 𝒋 \\ \left[ \begin{array} {rrr} 1200\,{\large\mathsf{¢}} & 1901.955\,{\large\mathsf{¢}} & 2786.314\,{\large\mathsf{¢}} \end{array} \right] \end{array}$

Well, let's give this a shot and see what we get.

\begin{align} \begin{array} {c} 𝒋 \\ \left[ \begin{array} {rrr} 1200\,{\large\mathsf{¢}} & 1901.955\,{\large\mathsf{¢}} & 2786.314\,{\large\mathsf{¢}} \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{p_1} \\ 0\,\mathsf{p_2} \\ 1\,\mathsf{p_3} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒋\textbf{i} = \mathrm{o} \\ \left[\begin{array} {rrr} (1200\,{\large\mathsf{¢}}×{-2}\,\mathsf{p_1}) + (1901.955\,{\large\mathsf{¢}}×0\,\mathsf{p_2}) + (2786.314\,{\large\mathsf{¢}}×1\,\mathsf{p_3}) \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{o} \\ \left[ \begin{array} {rrr} {-2400}\,{\large\mathsf{¢}}\mathsf{p_1} + 0\,{\large\mathsf{¢}}\mathsf{p_2} + 2786.314\,{\large\mathsf{¢}}\mathsf{p_3} \end{array} \right] \end{array} \end{align}

But now we're stuck. We appear to have three different amounts which can not be reconciled with each other and thus cannot be combined. Furthermore, the units for each of these three amounts are compound units that don't seem to make much sense: what would a $\mathsf{¢}\small\mathsf{p_1}$ be, exactly? No idea. We must have gone wrong at an earlier step.

Indeed, we went wrong back when we accepted the units of the just tuning map $𝒋$ to be simply cents. We failed to recognize the function of this tuning map, which is to convert prime-count vectors — such as the one for $\frac54$ we looked at earlier — from units of primes into units of cents.

Compound units allow for the conversion of amounts from one type of unit into another (they are as opposed to simple units which, as the name suggests, are simply one type of unit). A familiar everyday example of a compound unit is $\small\mathsf{km}/\mathsf{h}$ (while both $\small\mathsf{km}$ and $\small\mathsf{h}$ are separately simple units). We often think of amounts in $\small\mathsf{km}/\mathsf{h}$ in and of themselves; through experience, we've developed an association with what 100 $\small\mathsf{km}/\mathsf{h}$ is like. But there's another important sense in which values with the compound unit $\small\mathsf{km}/\mathsf{h}$ allow us to convert values in hours ($\small\mathsf{h}$) to values in kilometers ($\small\mathsf{km}$). For example, if I drive for two hours at 100 $\small\mathsf{km}/\mathsf{h}$, then I can see how I will have gone 200 $\small\mathsf{km}$:

$2\,\mathsf{h} × 100\,\frac{\mathsf{km}}{\mathsf{h}} = 2×100\,\cancel{\mathsf{h}}\frac{\mathsf{km}}{\cancel{\mathsf{h}}} = 200\,\mathsf{km}$

So the type of units we're looking for in our just tuning map $𝒋$ are something more like this $\small\mathsf{km}/\mathsf{h}$ example. We need compound units that capture the fact that the tuning map converts each different prime into cents.

For starters, we know that there are 1200 cents per octave, and since the octave is the same as prime 2, the first prime harmonic, $\small\mathsf{p_1}$, we can express that relationship as 1200 $\mathsf{¢}/\small\mathsf{p_1}$. So following the same pattern for the units of the other two entries of the just tuning map, we find $𝒋$ to be:

$\left[ \begin{array} {rrr} 1200\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1896.578\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \end{array} \right]$

And repeating our mapping experiment $𝒋·\textbf{i}$, then, but this time using these compound units:

\begin{align} \begin{array} {c} 𝒋 \\ \left[ \begin{array} {rrr} 1200\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1901.955\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{p_1} \\ 0\,\mathsf{p_2} \\ 1\,\mathsf{p_3} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒋\textbf{i} = \mathrm{o} \\ \left[\begin{array} {rrr} (1200\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}}×{-2}\,\mathsf{p_1}) + (1901.955\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}}×0\,\mathsf{p_2}) + (2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}}×1\,\mathsf{p_3}) \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{o} \\ \left[ \begin{array} {rrr} {-2400}\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_1}}}\cancel{\mathsf{p_1}} + 0\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_2}}}\cancel{\mathsf{p_2}} + 2786.314\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_3}}}\cancel{\mathsf{p_3}} \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{o} \\ \left[ \begin{array} {rrr} 386.314\,{\large\mathsf{¢}} \end{array} \right] \end{array} \end{align}

So now we get a reasonable result. The compound units lead to all of the prime units canceling out and disappearing, so we are left with all values in cents. At this point, they can all be combined into a single amount.

Becoming aware of the fact that the units of tuning maps are not simply cents, but rather cents per prime, $\mathsf{¢}$/$\small 𝗽$, may not feel revelatory. Really, none of the results of a proper units analysis should be terribly surprising. The expectation here is simply that as we expand our survey, we find that all the units of the various RTT objects collaborate well together, coming together in a big picture where everything makes sense together.

At this point, we've actually only looked at a JI interval tuned by a just tuning map. We haven't even begun to apply our units analysis to distinctively RTT objects yet.

### Size of tempered interval

Let's take a look at another tuning map, the one for 5-limit 12-ET with an unchanged octave: 1200 1900 2800]. Imbued with its units, that looks like:

$\begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} 1200\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1900\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2800\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \\ \end{array} \right] \end{array}$

And we could tune the same vector we've been looking at so far — the one for $\frac54$, [-2 0 1 — with this new tuning map:

\begin{align} \begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} 1200\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1900\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2800\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \\ \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{p_1} \\ 0\,\mathsf{p_2} \\ 1\,\mathsf{p_3} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒕\textbf{i} = \mathrm{a} \\ \left[\begin{array} {rrr} (1200\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}}×{-2}\,\mathsf{p_1}) + (1900\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}}×0\,\mathsf{p_2}) + (2800\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}}×1\,\mathsf{p_3}) \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} {-2400}\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_1}}}\cancel{\mathsf{p_1}} + 0\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_2}}}\cancel{\mathsf{p_2}} + 2800\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_3}}}\cancel{\mathsf{p_3}} \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} 400\,{\large\mathsf{¢}} \end{array} \right] \end{array} \end{align}

Unsurprisingly, since the structure is the exact same here, we end up with a result in the same units, just a different amount.

### Mapped interval

Now it's also very common to look at temperaments as mappings. The mapping for 12-ET is [12 19 28]}. This is clearly not going to cents; it's taking us instead to steps of the ET. For better consistency with temperaments that are rank-2 and beyond, we're going to go ahead and refer to steps here as generators, and even label this generator as $\small\mathsf{g_1}$ even though here there's only one of them:

\begin{align} \begin{array} {c} M\textbf{i} \\ \left[ \begin{array} {rrr} 12\,\frac{\mathsf{g_1}}{\mathsf{p_1}} & 19\,\frac{\mathsf{g_1}}{\mathsf{p_2}} & 28\,\frac{\mathsf{g_1}}{\mathsf{p_3}} \\ \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{p_1} \\ 0\,\mathsf{p_2} \\ 1\,\mathsf{p_3} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} M\textbf{i} = \textbf{y} \\ \left[\begin{array} {rrr} (12\,\frac{\mathsf{g_1}}{\mathsf{p_1}}×{-2}\,\mathsf{p_1}) + (19\,\frac{\mathsf{g_1}}{\mathsf{p_2}}×0\,\mathsf{p_2}) + (28\,\frac{\mathsf{g_1}}{\mathsf{p_3}}×1\,\mathsf{p_3}) \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \textbf{y} \\ \left[ \begin{array} {rrr} {-24}\,\frac{\mathsf{g_1}}{\cancel{\mathsf{p_1}}}\cancel{\mathsf{p_1}} + 0\,\frac{\mathsf{g_1}}{\cancel{\mathsf{p_2}}}\cancel{\mathsf{p_2}} + 28\,\frac{\mathsf{g_1}}{\cancel{\mathsf{p_3}}}\cancel{\mathsf{p_3}} \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \textbf{y} \\ \left[ \begin{array} {rrr} 4\,\mathsf{g_1} \end{array} \right] \end{array} \end{align}

### Rank-2 mapped interval

So what about rank-2? Suppose we have more than one generator. Let's try meantone temperament. Looking at this mapping, we can see by columns we have the different primes and by rows we have the different generators:

\begin{align} \begin{array} {c} M \\ \left[ \begin{array} {rrr} 1\,\frac{\mathsf{g_1}}{\mathsf{p_1}} & 1\,\frac{\mathsf{g_1}}{\mathsf{p_2}} & 0\,\frac{\mathsf{g_1}}{\mathsf{p_3}} \\ 0\,\frac{\mathsf{g_2}}{\mathsf{p_1}} & 1\,\frac{\mathsf{g_2}}{\mathsf{p_2}} & 4\,\frac{\mathsf{g_2}}{\mathsf{p_3}} \\ \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{p_1} \\ 0\,\mathsf{p_2} \\ 1\,\mathsf{p_3} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} M\textbf{i} = \textbf{y} \\ \left[\begin{array} {rrr} (1\,\frac{\mathsf{g_1}}{\mathsf{p_1}}×{-2}\,\mathsf{p_1}) + (1\,\frac{\mathsf{g_1}}{\mathsf{p_2}}×0\,\mathsf{p_2}) + (0\,\frac{\mathsf{g_1}}{\mathsf{p_3}}×1\,\mathsf{p_3}) \\ (0\,\frac{\mathsf{g_2}}{\mathsf{p_1}}×{-2}\,\mathsf{p_1}) + (1\,\frac{\mathsf{g_2}}{\mathsf{p_2}}×0\,\mathsf{p_2}) + (4\,\frac{\mathsf{g_2}}{\mathsf{p_3}}×1\,\mathsf{p_3}) \\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \textbf{y} \\ \left[ \begin{array} {rrr} {-2}\,\frac{\mathsf{g_1}}{\cancel{\mathsf{p_1}}}\cancel{\mathsf{p_1}} + 0\,\frac{\mathsf{g_1}}{\cancel{\mathsf{p_2}}}\cancel{\mathsf{p_2}} + 0\,\frac{\mathsf{g_1}}{\cancel{\mathsf{p_3}}}\cancel{\mathsf{p_3}} \\ 0\,\frac{\mathsf{g_2}}{\cancel{\mathsf{p_1}}}\cancel{\mathsf{p_1}} + 0\,\frac{\mathsf{g_2}}{\cancel{\mathsf{p_2}}}\cancel{\mathsf{p_2}} + 4\,\frac{\mathsf{g_2}}{\cancel{\mathsf{p_3}}}\cancel{\mathsf{p_3}} \\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \textbf{y} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{g_1} \\ 4\,\mathsf{g_2} \\ \end{array} \right] \end{array} \end{align}

Our result here is a generator-count vector. This is useful itself. It tells us that $\frac54$ in this form of meantone is represented by two approximate-octave generators down and four approximate-fifth generators back up.

Just as we used the shorthand of a bold $\small 𝗽$ to represent all the $\small\mathsf{p}$'s collectively, we can use a bold $\small 𝗴$ to represent all the $\small\mathsf{g}$'s collectively. Using this vectorized unit we could write the above vector, with units, as [-2 4}$\small 𝗴$.

### Rank-2 size of tempered interval

But what if we now want to get from here to a size in cents? Well, we can't use a meantone tuning map anymore. Here's an example meantone tuning map, specifically quarter-comma tuning:

$\begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1896.578\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \\ \end{array} \right] \end{array}$

We can't combine this with our generator-count vector. For starters, they have different proportions; our generator-count vector is a $(r, 1)$-shaped vector, while this tuning map is a $(1, d)$-shaped row vector; $d$ and $r$ are what need to match here, and they don't. But we can also use our units analysis to help realize why we can't use this here: the tuning map is designed to convert things from units of primes $\small 𝗽$ into units of cents $\mathsf{¢}$, but our generator-count vector isn't in units of primes; it's in units of generators $\small 𝗴$.

What we need to use instead if we want to get from our generator-count vector to its cents is a generator tuning map. Here's the generator tuning map for quarter-comma meantone:

$\begin{array} {c} 𝒈 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}} & 696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}} \\ \end{array} \right] \end{array}$

With this we can straightforwardly tune whichever mapped interval to its cents size. Let's do it for our example:

\begin{align} \begin{array} {c} 𝒈 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}} & 696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}} \\ \end{array} \right] \end{array} \begin{array} {c} M\textbf{i} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{g_1} \\ 4\,\mathsf{g_2} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒈M\textbf{i} = \mathrm{a} \\ \left[\begin{array} {rrr} (1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}}×{-2}\,\mathsf{g_1}) + (696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}}×4\,\mathsf{g_2}) \\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} (1200.000\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_1}}}×{-2}\,\cancel{\mathsf{g_1}}) + (696.578\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_2}}}×4\,\cancel{\mathsf{g_2}}) \\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} {-2400}\,{\large\mathsf{¢}} + 2786.314\,{\large\mathsf{¢}} \\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} 386.314\,{\large\mathsf{¢}} \\ \end{array} \right] \end{array} \end{align}

### Relationship between generator tuning map and tempered-prime tuning map

But where did this generator tuning map come from? More importantly, perhaps, how does it relate to the (tempered-prime) tuning map? We can see that they're definitely somewhat related, because if we give the tempered-prime tuning map the original prime-count vector for $\frac54$ then we'll get the same answer as we got with the generator-count vector through the generator tuning map:

\begin{align} \begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1896.578\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \\ \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {rrr} {-2}\,\mathsf{p_1} \\ 0\,\mathsf{p_2} \\ 1\,\mathsf{p_3} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒕\textbf{i} = \mathrm{a} \\ \left[\begin{array} {rrr} (1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}}×{-2}\,\mathsf{p_1}) + (1896.578\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}}×0\,\mathsf{p_2}) + (2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}}×1\,\mathsf{p_3})\\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} (1200.000\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_1}}}×{-2}\,\cancel{\mathsf{p_1}}) + (1896.578\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_2}}}×0\,\cancel{\mathsf{p_2}}) + (2786.314\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{p_3}}}×1\,\cancel{\mathsf{p_3}2}) + \\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} {-2400}\,{\large\mathsf{¢}} + 0\,{\large\mathsf{¢}} + 2786.314\,{\large\mathsf{¢}} \\ \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} \mathrm{a} \\ \left[ \begin{array} {rrr} 386.314\,{\large\mathsf{¢}} \\ \end{array} \right] \end{array} \end{align}

The relationship between the (tempered-primes) tuning map and the generator tuning map is simple. Every tuning map has a matching generator tuning map. And the tuning map is simply the generator tuning map times the temperament mapping:

\begin{align} \begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1896.578\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒈 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}} & 696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}} \\ \end{array} \right] \end{array} \begin{array} {c} M \\ \left[ \begin{array} {rrr} 1\,\frac{\mathsf{g_1}}{\mathsf{p_1}} & 1\,\frac{\mathsf{g_1}}{\mathsf{p_2}} & 0\,\frac{\mathsf{g_1}}{\mathsf{p_3}} \\ 0\,\frac{\mathsf{g_2}}{\mathsf{p_1}} & 1\,\frac{\mathsf{g_2}}{\mathsf{p_2}} & 4\,\frac{\mathsf{g_2}}{\mathsf{p_3}} \\ \end{array} \right] \end{array} \end{align}

In other words, if you do you make a ${\large\mathsf{¢}}/𝗴$ matrix times a $\small 𝗴$/$\small 𝗽$ matrix you get a ${\large\mathsf{¢}}/𝗽$ matrix again. So the tempered-prime tuning map basically does both things together, the mapping and the tuning, composing the mapping and the tuning steps into one:

\begin{align} \begin{array} {c} 𝒈 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}} & 696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}} \\ \end{array} \right] \end{array} \begin{array} {c} M \\ \left[ \begin{array} {rrr} 1\,\frac{\mathsf{g_1}}{\mathsf{p_1}} & 1\,\frac{\mathsf{g_1}}{\mathsf{p_2}} & 0\,\frac{\mathsf{g_1}}{\mathsf{p_3}} \\ 0\,\frac{\mathsf{g_2}}{\mathsf{p_1}} & 1\,\frac{\mathsf{g_2}}{\mathsf{p_2}} & 4\,\frac{\mathsf{g_2}}{\mathsf{p_3}} \\ \end{array} \right] \end{array} &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒈M = 𝒕 \\ \left[ \begin{array} {rrr} (1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}}×1\,\frac{\mathsf{g_1}}{\mathsf{p_1}}) + (696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}}×0\,\frac{\mathsf{g_2}}{\mathsf{p_1}}) & (1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}}×1\,\frac{\mathsf{g_1}}{\mathsf{p_2}}) + (696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}}×1\,\frac{\mathsf{g_2}}{\mathsf{p_2}}) & (1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{g_1}}×0\,\frac{\mathsf{g_1}}{\mathsf{p_3}}) + (696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{g_2}}×4\,\frac{\mathsf{g_2}}{\mathsf{p_3}}) \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} (1200.000\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_1}}}\,\frac{\cancel{\mathsf{g_1}}}{\mathsf{p_1}}) + (0\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_2}}}\,\frac{\cancel{\mathsf{g_2}}}{\mathsf{p_1}}) & (1200.000\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_1}}}\,\frac{\cancel{\mathsf{g_1}}}{\mathsf{p_2}}) + (696.578\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_2}}}\,\frac{\cancel{\mathsf{g_2}}}{\mathsf{p_2}}) & (0\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_1}}}\,\frac{\cancel{\mathsf{g_1}}}{\mathsf{p_3}}) + (2786.314\,\frac{{\large\mathsf{¢}}}{\cancel{\mathsf{g_2}}}\,\frac{\cancel{\mathsf{g_2}}}{\mathsf{p_3}}) \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} + 0\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} + 696.578\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 0\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} + 2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \end{array} \right] \end{array} \\[12pt] &\begin{array}{c}\\=\end{array} \begin{array} {c} 𝒕 \\ \left[ \begin{array} {rrr} 1200.000\,\frac{{\large\mathsf{¢}}}{\mathsf{p_1}} & 1896.578\,\frac{{\large\mathsf{¢}}}{\mathsf{p_2}} & 2786.314\,\frac{{\large\mathsf{¢}}}{\mathsf{p_3}} \end{array} \right] \end{array} \end{align}

## Units vs quantities

Be careful not to conflate units with quantities. Here are some common quantity and unit pairs, for intervals:

quantity units
size cents
error cents
damage weighted cents
complexity complexity weight
simplicity simplicity weight
tuning cents per prime, or cents per generator
retuning cents per prime, or cents per generator

## Annotated units

In RTT, there is a quantity called damage that is intended to model the reduction in some desirable audible quality of a musical interval, due to its mistuning by some temperament. We start with the interval's error $\mathrm{e}$ in cents, being the difference between the interval's tempered size and its just size, both of which are in cents. Then we take the absolute value of this error $|\mathrm{e}|$ (still in cents) and multiply it by some weight $w$ that is computed from the interval's vector $\mathbf{i}$. For reasons discussed elsewhere, this weight is best treated as a "unitless" scale factor and so the damage too has units of cents. And yet, damage is not directly comparable with absolute error, nor is it directly comparable with other kinds of damage that use different functions for computing the weight from the interval's prime components.

This is analogous to calculating loudness by starting with acoustic pressure and weighting it by some factor computed from the frequency components of the sound. See Wikipedia:A-weighting. Both the acoustic pressure and the loudness (or sound pressure level) have units of decibels $\small\mathsf{dB}$. And yet, loudness is not directly comparable with acoustic pressure, nor is it directly comparable with other kinds of loudness that use different functions for computing the weight from the sound's frequency components.

Although not part of the SI, the solution adopted for loudness is to annotate the unit symbol $\small\mathsf{dB}$ with an uppercase letter in parentheses that codes for the particular weighting scheme that was used in computing the loudness, e.g. $\small\mathsf{dB(A)}$, $\small\mathsf{dB(B)}$, $\small\mathsf{dB(Z)}$.

We follow this precedent with our units for damage. The symbols $\mathsf{¢}\small\mathsf{(C)}$, $\mathsf{¢}\small\mathsf{(S)}$ and $\mathsf{¢}\small\mathsf{(U)}$ stand for "complexity weighted cents", "simplicity weighted cents" and "unweighted (or unity weighted) cents" (which just tells you that the absolute value was taken). These weighting functions are described in Tuning fundamentals#Damage.

Note that the damage quantity corresponding to the units "complexity-weighted cents" is not called "complexity-weighted damage", because it is not the damage that gets multiplied by the weight, it is the absolute error. Instead the quantity is called "complexity-weight damage" (no "ed"), and similarly for "simplicity-weight damage" and "unity-weight damage".

As a logical consequence of these units for damage, the weights $w$ would have had units of weighted cents per cent; however, the cents cancel here, which leaves behind what appears to be a free-floating weight-annotation, unattached to any unit. But we know that no quantity is truly unitless (although it may be dimensionless), and so the annotations should be thought of as attached to the unit called "unity", which we symbolize in a non-standard manner as the double-struck $\mathsf{𝟙}$. And so you can think of $w$ = 1.35 $\small\mathsf{(C)}$ as equivalent to 1.35 $\mathsf{𝟙}\small\mathsf{(C)}$ but with the $\mathsf{𝟙}$ hidden, as is standard.

To recap: Because damage is absolute error times weight, its units will be $\mathsf{¢}\!·\!\mathsf{𝟙}{\small\mathsf{(C)}} = \mathsf{¢}\small\mathsf{(C)}$ or similar.

## Vectorized units

Our units analysis of RTT involves two special units which we call vectorized units, which represent families of units. These are primes, represented by the bold $\small 𝗽$, and generators, represented by the bold $\small 𝗴$. We use the bold to distinguish them from the plain style used for ordinary unit symbols. The plain style is still used for their group members, such as $\small\mathsf{p_1}$ or $\small\mathsf{g_2}$.

Referring to units of scalars is straightforward. They are singular quantities. It can sometimes be helpful to refer to the units of higher-order objects such as vectors, for which it is often the case that each of their entries have similar but different units to each other. In such cases, we seek the ability to refer to the units of the vector as a group, all at once, especially when considering how these vectors interact with other vectors and matrices. This is the basic idea behind vectorized units: we recognize that for a given prime-count vector, the first entry gives a quantity with units of the first prime, the second entry gives a quantity with units of the second prime, and so forth, and so the vector as a whole can be said to have units of "primes".

Just like ordinary units can be either simple (e.g. $\mathsf{¢}$) or compound (e.g. $\mathsf{¢}$/$\small\mathsf{oct}$), vectorized units can be either simple (e.g. $\small 𝗽$) or compound (e.g. $\small 𝗽$/$\small 𝗴$). We can even have compound units of vectorized and ordinary units, such as $\mathsf{¢}$/$\small 𝗽$.

### Matrix units

Some of the matrices we use in RTT — such as comma bases, target-interval lists, etc. — are perhaps better thought of as lists of vectors. They behave well as matrices in terms of matrix multiplication and such, so we often represent them as matrices (with vertical lines between columns to subtly hint at their status as lists of vectors that have been smooshed together) and give them capital-letter variable symbols like $\mathrm{C}$ and $\mathrm{T}$, but one tell-tale sign is that they all have simple units, such as of $\small 𝗽$, $\small 𝗴$, etc. This is because these matrices are not transformations so much as they are the things to potentially be transformed by other matrices, such as mappings and projections.

These other types of transformational matrices are matrices in a fuller, truer sense. And these tend to have compound units, because — in their capacity as machines that transform objects from one thing into another — they generally change the object's units. So their denominator unit cancels out the input's original units, and their numerator unit is given to the output. We can then think of each entry of such transformational matrices as relating a proportion of quantities of one unit to another. Their units are essentially the results of the outer product of two vectors containing only vector units. The result is that one of the vectorized units iterates through its members along the rows, and the other iterates through them along its columns. Ultimately this means that every combination of member unit from each vectorized group is accounted for.

When we give the compound units as $\small\mathsf{x}$/$\small\mathsf{y}$, it's always the case that the $\small\mathsf{x}$'s increment by rows, and the $\small\mathsf{y}$'s increment by cols. This is because the units are defined based on how matrix multiplication is defined.

For example, a generator embedding matrix $G$, has units of $\small 𝗽$/$\small 𝗴$, here shown with units only:

$\begin{array} {c} G \\[6pt] \left[\begin{array} {rrr} \frac{\color{ForestGreen}\mathsf{p_1}}{\color{BurntOrange}\mathsf{g_1}} & \frac{\color{ForestGreen}\mathsf{p_1}}{\color{OrangeRed}\mathsf{g_2}} \\[6pt] \frac{\color{NavyBlue}\mathsf{p_2}}{\color{BurntOrange}\mathsf{g_1}} & \frac{\color{NavyBlue}\mathsf{p_2}}{\color{OrangeRed}\mathsf{g_2}} \\[6pt] \frac{\color{Plum}\mathsf{p_3}}{\color{BurntOrange}\mathsf{g_1}} & \frac{\color{Plum}\mathsf{p_3}}{\color{OrangeRed}\mathsf{g_2}} \\[6pt] \end{array} \right] \end{array}$

The $\small\mathsf{p}$'s increment 1, 2, 3 as we go down the rows, and the $\small\mathsf{g}$'s increment 1, 2 as we go across the cols.

By the way, we'd read $\small 𝗽$/$\small 𝗴$ as "primes per generator". We can think of this as short for "(count-of-each-one-of-the-)primes per (count-of-each-of-one-of-the-)generator(s)".

We can even see this effect in the case of tuning maps, such as $𝒕$ = ⟨1200 $\mathsf{¢}$/$\small\mathsf{p_1}\;$ 1900 $\mathsf{¢}$/$\small\mathsf{p_2}\;$ 2800 $\mathsf{¢}$/$\small\mathsf{p_3}$], with units of $\mathsf{¢}$/$\small 𝗽$, where the $\small\mathsf{p}$'s increment by cols and $\mathsf{¢}$ increments by rows (trivially; there's only one row). Or $𝒈$ = {1202 $\mathsf{¢}$/$\small\mathsf{g_1}\;$ 504 $\mathsf{¢}$/$\small\mathsf{g_2}$], with units of $\mathsf{¢}$/$\small 𝗴$, where again the index of each $\small\mathsf{g}$ increments by cols and $\mathsf{¢}$ trivially increments by the single row.

### Inverting matrix units

We can make this point even stronger. When you invert a matrix, its units reciprocate from $\small\mathsf{x}$/$\small\mathsf{y}$ to $\small\mathsf{y}$/$\small\mathsf{x}$ of course, but this not only changes which unit type is in the numerator within each entry, it also changes whether that unit type's indices increment by rows or by columns.

For instance, the inverse of:

$\left[ \begin{array} {r} \color{ForestGreen}\mathsf{p_1} & \color{ForestGreen}\mathsf{p_1} & \color{ForestGreen}\mathsf{p_1} \\[6pt] \color{NavyBlue}\mathsf{p_2} & \color{NavyBlue}\mathsf{p_2} & \color{NavyBlue}\mathsf{p_2} \\[6pt] \color{Plum}\mathsf{p_3} & \color{Plum}\mathsf{p_3} & \color{Plum}\mathsf{p_3} \\[6pt] \end{array} \right]$

is:

$\left[ \begin{array} {r} \frac{1}{\color{ForestGreen}\mathsf{p_1}} & \frac{1}{\color{NavyBlue}\mathsf{p_2}} & \frac{1}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{1}{\color{ForestGreen}\mathsf{p_1}} & \frac{1}{\color{NavyBlue}\mathsf{p_2}} & \frac{1}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{1}{\color{ForestGreen}\mathsf{p_1}} & \frac{1}{\color{NavyBlue}\mathsf{p_2}} & \frac{1}{\color{Plum}\mathsf{p_3}} \\[6pt] \end{array} \right]$

not:

$\left[ \begin{array} {r} \frac{1}{\color{ForestGreen}\mathsf{p_1}} & \frac{1}{\color{ForestGreen}\mathsf{p_1}} & \frac{1}{\color{ForestGreen}\mathsf{p_1}} \\[6pt] \frac{1}{\color{NavyBlue}\mathsf{p_2}} & \frac{1}{\color{NavyBlue}\mathsf{p_2}} & \frac{1}{\color{NavyBlue}\mathsf{p_2}} \\[6pt] \frac{1}{\color{Plum}\mathsf{p_3}} & \frac{1}{\color{Plum}\mathsf{p_3}} & \frac{1}{\color{Plum}\mathsf{p_3}} \\[6pt] \end{array} \right]$

Note how in the correct inversion, the colors are arranged by columns now, no longer rows.

### Cancelation

The units of a projection matrix $P$ are given as $\small 𝗽$/$\small 𝗽$, primes per primes. The reason these don't cancel out is because they are vectorized units, and thus one of them increments along the rows, and the other along the cols:

$\left[ \begin{array} {c} \frac{\color{ForestGreen}\mathsf{p_1}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{ForestGreen}\mathsf{p_1}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{ForestGreen}\mathsf{p_1}}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{\color{NavyBlue}\mathsf{p_2}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{NavyBlue}\mathsf{p_2}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{NavyBlue}\mathsf{p_2}}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{\color{Plum}\mathsf{p_3}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{Plum}\mathsf{p_3}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{Plum}\mathsf{p_3}}{\color{Plum}\mathsf{p_3}} \\[6pt] \end{array} \right]$

And so, technically speaking, we could say the units along the main diagonal, where the indices match, do cancel out, leaving dimensionless quantities:

$\left[ \begin{array} {c} {\large\mathsf{𝟙}} & \frac{\color{ForestGreen}\mathsf{p_1}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{ForestGreen}\mathsf{p_1}}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{\color{NavyBlue}\mathsf{p_2}}{\color{ForestGreen}\mathsf{p_1}} & {\large\mathsf{𝟙}} & \frac{\color{NavyBlue}\mathsf{p_2}}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{\color{Plum}\mathsf{p_3}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{Plum}\mathsf{p_3}}{\color{NavyBlue}\mathsf{p_2}} & {\large\mathsf{𝟙}} \\[6pt] \end{array} \right]$

However, we would still use $\small 𝗽$/$\small 𝗽$ to refer to the units of the matrix as a whole, on account of all the other entries of the matrix which retain compound units relating different primes to each other, so this doesn't really buy us much here. (For a counterexample to this situation, please see this later section).

Here's how to fully understand why. When performing matrix multiplication here, between the mapping and the generator embedding:

$\begin{array} {c} G \\[6pt] \left[ \begin{array} {r} \frac{\color{ForestGreen}\mathsf{p_1}}{\color{BurntOrange}\mathsf{g_1}} & \frac{\color{ForestGreen}\mathsf{p_1}}{\color{OrangeRed}\mathsf{g_2}} \\[6pt] \frac{\color{NavyBlue}\mathsf{p_2}}{\color{BurntOrange}\mathsf{g_1}} & \frac{\color{NavyBlue}\mathsf{p_2}}{\color{OrangeRed}\mathsf{g_2}} \\[6pt] \frac{\color{Plum}\mathsf{p_3}}{\color{BurntOrange}\mathsf{g_1}} & \frac{\color{Plum}\mathsf{p_3}}{\color{OrangeRed}\mathsf{g_2}} \\[6pt] \end{array} \right] \end{array} \begin{array} {c} M \\[6pt] \left[ \begin{array} {r} \frac{\color{BurntOrange}\mathsf{g_1}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{BurntOrange}\mathsf{g_1}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{BurntOrange}\mathsf{g_1}}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{\color{OrangeRed}\mathsf{g_2}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{OrangeRed}\mathsf{g_2}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{OrangeRed}\mathsf{g_2}}{\color{Plum}\mathsf{p_3}} \\[6pt] \end{array} \right] \end{array}$

Each time we grab a col of the right-hand matrix and a row of the left-hand matrix. Within each of these right-col and left-row, the specific units (i.e. which $\small\mathsf{g}$ among $\small\color{BurntOrange}\mathsf{g_1}$, $\small\color{OrangeRed}\mathsf{g_2}$, etc.) are all different for the inner unit, while the specific units are all the same for the outer unit.

For example, let's take a look at how we find entry $p_{32}$ of $P$, the center bottom entry. This is the result of the dot product between the 2nd col of $M$ and the 3rd row of $G$:

$\left[ \begin{array} {c} \frac{\color{Plum}\mathsf{p_3}}{\color{BurntOrange}\mathsf{g_1}} & \frac{\color{Plum}\mathsf{p_3}}{\color{OrangeRed}\mathsf{g_2}} \\[6pt] \end{array} \right] \left[ \begin{array} {c} \frac{\color{BurntOrange}\mathsf{g_1}}{\color{NavyBlue}\mathsf{p_2}} \\[6pt] \frac{\color{OrangeRed}\mathsf{g_2}}{\color{NavyBlue}\mathsf{p_2}} \\[6pt] \end{array} \right]$

Notice how in the col of $M$, the $\small\mathsf{p}$'s are all the same, while the $\small\mathsf{g}$'s are all different. It's the same situation in the row of $G$: the $\small\mathsf{p}$'s are all the same, and the $\small\mathsf{g}$'s are all different. And yet, despite the fact that it's the $\small\mathsf{g}$'s that are all different, they're the ones that are going to cancel out and go away. This is because while they may be different from each other within the individual row and within the individual col, when we combine these objects together, the $\small\mathsf{g}$'s of different indices all get matched up with a $\small\mathsf{g}$ of the matching index:

\begin{align} (\frac{\color{Plum}\mathsf{p_3}}{\color{BurntOrange}\mathsf{g_1}})(\frac{\color{BurntOrange}\mathsf{g_1}}{\color{NavyBlue}\mathsf{p_2}}) + (\frac{\color{Plum}\mathsf{p_3}}{\color{OrangeRed}\mathsf{g_2}})(\frac{\color{OrangeRed}\mathsf{g_2}}{\color{NavyBlue}\mathsf{p_2}}) &= (\frac{\color{Plum}\mathsf{p_3}}{\cancel{\color{BurntOrange}\mathsf{g_1}}})(\frac{\cancel{\color{BurntOrange}\mathsf{g_1}}}{\color{NavyBlue}\mathsf{p_2}}) + (\frac{\color{Plum}\mathsf{p_3}}{\cancel{\color{OrangeRed}\mathsf{g_2}}})(\frac{\cancel{\color{OrangeRed}\mathsf{g_2}}}{\color{NavyBlue}\mathsf{p_2}}) \\[6pt] &= \frac{\color{Plum}\mathsf{p_3}}{\color{NavyBlue}\mathsf{p_2}} \end{align}

And conversely, while the $\small\mathsf{p}$'s were the same within the individual row and individual col, they're different between the row and col, so we end the day with a quantity in terms of one prime per another prime.

## Units-only analyses

In this section, we'll demonstrate a series of examples isolating only the units of certain combinations of RTT matrices. The following all use a rank-2, 5-limit temperament.

More advanced examples of similar units-only analyses can be found here: Projection#Units.

### Generator tuning map, mapping: tuning map

A $\mathsf{¢}$/$\small 𝗴$ generator tuning map and a $\small 𝗴$/$\small 𝗽$ mapping combine to make a $\mathsf{¢}$/$\small 𝗽$ tuning map.

\begin{align} \begin{array} {c} 𝒈 \\[4pt] \left[ \begin{array} {rrr} \frac{{\large\mathsf{¢}}}{\color{BurntOrange}\mathsf{g_1}} & \frac{{\large\mathsf{¢}}}{\color{OrangeRed}\mathsf{g_2}} \end{array} \right] \end{array} \begin{array} {c} M \\[4pt] \left[ \begin{array} {rrr} \frac{\color{BurntOrange}\mathsf{g_1}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{BurntOrange}\mathsf{g_1}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{BurntOrange}\mathsf{g_1}}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{\color{OrangeRed}\mathsf{g_2}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{OrangeRed}\mathsf{g_2}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{OrangeRed}\mathsf{g_2}}{\color{Plum}\mathsf{p_3}} \\[6pt] \end{array} \right] \end{array} &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} 𝒈M \\[4pt] \left[\begin{array} {rrr} (\frac{{\large\mathsf{¢}}}{\cancel{\color{BurntOrange}\mathsf{g_1}}})(\frac{\cancel{\color{BurntOrange}\mathsf{g_1}}}{\color{ForestGreen}\mathsf{p_1}}) + (\frac{{\large\mathsf{¢}}}{\cancel{\color{OrangeRed}\mathsf{g_2}}})(\frac{\cancel{\color{OrangeRed}\mathsf{g_2}}}{\color{ForestGreen}\mathsf{p_1}}) & (\frac{{\large\mathsf{¢}}}{\cancel{\color{BurntOrange}\mathsf{g_1}}})(\frac{\cancel{\color{BurntOrange}\mathsf{g_1}}}{\color{NavyBlue}\mathsf{p_2}}) + (\frac{{\large\mathsf{¢}}}{\cancel{\color{OrangeRed}\mathsf{g_2}}})(\frac{\cancel{\color{OrangeRed}\mathsf{g_2}}}{\color{NavyBlue}\mathsf{p_2}}) & (\frac{{\large\mathsf{¢}}}{\cancel{\color{BurntOrange}\mathsf{g_1}}})(\frac{\cancel{\color{BurntOrange}\mathsf{g_1}}}{\color{Plum}\mathsf{p_3}}) + (\frac{{\large\mathsf{¢}}}{\cancel{\color{OrangeRed}\mathsf{g_2}}})(\frac{\cancel{\color{OrangeRed}\mathsf{g_2}}}{\color{Plum}\mathsf{p_3}}) \\ \end{array} \right] \end{array} \\ &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} 𝒕 \\[4pt] \left[ \begin{array} {rrr} \frac{{\large\mathsf{¢}}}{\color{ForestGreen}\mathsf{p_1}} & \frac{{\large\mathsf{¢}}}{\color{NavyBlue}\mathsf{p_2}} & \frac{{\large\mathsf{¢}}}{\color{Plum}\mathsf{p_3}} \\ \end{array} \right] \end{array} \end{align}

### Mapping, interval: mapped interval

A $\small 𝗴$/$\small 𝗽$ mapping and a prime-count vector (units of $\small 𝗽$) combine to make a generator-count vector (units of $\small 𝗴$) .

\begin{align} \begin{array} {c} M \\[4pt] \left[ \begin{array} {rrr} \frac{\color{BurntOrange}\mathsf{g_1}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{BurntOrange}\mathsf{g_1}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{BurntOrange}\mathsf{g_1}}{\color{Plum}\mathsf{p_3}} \\[6pt] \frac{\color{OrangeRed}\mathsf{g_2}}{\color{ForestGreen}\mathsf{p_1}} & \frac{\color{OrangeRed}\mathsf{g_2}}{\color{NavyBlue}\mathsf{p_2}} & \frac{\color{OrangeRed}\mathsf{g_2}}{\color{Plum}\mathsf{p_3}} \\[6pt] \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\[4pt] \left[ \begin{array} {rrr} \color{ForestGreen}\mathsf{p_1} \\[6pt] \color{NavyBlue}\mathsf{p_2} \\[6pt] \color{Plum}\mathsf{p_3} \\[6pt] \end{array} \right] \end{array} &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} M\textbf{i} \\[6pt] \left[ \begin{array} {rrr} (\frac{\color{BurntOrange}\mathsf{g_1}}{\cancel{\color{ForestGreen}\mathsf{p_1}}})(\cancel{\color{ForestGreen}\mathsf{p_1}}) + (\frac{\color{BurntOrange}\mathsf{g_1}}{\cancel{\color{NavyBlue}\mathsf{p_2}}})(\cancel{\color{NavyBlue}\mathsf{p_2}}) + (\frac{\color{BurntOrange}\mathsf{g_1}}{\cancel{\color{Plum}\mathsf{p_3}}})(\cancel{\color{Plum}\mathsf{p_3}}) \\[6pt] (\frac{\color{OrangeRed}\mathsf{g_2}}{\cancel{\color{ForestGreen}\mathsf{p_1}}})(\cancel{\color{ForestGreen}\mathsf{p_1}}) + (\frac{\color{OrangeRed}\mathsf{g_2}}{\cancel{\color{NavyBlue}\mathsf{p_2}}})(\cancel{\color{NavyBlue}\mathsf{p_2}}) + (\frac{\color{OrangeRed}\mathsf{g_2}}{\cancel{\color{Plum}\mathsf{p_3}}})(\cancel{\color{Plum}\mathsf{p_3}}) \\[6pt] \end{array} \right] \end{array} \\[20pt] &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} M\textbf{i} \\[4pt] \left[ \begin{array} {rrr} \color{BurntOrange}\mathsf{g_1} \\[6pt] \color{OrangeRed}\mathsf{g_2} \\[6pt] \end{array} \right] \end{array} \end{align}

### Tuning map, interval: tempered interval size

A $\mathsf{¢}$/$\small 𝗽$ tuning map and a prime-count vector (units of $\small 𝗽$) representing an interval combine to give the interval's size in $\mathsf{¢}$.

\begin{align} \begin{array} {c} 𝒕 \\[4pt] \left[ \begin{array} {rrr} \frac{{\large\mathsf{¢}}}{\color{ForestGreen}\mathsf{p_1}} & \frac{{\large\mathsf{¢}}}{\color{NavyBlue}\mathsf{p_2}} & \frac{{\large\mathsf{¢}}}{\color{Plum}\mathsf{p_3}} \\ \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\[4pt] \left[ \begin{array} {rrr} \color{ForestGreen}\mathsf{p_1} \\[6pt] \color{NavyBlue}\mathsf{p_2} \\[6pt] \color{Plum}\mathsf{p_3} \\[6pt] \end{array} \right] \end{array} &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} 𝒕\textbf{i} \\[4pt] \left[ \begin{array} {rrr} (\frac{{\large\mathsf{¢}}}{\cancel{\color{ForestGreen}\mathsf{p_1}}})(\cancel{\color{ForestGreen}\mathsf{p_1}}) + (\frac{{\large\mathsf{¢}}}{\cancel{\color{NavyBlue}\mathsf{p_2}}})(\cancel{\color{NavyBlue}\mathsf{p_2}}) + (\frac{{\large\mathsf{¢}}}{\cancel{\color{Plum}\mathsf{p_3}}})(\cancel{\color{Plum}\mathsf{p_3}}) \end{array} \right] \end{array} \\ &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} 𝒕\textbf{i} \\[4pt] \left[ \begin{array} {rrr} {\large\mathsf{¢}} \end{array} \right] \end{array} \end{align}

### Generator tuning map, mapped interval: tempered interval size

A $\mathsf{¢}$/$\small 𝗴$ generator tuning map and a generator-count vector (units of $\small 𝗴$) representing an interval combine to give the interval's size in $\mathsf{¢}$.

\begin{align} \begin{array} {c} 𝒈 \\[4pt] \left[ \begin{array} {rrr} \frac{{\large\mathsf{¢}}}{\color{BurntOrange}\mathsf{g_1}} & \frac{{\large\mathsf{¢}}}{\color{OrangeRed}\mathsf{g_2}} \end{array} \right] \end{array} \begin{array} {c} M\textbf{i} \\[4pt] \left[ \begin{array} {rrr} \color{BurntOrange}\mathsf{g_1} \\[6pt] \color{OrangeRed}\mathsf{g_2} \\[6pt] \end{array} \right] \end{array} &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} 𝒕\textbf{i} \\[4pt] \left[ \begin{array} {rrr} (\frac{{\large\mathsf{¢}}}{\cancel{\color{BurntOrange}\mathsf{g_1}}})(\cancel{\color{BurntOrange}\mathsf{g_1}}) + (\frac{{\large\mathsf{¢}}}{\cancel{\color{OrangeRed}\mathsf{g_2}}})(\cancel{\color{OrangeRed}\mathsf{g_2}}) \end{array} \right] \end{array} \\[20pt] &\begin{array}{c}\\[4pt]=\end{array} \begin{array} {c} 𝒕\textbf{i} \\[4pt] \left[ \begin{array} {rrr} {\large\mathsf{¢}} \end{array} \right] \end{array} \end{align}