# Dave Keenan & Douglas Blumeyer's guide to RTT: alternative complexities

In this article we will investigate one of the most advanced tuning concepts that have been developed for regular temperaments: alternative complexities (besides log-product complexity)

This is article 8 of 9 in Dave Keenan & Douglas Blumeyer's guide to RTT, or "D&D's guide" for short. It assumes that you have read all of these prior articles in the series:

• 3. Tuning fundamentals: learn about minimizing damage to target-intervals
• 5. Units analysis: to look at temperament and tuning in a new way, think about the units of the values in frequently used matrices
• 6. Tuning computation: for methods and derivations; learn how to compute tunings, and why these methods work
• 7. All-interval tuning schemes: the variety of tuning most commonly named and written about on the Xenharmonic wiki

In particular, most of these advanced tuning concepts have been developed in the context of all-interval tuning schemes, so a firm command of the ideas in that article will be very helpful for getting the most out of this article.

# Introduction

So far, we've used three different functions for determining interval complexity:

1. In an early article of this series, we introduced the most obvious possible function for determining the complexity of a rational number $\frac{n}{d}$ such as those that represent JI intervals: product complexity, the product of the ratio's numerator and denominator.
2. However, since that time, we've been doing most of our work using a variant on this function, not product complexity itself; this variant is the log-product complexity, which is the base-2 logarithm of product complexity.
3. It wasn't until late in our all-interval tuning schemes article that we introduced our third complexity function, which arises in the explanation of a popular tuning scheme that we call minimax-ES; this uses the Euclideanized version of the log-product complexity.

But these three functions are not the only ones that have been discussed in the context of temperament tuning theory. In this article we will be taking a brief look at several other functions which some theorists have investigated for possible use in the tuning of regular temperaments:

We'll also consider the Euclideanized versions of each of these four functions.

This is not meant to be an exhaustive list of complexity functions that may be argued to have relevance for tuning theory. It seems like every few months someone suggests a new one. We prepared this article as a survey of these relatively well-established use cases in order to demystify what's out there already and to demonstrate some principles of this nook of the theory, in case this is an area our readers would like to explore further.

# Not just for all-interval tuning schemes

These alternative complexity functions were all introduced to regular temperament theory through the use of all-interval tuning schemes, the kind that use a series of clever mathematical tricks in order to avoid the choice of a specific, finite set of intervals to be their tuning damage minimization targets.

Historically speaking, ordinary tuning schemes —those which do tune a specific finite target-interval set — have not involved complexity functions at all, not even log-product complexity. For the most part, anyway, users of ordinary tuning schemes have instead leaned on the careful choice of their target-intervals, achieving fine control of their tuning in this way, and it has been sufficient for them to define damage as the absolute error to their target-intervals. In other words, they have not felt the need to weight their chosen target-intervals' errors relative to each other according to the intervals' complexities.

The argument could be made, then, that this lack of control over the tuning via the choice of specific target-intervals is what caused all-interval tuning schemes to become such a breeding ground for interest in alternative complexity functions. With all-interval tuning schemes, this was the only other way they could achieve that sort of fine control.

And so, while all-interval tuning schemes are where these innovations in complexity functions occurred historically, we note that there's nothing restricting their use to all-interval tuning schemes. There's no reason why ordinary tuning schemes cannot take advantage of both opportunities for fine control that are available to them: target-interval set choice, and alternative complexity functions. In fact, we will later argue that some of these alternative complexity functions may actually be more appropriate to use for ordinary tuning schemes than they are for all-interval tuning schemes.

# Naming

The use of alternative functions for determining complexity is what accounts for the profusion of eponymous tuning schemes you may have come across: Benedetti, Weil, Kees, and Frobenius. This is because some theorists have preferred to refer to these functions by a person's name — whether this is the discoverer of the generic math function, the first person to apply it to tuning, or just a person somehow associated with the function — perhaps because eponyms are distinctive and memorable. But if you're like us, the connection between these historical personages and these functions is not obvious, and so we can never seem to remember which one of these tuning schemes is which! We've had to rely on awkward mnemonics to keep the mapping from eponym to function straight. So if you're struggling with this as well, then we hope you'll appreciate and adopt our tuning scheme naming system which drops the eponyms in favor of the actual names of the math functions used, e.g. the minimax-sopfr-S tuning scheme minimaxes the sopfr-simplicity-weight damage to all intervals, where "sopfr" is a standard math function that you can look up, which stands for "sum of prime factors with repetitions" (isn't that better than "Benedetti Optimal"?). Because the math function names are descriptive, we encode meaning rather than encrypt it. And by naming them systematically, we isolate their differences through the structural patterns shared among each name, so we can contrast them at a glance.

This approach is also good because it can accommodate any complexity one might dream up; as long as you can name the complexity function, you can use its name in the name of the corresponding tuning scheme.

This is an extension of the tuning scheme naming system initially laid out at the end of the tuning fundamentals article Dave Keenan & Douglas Blumeyer's guide to RTT: tuning fundamentals#Systematic tuning scheme names, and so it also allows for easy comparison with those simpler, ordinary tuning schemes, e.g. the (all-interval) minimax-sopfr-S scheme is very closely related to the TILT minimax-sopfr-S scheme, which is the same except instead of using prime proxy targets in order to target all intervals, it specifically targets only the TILT. So basically the name breaks down into [optimization]-[complexity]-[damage weight slope]. The [complexity] part can be broken down further into [norm power if q≠1]-[q=1 complexity]; for example, in minimax-E-lils-S, we have minimax is our optimization, E-lils (Euclideanized log-integer-limit-squared) is our complexity function, and S (simplicity-weight) is our damage weight slope. And our complexity can be further broken down into 'E' which is its norm power other than taxicab (q=1) ("Euclideanized" means q=2) and "lils" is the log-integer-limit-squared, which is what the complexity function would be, when using the taxicab norm.

# Comparing overall complexity qualities

In this first section, we'll be comparing how these functions rank intervals differently. This information is important because if you don't feel that a function does an effective job at determining the relative complexity of musical intervals, then you probably shouldn't use it to tune temperaments of them! Well, you might choose to anyway, if you perceived a worthwhile tradeoff, such as computational expediency. We'll save discussion of that until later.

## Complexity contours

Here's a diagram comparing 10 of our 12 functions (not including "product" or its Euclideanized version; we'll explain why later).

With this diagram, you can look at how each function sorts intervals, and decide for yourself whether you think that's a reasonable order, i.e. does it make musical sense, as a way you might weight errors, whether complexity-weighted or simplicity-weighted. (These happen to be shown simplicity-weighted.) And here's a diagram where they're all sorted according to product complexity. This one, then, comes at the problem from the assumption that product complexity is the "correct" way to sort them, so we can see in the textures of these curves to what extent they deviate from it. This is an assumption we mostly hold (deets on dispute later). You can see how the Euclideanized versions are all worse (more jagged) than their corresponding original version.

Any complexity function has a corresponding simplicity function which simply returns for any given interval the reciprocal of what the complexity function would have returned. Therefore, it is unnecessary to separately provide diagrams like these for simplicity functions. We can find the simplicity contours by turning these inside-out; the ranking won't change other than the order will exactly reverse, with big bars becoming small, and small bars becoming big. We simply reciprocate each individual value.

## Explaining the impact of Euclideanization

To review, Euclideanization is when we take a function which can be expressed in the form of a $1$-norm (or equivalent summation form) and — preserving its norm prescaler, if any — change its norm power from $1$ to $2$.

The 2-norm is how we calculate distance in the physical reality you and I walk around within everyday: 3-dimensional Euclidean space. So it may seem to be a natural choice for measuring distances between notes arranged on a JI lattice such as we might build out of rods and hubs like one might find in a chemistry modeling kit. (Perhaps some readers have actually done this as part of their learning process, or for experimenting with new scales.)

However, it is unfortunately not the case that calculating distances in this sort of space like this gives a realistic notion of harmonic distance.

Let's imagine, for example, a three-dimensional JI lattice with prime 2 on one axis, prime 3 on another axis, and prime 5 on the remaining axis; so we choose a 3D example that's as similar to our physical space as can be. Now let's imagine the vectors for $\frac98$ and $\frac{10}{9}$: [-3 2 0 and [1 -2 1, respectively, each one drawn out from the origin at unison $\frac11$ [0 0 0 diagonally through the lattice. The norm for $\frac98$ is $\sqrt{|{-3}|^2 + |2|^2 + |0|^2} = \sqrt{13} ≈ 3.605$, while the norm for $\frac{10}{9}$ is $\sqrt{|1|^2 + |{-2}|^2 + |1|^2} = \sqrt{6} ≈ 2.449$. This suggests that $\frac98$ is a more complex interval than $\frac{10}{9}$, a suggestion that most musicians would disagree with, being that it's higher (prime) limit, and contains larger numbers.

To gain some intuition for why the $2$-norm gets this comparison wrong, begin by thinking about the space these vectors are traveling through diagonally. What is this space? Imagine stopping at some point along it, floating between nodes of the lattice — what would you say is the pitch at that point? Don't worry about these two questions too much; you probably won't be able to come up with good answers to them. But that's just the point. They don't really make sense here.

We can say that JI lattices like this are convenient tricks for helping us to visualize, understand, and analyze JI scales and chords. But there's no meaning to diagonal travel through this space. We can add a factor of 5 and remove a couple factors of 2 from $\frac98$ to find $\frac{10}{9}$, but really those are three separate, discrete actions. When we travel from $\frac98$ to $\frac{10}{9}$, we can only really think of doing it along the lattice edges, not between and through them. So while there's nothing stopping us from thinking about the space between nodes as if it were like the physical space we live in, and measuring it accordingly, in an important sense none of that space really exists, and the only distances in this harmonic world that are "real" are the distances straight along the edges of the lattice connecting each node to its neighbor nodes. In other words, diagonal travel between JI nodes is a lie. But we choose to accept this lie whenever we use a Euclideanized complexity.

Astute readers may have realized that even if we compare these same two intervals by a $1$-norm, i.e. where we measure their distance from the unison at the origin by a series of separate straight segments along the edges between pitches, we still find that the norm for $\frac98$ is $\sqrt{|{-3}|^1 + |2|^1 + |0|^1} = 5$, while the norm for $\frac{10}{9}$ is $\sqrt{1^1 + {-2}^1 + 1^1} = 4$, that is, we still find that $\frac98$ is ranked more complex than $\frac{10}{9}$. The remaining discrepancy is that we haven't scaled the lattice so that edge lengths are proportional to the sizes of the primes in pitch, which is to say, scaled each axis according to the logarithm of the prime that axis is meant to represent. If every occurrence of a prime 2 is the standard complexity point of 1, but prime 3 counts for $\log_2{3} \approx 1.585$ points, and prime 5 counts for $\log_2{5} \approx 2.232$ points, then we see $\frac98$ come out to $|{-3}×1| + |2×1.585| + |0×2.232| = 6.170$ and $\frac{10}{9}$ come out to $|1·1| + |{-2}×1.585| + |1×2.232| = 6.402$, which finally gives us a reasonable comparison between these two intervals. This logarithmically-scaled $1$-norm may be recognized as log-product complexity. As for unscaled $1$-norm — that's actually the count of prime factors with repetition, a different one of the functions we'll be looking at in more detail soon. You can find $\frac98$ and $\frac{10}{9}$ in the previous section's diagrams and see how these are all ranked differently by the different complexities to confirm the points made right here.

Why do we (or some theorists anyway) accept the lie of Euclideanized harmonic space sometimes? The answer is: computational expediency. It's not easier to compute individual $2$-norms than it is to compute individual $1$-norms, of course. However, it turns out that it is easier to compute the entire optimized tuning of a temperament when you pretend that Euclidean distance is a reasonable way to measure the complexity of an interval, than it is when you insist on measuring it using the truer along-the-edges distance. We can therefore think of Euclideanized distance as a decent approximation of the true harmonic distances, which some theorists decide is acceptable.

Our opinion? There are very few situations where the difference in computation speed for a tuning optimized with a $1$-norm and a $2$-norm will make a difference. Perhaps an automated script that runs upon loading a web page, where web page load times are famously important to get as lighting fast as possible. But in general, if you know how to compute the answer with a $1$-norm, the computer is going to calculate the answer just about as fast as it would with a $2$-norm approximation, so just use the $1$-norm. The listeners of your music for eternities to come will thank you for giving your computer a few extra seconds to get the tunings as nice as you knew how to ask it for them.

## Why we don't "maxize"

You may wonder why we have three norm powers of special interest — $1$, $2$, and $∞$ — yet the only norms we're looking at are prescaled (or not prescaled) $1$-norms (original) or $2$-norms (Euclideanized). Why do we not consider any $∞$-norms?

The short answer is: because no theorist has yet demonstrated significant interest in them. And the reason for that is: because they're even less harmonically realistic than Euclideanized norms, but without a computational expediency boost to counteract this. Here's a diagram that shows what happens to interval rankings with a $∞$ norm, showing how they're even more scrambled than before:

And we can also think of this in terms of what measuring this distance would be like. Please review the way of conceptualizing maxization given here: Dave Keenan & Douglas Blumeyer's guide to RTT: all-interval tuning schemes#Maxization, and then realize that if the shortcoming of measuring harmonic distance with Euclideanized measurement is how it takes advantage of the not-truly-existent diagonal space between lattice nodes, then maxized measurement is the absolute extreme of that shortcoming, or should we say short-cutting, in that it allows you to go as diagonally as possible at all times for no cost.

## Why we don't use any other norm power

Too complicated? Who cares? But seriously, no theorist has yet demonstrated interest in any norm power for complexities other than $1$ or $2$, whether $∞$ or otherwise.

## Prescaling vs pretransforming

Some of the alternative complexities discussed in this article cannot be said to merely prescale the vectors they take the norm of. For example, the integer-limit type complexities have a shearing effect. So, we may tend to prefer the more general term pretransform in this article, and accordingly the complexity pretransformer $X$ and inverse pretransformer $X^{-1}$.

# The complexities

Here's a monster table, listing all the complexities we'll look at in this article.

$% \slant{} command approximates italics to allow slanted bold characters, including digits, in MathJax. \def\slant#1{\style{display:inline-block;margin:-.05em;transform:skew(-14deg)translateX(.03em)}{#1}} % Latex equivalents of the wiki templates llzigzag and rrzigzag for double zigzag brackets. % Annoyingly, we need slightly different Latex versions for the different Latex sizes. \def\smallLLzigzag{\hspace{-1.4mu}\style{display:inline-block;transform:scale(.62,1.24)translateY(.05em);font-family:sans-serif}{ꗨ\hspace{-2.6mu}ꗨ}\hspace{-1.4mu}} \def\smallRRzigzag{\hspace{-1.4mu}\style{display:inline-block;transform:scale(-.62,1.24)translateY(.05em);font-family:sans-serif}{ꗨ\hspace{-2.6mu}ꗨ}\hspace{-1.4mu}} \def\llzigzag{\hspace{-1.6mu}\style{display:inline-block;transform:scale(.62,1.24)translateY(.07em);font-family:sans-serif}{ꗨ\hspace{-3mu}ꗨ}\hspace{-1.6mu}} \def\rrzigzag{\hspace{-1.6mu}\style{display:inline-block;transform:scale(-.62,1.24)translateY(.07em);font-family:sans-serif}{ꗨ\hspace{-3mu}ꗨ}\hspace{-1.6mu}} \def\largeLLzigzag{\hspace{-1.8mu}\style{display:inline-block;transform:scale(.62,1.24)translateY(.09em);font-family:sans-serif}{ꗨ\hspace{-3.5mu}ꗨ}\hspace{-1.8mu}} \def\largeRRzigzag{\hspace{-1.8mu}\style{display:inline-block;transform:scale(-.62,1.24)translateY(.09em);font-family:sans-serif}{ꗨ\hspace{-3.5mu}ꗨ}\hspace{-1.8mu}} \def\LargeLLzigzag{\hspace{-2.5mu}\style{display:inline-block;transform:scale(.62,1.24)translateY(.1em);font-family:sans-serif}{ꗨ\hspace{-4.5mu}ꗨ}\hspace{-2.5mu}} \def\LargeRRzigzag{\hspace{-2.5mu}\style{display:inline-block;transform:scale(-.62,1.24)translateY(.1em);font-family:sans-serif}{ꗨ\hspace{-4.5mu}ꗨ}\hspace{-2.5mu}}$

for ordinary tuning schemes and all-interval tuning schemes for all-interval tuning schemes only
interval complexity norm or function interval complexity function

in quotient-based $\small \frac{n}{d}$ form

interval complexity norm

in vector-based $\small \textbf{i}$ form

retuning magnitude norm (to be minimized)
dual to the interval complexity norm

only has (co)vector-based $𝒓$ form

all-interval tuning scheme
name

(bold = systematic)
(italic = general math)
(plain = RTT historical)

formula example: $\small \frac{10}{9}$ formula example: [1 -2 1⟩ formula example: ⟨1.617 -2.959 3.202] name

(bold = systematic)
(plain = RTT historical)

\small \begin{align} &\text{copfr-C}(\dfrac{n}{d}) \\ &= \text{copfr}(nd) \\ \small &= \text{copfr}(n) + \text{copfr}(d) \end{align} $\small = \text{copfr}(10·9) \\ \small = \text{copfr}(2·5·3·3) \\ \small = 2^0 + 5^0 + 3^0 + 3^0 \\ \small = 4$ \small \begin{align} &\text{copfr-C}(\textbf{i}) \\ &= ‖\textbf{i}‖_1 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\mathrm{i}_n|^1} \\ \small &= \sqrt{\strut |\mathrm{i}_1|^1 + |\mathrm{i}_2|^1 + \ldots + |\mathrm{i}_d|^1} \\ \small &= |\mathrm{i}_1| + |\mathrm{i}_2| + \ldots + |\mathrm{i}_d| \end{align} $\small = |1| + |{-2}| + |1| \\ \small = 4$ \small \begin{align} &\text{copfr-C}^{*}(𝒓) \\ &= ‖𝒓‖_∞ \\ \small &= \sqrt[∞]{\strut \sum\limits_{n=1}^d |r_n|^∞} \\ \small &= \sqrt[∞]{\strut |r_1|^∞ + |r_2|^∞ + \ldots + |r_d|^∞} \\ \small &= \max(|r_1|, |r_2|, \ldots, |r_d|) \end{align} $\small = \max(|1.617|, |{-2.959}|, |3.202|) \\ \small = 3.202$
\small \begin{align} &\text{E-copfr-C}(\textbf{i}) \\ &= ‖\textbf{i}‖_2 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\mathrm{i}_n|^2} \\ \small &= \sqrt{\strut |\mathrm{i}_1|^2 + |\mathrm{i}_2|^2 + \ldots + |\mathrm{i}_d|^2} \\ \small &= \sqrt{\strut \mathrm{i}_1^2 + \mathrm{i}_2^2 + \ldots + \mathrm{i}_d^2} \end{align} $\small = \sqrt{\strut 1^2 + -2^2 + 1^2} \\ \small = \sqrt{\strut 1 + 4 + 1} \\ \small = \sqrt6 \\ \small \approx 2.449$ \small \begin{align} &\text{E-copfr-C}^{*}(𝒓) \\ &= \text{E-copfr-C}(𝒓) \\ \small &= ‖𝒓‖_2 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |r_n|^2} \\ \small &= \sqrt{\strut r_1^2 + r_2^2 + \ldots + r_2^2} \end{align} $\small = \sqrt{\strut 1.617^2 + -2.959^2 + 3.202^2} \\ \small \approx \sqrt{\strut 2.615 + 8.756 + 10.253} \\ \small = \sqrt{\strut 21.624} \\ \small \approx 4.650$
\small \begin{align} &\text{lp-C}(\dfrac{n}{d}) \\ &= \log_2(nd) \\ \small &= \log_2(n) + \log_2(d) \end{align} $\small = \log_2(10·9) \\ \small = \log_2(90) \\ \small \approx 6.492$ \small \begin{align} &\text{lp-C}(\textbf{i}) \\ &= ‖L\textbf{i}‖_1 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\log_2{\!p_n} · \mathrm{i}_n|^1} \\ \small &= \sqrt{\strut |\log_2{\!p_1} · \mathrm{i}_1|^1 + |\log_2{\!p_2} · \mathrm{i}_2|^1 + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|^1} \\ \small &= |\log_2{\!p_1} · \mathrm{i}_1| + |\log_2{\!p_2} · \mathrm{i}_2| + \ldots + |\log_2{\!p_d} · \mathrm{i}_d| \end{align} $\small = |\log_2{\!2} · 1| + |\log_2{\!3} · {-2}| + |\log_2{\!5} · 1| \\ \small \approx 1 + 3.170 + 2.322 \\ \small = 6.492$ \small \begin{align} &\text{lp-C}^{*}(𝒓) \\ &= ‖𝒓L^{-1}‖_∞ \\ \small &= \sqrt[∞]{\strut \sum\limits_{n=1}^d |\frac{r_n}{\log_2{\!p_n}}|^∞} \\ \small &= \sqrt[∞]{\strut |\frac{r_1}{\log_2{\!p_1}}|^∞ + |\frac{r_2}{\log_2{\!p_2}}|^∞ + \ldots + |\frac{r_d}{\log_2{\!p_d}}|^∞} \\ \small &= \max(\dfrac{|r_1|}{\log_2{\!p_1}}, \dfrac{|r_2|}{\log_2{\!p_2}}, \ldots, \dfrac{|r_d|}{\log_2{\!p_d}}) \end{align} $\small = \max(\dfrac{|1.617|}{\log_2{\!2}}, \dfrac{|{-2.959}|}{\log_2{\!3}}, \dfrac{|3.202|}{\log_2{\!5}}) \\ \small = \max(1.617, 1.867, 1.379) \\ \small = 1.867$
\small \begin{align} &\text{E-lp-C}(\textbf{i}) \\ &= ‖L\textbf{i}‖_2 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\log_2{\!p_n} · \mathrm{i}_n|^2} \\ \small &= \sqrt{\strut |\log_2{\!p_1} · \mathrm{i}_1|^2 + |\log_2{\!p_2} · \mathrm{i}_2|^2 + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|^2} \\ \small &= \sqrt{\strut (\log_2{\!p_1} · \mathrm{i}_1)^2 + (\log_2{\!p_2} · \mathrm{i}_2)^2 + \ldots + (\log_2{\!p_d} · \mathrm{i}_d)^2} \end{align} $\small = \sqrt{\strut (\log_2{\!2} · 1)^2 + (\log_2{\!3} · {-2})^2 + (\log_2{\!5} · 1)^2} \\ \small \approx \sqrt{\strut 1 + 10.048 + 5.391} \\ \small = \sqrt{\strut 16.439} \\ \small \approx 4.055$ \small \begin{align} &\text{E-lp-C}^{*}(𝒓) \\ &= ‖𝒓L^{-1}‖_2 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\frac{r_n}{\log_2{\!p_n}}|^2} \\ \small &= \sqrt{\strut |\frac{r_1}{\log_2{\!p_1}}|^2 + |\frac{r_2}{\log_2{\!p_2}}|^2 + \ldots + |\frac{r_d}{\log_2{\!p_d}}|^2} \\ \small &= \sqrt{\strut (\frac{r_1}{\log_2{\!p_1}})^2 + (\frac{r_2}{\log_2{\!p_2}})^2 + \ldots + (\frac{r_d}{\log_2{\!p_d}})^2} \end{align} $\small = \sqrt{\strut (\frac{1.617}{\log_2{\!2}})^2 + (\frac{{-2.959}}{\log_2{\!3}})^2 + (\frac{3.202}{\log_2{\!5}})^2} \\ \small \approx \sqrt{\strut 2.615 + 3.485 + 1.902} \\ \small = \sqrt{\strut 8.002} \\ \small \approx 2.829$
$\small \text{lils-C}(\dfrac{n}{d}) \\ = \log_2(\max(n, d)^2)$ $\small = \log_2(\max(10, 9)^2) \\ \small = \log_2(10·10) \\ \small = \log_2(100) \\ \small \approx 6.644$
$\small \text{lils-C}(\dfrac{n}{d}) \\ = \log_2{\!nd} + |\log_2{\!\frac{n}{d}}|$ $\small = \log_2(10·9) + |\log_2(\frac{10}{9})| \\ \small \approx 6.492 + |0.152| \\ \small = 6.644$ \small \begin{align} &\text{lils-C}(\textbf{i}) \\ &= ‖ ZL\textbf{i} ‖_1 \\ \small &= ‖ \; [ \; L\textbf{i} \; | \; \smallLLzigzag L\textbf{i} \smallRRzigzag_1 \; ] \; ‖_1 \\ \small &= \sum\limits_{n=1}^d|\log_2{\!p_n} · \mathrm{i}_n| + {\large|}\sum\limits_{n=1}^d(\log_2{\!p_n} · \mathrm{i}_n){\large|} \\ \small &= |\log_2{\!p_1} · \mathrm{i}_1| + |\log_2{\!p_2} · \mathrm{i}_2| + \ldots + |\log_2{\!p_d} · \mathrm{i}_d| \; + \\ \small & \quad\quad\quad {\large|}(\log_2{\!p_1} · \mathrm{i}_1) + (\log_2{\!p_2} · \mathrm{i}_2) + \ldots + (\log_2{\!p_d} · \mathrm{i}_d){\large|} \end{align} \small \begin{align} &= |\log_2{\!2} · 1| + |\log_2{\!3} · {-2}| + |\log_2{\!5} · 1| \; + \\ \small & \quad\quad\quad {\large|}(\log_2{\!2} · 1) + (\log_2{\!3} · {-2}) + (\log_2{\!5} · 1){\large|} \\[5pt] \small &= |1| + |-3.170| + |2.322| + {\large|}1 + {-3.170} + 2.322{\large|} \\ \small &= 1 + 3.170 + 2.322 + 0.152 \\ \small &\approx 6.644 \end{align} \small \begin{align} &\text{lils-C}^{*}(\textbf{𝒓}) \\ &= \max( \frac{r_1}{\log_2{\!p_1}}, \frac{r_2}{\log_2{\!p_2}}, \ldots, \frac{r_d}{\log_2{\!p_d}}, 0) \; - \\ \small & \quad\quad\quad \min(\frac{r_1}{\log_2{\!p_1}}, \frac{r_2}{\log_2{\!p_2}}, \ldots, \frac{r_d}{\log_2{\!p_d}}, 0) \end{align} $\small = \max(\frac{1.617}{\log_2{\!2}}, \frac{{-2.959}}{\log_2{\!3}}, \frac{3.202}{\log_2{\!5}}) \; - \\ \small \quad \min(\frac{1.617}{\log_2{\!2}}, \frac{{-2.959}}{\log_2{\!3}}, \frac{3.202}{\log_2{\!5}}) \\ \small \approx \max(1.617, {-1.867}, 1.379) \; - \\ \small \quad \min(1.617, {-1.867}, 1.379) \\ \small = 1.617 - {-1.867} \\ \small = 3.484$
\small \begin{align} &\text{E-lils-C}(\textbf{i}) \\ &= ‖ ZL\textbf{i} ‖_2 \\ \small &= ‖ \; [ \; L\textbf{i} \; | \; \smallLLzigzag L\textbf{i} \smallRRzigzag_1 \; ] \; ‖_2 \\ \small &= \sqrt{ \sum\limits_{n=1}^d|\log_2{\!p_n} · \mathrm{i}_n|^2 + {\large|}\sum\limits_{n=1}^d(\log_2{\!p_n} · \mathrm{i}_n){\large|}^2 } \\ \small &= \sqrt{\strut |\log_2{\!p_1} · \mathrm{i}_1|^2 + |\log_2{\!p_2} · \mathrm{i}_2|^2 + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|^2) \; +} \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \\ \small & \quad\quad\quad \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{{\large|}(\log_2{\!p_1} · \mathrm{i}_1) + (\log_2{\!p_2} · \mathrm{i}_2) + \ldots + (\log_2{\!p_d} · \mathrm{i}_d){\large|}^2} \end{align} \small \begin{align} &= \sqrt{\strut |\log_2{\!2} · 1|^2 + |\log_2{\!3} · {-2}|^2 + |\log_2{\!5} · 1|^2 \; +} \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \\ \small & \quad\quad\quad \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{{\large|}(\log_2{\!2} · 1) + (\log_2{\!3} · {-2}) + (\log_2{\!5} · 1){\large |}^2} \\[5pt] \small &= \sqrt{\strut 1^2 + -3.170^2 + 2.322^2 + |1 + -3.170 + 2.322|^2} \\ \small &= \sqrt{\strut 1 + 10.048 + 5.391 + 0.023} \\ \small &= \sqrt{\strut 16.462} \\ \small &\approx 4.057 \end{align} (unsure; handled via matrix augmentations)
\begin{align} \small &\text{lols-C}(\dfrac{n}{d}) \\ &= \log_2(\max(&&\text{rough}(n, 3), \\ &&&\text{rough}(d, 3))^2) \end{align} $\small = \log_2(\max(5, 9)^2) \\ \small = \log_2{\!9·9} \\ \small = \log_2{\!81} \\ \small \approx 6.340$
$\small \text{lols-C}(\dfrac{n}{d}) \\ = \log_2{\!\text{rough}(nd, 3)} + |\log_2{\!\frac{\text{rough}(n,3)}{\text{rough}(d,3)}}|$ $\small = \log_2(5 · 9) + |\log_2(\frac59)| \\ \small \approx 5.492 + |{-0.848}| \\ \small = 6.340$ \small \begin{align} &\text{lols-C}(\textbf{i}) \\ &= \sum\limits_{n=2}^d|\log_2{\!p_n} · \mathrm{i}_n| + {\large|}\sum\limits_{n=2}^d(\log_2{\!p_n} · \mathrm{i}_n){\large|} \\ \small &= |\log_2{\!p_2} · \mathrm{i}_2| + \ldots + |\log_2{\!p_d} · \mathrm{i}_d| \; + \\ \small & \quad\quad\quad {\large|}(\log_2{\!p_2} · \mathrm{i}_2) + \ldots + (\log_2{\!p_d} · \mathrm{i}_d){\large|} \end{align} \small \begin{align} &= |\log_2{\!3} · {-2}| + |\log_2{\!5} · 1| \; + \\ \small & \quad\quad\quad {\large|}(\log_2{\!3} · {-2}) + (\log_2{\!5} · 1){\large|} \\ \small &\approx 3.170 + 2.322 + |{-3.170} + 2.322| \\ \small &= 6.340 \end{align} (unsure; handled via matrix augmentations)
\small \begin{align} &\text{E-lols-C}(\textbf{i}) \\ &= \sqrt{ \sum\limits_{n=2}^d|\log_2{\!p_n} · \mathrm{i}_n|^2 + {\large|}\sum\limits_{n=2}^d(\log_2{\!p_n} · \mathrm{i}_n){\large|}^2 } \\ \small &= \sqrt{\strut |\log_2{\!p_2} · \mathrm{i}_2|^2 + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|^2) \; +} \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \\ \small & \quad\quad\quad \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{{\large|}(\log_2{\!p_2} · \mathrm{i}_2) + \ldots + (\log_2{\!p_d} · \mathrm{i}_d){\large|}^2} \end{align} \small \begin{align} &= \sqrt{\strut |\log_2{\!3} · {-2}|^2 + |\log_2{\!5} · 1|^2 \; +} \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[11pt]{0pt}{0pt} } \\ \small & \quad\quad\quad \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{\rule[12pt]{0pt}{0pt} } \hspace{1mu} \overline{{\large|}(\log_2{\!3} · {-2}) + (\log_2{\!5} · 1){\large|}^2} \\[5pt] \small &\approx\sqrt{\strut {-3.170}^2 + 2.322^2 + |{-3.170} + 2.322|^2} \\ \small &= \sqrt{\strut 10.048 + 5.391 + 0.719} \\ \small &= \sqrt{\strut 16.158} \\ \small &= 4.020 \end{align} (unsure; handled via matrix augmentations)
$\small \text{prod-C}(\dfrac{n}{d}) \\ = nd$ $\small = 10·9 \\ \small = 90$ \small \begin{align} &\text{prod-C}(\textbf{i}) \\ &= \prod\limits_{n=1}^d{p_n^{|\mathrm{i}_n|}} \\ \small &= p_1^{|\mathrm{i}_1|} × p_2^{|\mathrm{i}_2|} × \ldots × p_d^{|\mathrm{i}_d|} \end{align} $\small = 2^{|1|} × 3^{|{-2}|} × 5^{|1|} \\ \small = 2 + 9 + 5 \\ \small = 16$
\small \begin{align} &\text{sopfr-C}(\dfrac{n}{d}) \\ &= \text{sopfr}(nd) \\ \small &= \text{sopfr}(n) + \text{sopfr}(d) \end{align} $\small = \text{sopfr}(10·9) \\ \small = \text{sopfr}(2·5·3·3) \\ \small = 2^1+ 5^1 + 3^1 + 3^1 \\ \small = 13$ \small \begin{align} &\text{sopfr-C}(\textbf{i}) \\ &= ‖\text{diag}(𝒑)\textbf{i}‖_1 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d|p_n · \mathrm{i}_n|^1 } \\ \small &= \sqrt{\strut |p_1 · \mathrm{i}_1|^1 + |p_2 · \mathrm{i}_2|^1 + \ldots + |p_d · \mathrm{i}_d|^1} \\ \small &= |p_1\mathrm{i}_1| + |p_2\mathrm{i}_2| + \ldots + |p_d\mathrm{i}_d| \end{align} $\small = |2 · 1| + |3 · {-2}| + |5 · 1| \\ \small = 2 + 6 + 5 \\ \small = 13$ \small \begin{align} &\text{sopfr-C}^{*}(\textbf{𝒓}) \\ &= ‖𝒓\,\text{diag}(𝒑)^{-1}‖_∞ \\ \small &= \sqrt[∞]{\strut \sum\limits_{n=1}^d |\frac{r_n}{p_n}|^∞} \\ \small &= \sqrt[∞]{\strut |\frac{r_1}{p_1}|^∞ + |\frac{r_2}{p_2}|^∞ + \ldots + |\frac{r_d}{p_d}|^∞} \\ \small &= \max(\frac{|r_1|}{p_1}, \frac{|r_2|}{p_2}, \ldots, \frac{|r_d|}{p_d}) \end{align} $\small = \max(\frac{|1.617|}{2}, \frac{|{-2.959}|}{3}, \frac{|3.202|}{5}) \\ \small \approx \max(0.809, 0.986, 0.640) \\ \small = 0.986$
\small \begin{align} &\text{E-sopfr-C}(\textbf{i}) \\ &= ‖\text{diag}(𝒑)\textbf{i}‖_2 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |p_n · \mathrm{i}_n|^2} \\ \small &= \sqrt{\strut |p_1 · \mathrm{i}_1|^2 + |p_2 · \mathrm{i}_2|^2 + \ldots + |p_d · \mathrm{i}_d|^2} \\ \small &= \sqrt{\strut (p_1\mathrm{i}_1)^2 + (p_2\mathrm{i}_2)^2 + \ldots + (p_d\mathrm{i}_d)^2} \end{align} $\small = \sqrt{\strut |2 · 1|^2 + |3 · {-2}|^2 + |5 · 1|^2} \\ \small = \sqrt{\strut 2^2 + 6^2 + 5^2} \\ \small = \sqrt{\strut 4 + 36 + 25} \\ \small = \sqrt{\strut 65} \\ \small \approx 8.062$ \small \begin{align} &\text{E-sopfr-C}^{*}(𝒓) \\ &= ‖𝒓\,\text{diag}(𝒑)^{-1}‖_2 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\frac{r_n}{p_n}|^2} \\ \small &= \sqrt{\strut |\frac{r_1}{p_1}|^2 + |\frac{r_2}{p_2}|^2 + \ldots + |\frac{r_d}{p_d}|^2} \\ \small &= \sqrt{\strut (\frac{r_1}{p_1})^2 + (\frac{r_2}{p_2})^2 + \ldots + (\frac{r_d}{p_d})^2} \end{align} $\small = \sqrt{\strut (\frac{1.617}{2})^2 + (\frac{{-2.959}}{3})^2 + (\frac{3.202}{5})^2} \\ \small \approx \sqrt{\strut 0.654 + 0.973 + 0.410} \\ \small = \sqrt{\strut 2.037} \\ \small \approx 1.427$

In the next section of this article, we will be taking a look at each of these complexities individually. Formulas, examples, and associated tuning schemes can be found in the reference table above, and below we'll go through each complexity in detail, disambiguating any variable names in the table, suggesting helpful ways to think about the relationships between their formulas, and explaining why some theorists may favor them for regular temperament tuning. Before we begin to look at the complexity functions which we haven't discussed before, though, we'll first be reviewing in this level of detail those few of them that we have already used. This will help us set the stage properly for the newer ones. We'll actually start with the log-product complexity here, that is, we'll look at it before the product complexity, even though the product complexity is conceptually simpler than it, and technically came up first in our article series. We're doing this for similar reasons to why we adopted the log-product complexity as our default complexity in all our theory thus far: it's easier to work with given our LA setup for RTT.

This section is structured so that we follow each function's discussion with a discussion of its Euclideanized version, so we end up with an alternating pattern of original and Euclideanized function discussions.

We've adopted the notational choice for functions which are getting applied for computing complexity by suffixing them with $\text{-C}$. For example, $\text{sopfr}()$ is simply the mathematical function "sum of prime factors with repetition", while $\text{sopfr-C}()$ is that applied for computing complexity. And any such complexity function has a corresponding simplicity function which returns its reciprocal values, and which is notated instead with the $\text{-S}$ suffix.

Previously we've referred to a norm form of a complexity as having a dual norm as well as an inverse prescaler. For the remainder of this article, we will be switching nomenclature to inverse pre-transformer for the latter, on account of the fact that some of the alternative complexity functions described here have norm forms which use a non-rectangular matrix in that position, and so it would be somewhat of a misnomer to consider them merely pre-scalers in general.

As a final note before we begin: for purposes of this discussion, a "vector-based form" of a complexity's formula refers specifically to the prime-count vectors that we use for JI ratios; the notion of a "vector-based form" of a mathematical function defined for quotients, i.e. in terms of a numerator and a denominator, has no meaning unless the nature of that vector is specified, and in our case we specify it as a vectorization of the quotients' prime factorization. So for purposes of this article, when we see the quotient $\frac{n}{d}$, this refers to the same interval as the vector $\textbf{i}$.

## Log-product

Log-product complexity $\text{lp-C}()$ was famously used by Paul Erlich in the simplicity-weight damage of the "Tenney OPtimal" tuning scheme he introduced in his Middle Path paper, though he referred to it there as "harmonic distance", that being James Tenney's term for it, and Tenney being the first person to apply it to tuning theory (indeed this function is still known to some theorists as "Tenney height"). We still consider this tuning scheme to be the gold standard among the all-interval tuning schemes, and this reflects in how our tuning scheme naming system gives it the simplest name it is capable of giving: "minimax-S". The use of $\text{lp-C}()$ for the minimax-S tuning scheme is discussed at length in the previous article of this series on all-interval tuning schemes, but it can be used to weight error in ordinary tuning schemes too.

### Default status

Log-product complexity was chosen by us (Douglas and Dave) to be our default complexity function. By this it is meant that if one says "miniaverage-C" tuning, the assumption is that the complexity-weight damage is log-product complexity; there is no need to spell out "miniaverage-lp-C". It was chosen as the default for its excellent balance of easy-to-understand and easy-to-compute qualities, while doing a good job capturing the reality of harmonic complexity. For a more in-depth defense of this choice and exploration of other possibilities, see the later section A defense of our choice of log product as our default complexity.

### Formulas

The quotient form of the log-product complexity function is the base-2 logarithm of the product of a quotient's numerator and denominator:

$\text{lp-C}(\frac{n}{d}) = \log_2(n·d)$

Or, equivalently, the sum of the base-2 logarithm of each separately:

$\text{lp-C}(\frac{n}{d}) = \log_2(n) + \log_2(d)$

The equivalent vector-based form of the log-product complexity function, to be called on the equivalent vector $\textbf{i}$, is given as a norm by:

$\text{lp-C}(\textbf{i}) = ‖L\textbf{i}‖_1$

where $L$ is the log-prime matrix, a diagonalized list of the base-2 logs of each prime.

The vector-based form may also be understood as a summation:

\begin{align} \text{lp-C}(\textbf{i}) &= \sqrt{\strut \sum\limits_{n=1}^d \log_2{\!p_n}|\mathrm{i}_n|^1} \\ &= \sum\limits_{n=1}^d \log_2{\!p_n}|\mathrm{i}_n| \end{align}

where $p_n$ is the $n$th prime (assuming this is a temperament of a standard domain, i.e. its basis is a prime limit; in general $p_n$ is the $n$th entry of whichever prime list $𝒑$ your temperament is working with (or in the general case a basis element list). We also note that $n$ is not the numerator and $d$ is not the denominator here; their reappearance together is a coincidence. What $n$ is here is a generic summation index that increments each step of the sum (matching the $n$th prime up with the $n$th entry of $\textbf{i}$), and $d$ is the dimensionality of $\textbf{i}$ (and the temperament in general).

Either way of writing this vector-based form — norm, or summation — may be expanded to:

$\text{lp-C}(\textbf{i}) = |\log_2{\!p_1} · \mathrm{i}_1| + |\log_2{\!p_2} · \mathrm{i}_2| + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|$

In order to understand how the vector-based form is equivalent to the quotient form, please refer to our explanation using the logarithmic identities $\log(a·b) = \log(a) + \log(b)$ and $\log(a^c) = c·\log(a)$ in the all-interval tuning schemes article.

### Proportionality to size

Because the log-prime matrix $L$ can also be understood to figure into how we compute the sizes of intervals in cents, we see an interesting effect for tunings that use complexities such as $\text{lp-C}()$ which use it as (or as part of) their complexity pretransformer $X$. A complexity pretransformer's inverse pretransformer $X^{-1}$, appears in the minimization target according to RTT's take on the dual norm inequality: $‖𝒓X^{-1}‖_{\text{dual}(q)}$. So given the following:

• The retuning map is the tuning map minus the just tuning map: $𝒓 = 𝒕 - 𝒋$
• The just tuning map can be understood to be the log-prime matrix left-multiplied by a summation map $\slant{\mathbf{1}}$ = 1 1 1 …] and then scaled to cents with an octave-to-cents conversion factor of 1200, that is: $𝒋 = 1200×\slant{\mathbf{1}}L$
• In $\text{lp-C}()$ it is the case that $X = L$.

Then we find:

$‖𝒓X^{-1}‖_{\text{dual}(q)}$

Substituting in for $𝒓 = 𝒕 - 𝒋$ and $X^{-1} = X^{-1} = (L)^{-1}$

$‖(𝒕 - 𝒋)(L^{-1})‖_{\text{dual}(q)}$

Distributing:

$‖𝒕L^{-1} - 𝒋L^{-1}‖_{\text{dual}(q)}$

Substituting in for $𝒋 = 1200×\slant{\mathbf{1}}L$:

$‖𝒕L^{-1} - (1200×\slant{\mathbf{1}}L)L^{-1}‖_{\text{dual}(q)}$

And now canceling out the $LL^{-1}$ on the second term:

$‖𝒕L^{-1} - 1200×\slant{\mathbf{1}}\cancel{L}\cancel{L^{-1}}‖_{\text{dual}(q)}$

Note that $𝒕 = 1200×\slant{\mathbf{1}}LGM$, and so the left term could also be expressed as $1200×\slant{\mathbf{1}}LGML^{-1}$, but $L$ and $L^{-1}$ do not cancel here, because they are not immediate neighbors. We meaningfully transform into $L^{-1}$ space, deal with $M$ and $G$ there, and then transform back out with $L$ here. So we find that the retuning magnitude is:

$‖𝒕L^{-1} - 1200×\slant{\mathbf{1}}‖_{\text{dual}(q)}$

And so this is the minimization target for tuning schemes whose complexity pretransformer equals $L$. What's cool about this is how we're tuning each prime proportionally to its own size. The second term here is a map consisting of a string of 1200's, one for each prime. And the first term is the tuning map, but with each term scaled proportionally to the log of the corresponding prime, such that if the tempered version of the prime were to be pure, it would equal 1200 here. If we took the 1200 out of the picture, we could perhaps see even more clearly that we were weightingeach prime proportionally to its own size. In other words, since we're minimizing the difference between each prime's tuning and 1, this would mean that a perfect tuning equals 1, narrow tunings are values like 0.99, and wide tunings are values like 1.01. This is in contrast to the non-pretransformed case, where every cent off from any prime makes the same impact to its difference with its just size.

We could think of it this way: while $𝒓$ simply gives us the straight amount of error to each prime interval, $𝒓L^{-1}$ gives us that error relative to the size of each of those intervals, i.e in terms of a proportion such as could be expressed with a percentage. In other words, since the interval $\frac71$ is much bigger than the interval $\frac21$, if they both had the same amount of error, then that'd actually be quite a bit less error per octave for prime 7 (specifically, $\frac{1}{\log_2{7}}$ as much). So, if we're using an optimizer to minimize a norm of a vector containing this error value and others, by reducing it in this way, we are telling the optimizer — for each next prime bigger than the last — worry about its error proportionally less than the prime before. This is the rationale Paul used when basing his tuning scheme on a Tenney lattice, and we think that if you're going to use an all-interval tuning, then this is a pretty darn appealing reason to use $\text{lp}$ as the interval complexity function in the simplicity-weighting of your damage. As with non-all-interval tuning schemes, we consider $\text{lp}$ to be the clear default interval complexity function; this is just a new perspective on that same old intuition.

We might also call attention to the fact that cents and octaves are both logarithmic pitch units. Which is to say that we could simplify the units of such quantities down to nothing if we wanted. That is, we know the conversion factor between these two units, so multiplying by 1/1200 octaves/cent would cancel out the units, leaving us with a dimensionless quantity. So why do we keep these values in the more complicated units of cents per octave? The main reason is convenient size. When tuning temperaments, we tend to deal with smallish damage values: usually less than 10, almost always less than 100. If that gets divided by 1200 (~1000) then we'd typically be comparing amounts in the hundredths. Who wants to compare damages of 0.001 and 0.002, i.e. essentially proportions of octaves? As Graham puts it in his paper Prime Based Error and Complexity Measures, "Because the dimensionless error is quite a small number, using cents per octave instead is a good practical idea."

This $L$-canceling proportionality effect occurs for all-interval tunings that use any complexity with $L$ as its pretransformer (or a component thereof), such as minimax-ES, minimax-lils-S, and minimax-E-lils-S described later in this article.

This effect does not occur for ordinary tunings with simplicity weight damage, i.e. where the simplicity matrix is $S = \dfrac1L = L^{-1}$. At least, it doesn't whenever they use anything other than the primes as target-intervals, i.e. $\mathrm{T} ≠ I$, because having $\mathrm{T}$ sandwiched between the $L$ and the $L^{-1}$ prevents them from canceling:

$\llzigzag \textbf{d} \rrzigzag _p = \llzigzag 1200×\slant{\mathbf{1}}LGM\mathrm{T}L^{-1} - 1200×\slant{\mathbf{1}}L\mathrm{T}L^{-1} \, \rrzigzag _p$

We'll briefly look at a units analysis of this situation. Interestingly, even though this $LL^{-1}$ cancels out mathematically, the units do not. That's because these really aren't the same $L$, conceptually speaking anyway. They have the same shape and entries, but different purposes. The first one is there to convert prime counts into octave amounts, i.e. from frequency space where we multiply primes to pitch space where we add their logs; this $L$ logically has units of oct/p. The second one is there to scale prime factors according to a particular idea of interval complexity, which happens to be (well, we'd say, was engineered to be) in direct correlation with their octave amounts; this pretransformer $L$ has no actual units but carries a unit annotation (C) that it applies to whatever it pretransforms (and $L^{-1}$ thereby has the annotation (S), for simplicity, being the inverse of $L$). And so when we consider the whole expression $1200×\slant{\mathbf{1}}LL^{-1}$, we find that $1200$ has units of ¢/oct, $\slant{\mathbf{1}}$ has units of oct/oct, $L$ has units of oct/p, and $L^{-1}$ has units of (S), and when everything's done canceling out, you end up with ¢/p(S). Note that the annotation is not "in the denominator"; it applies equally to the entire unit. And the most logical way to read this would be as if the annotation was on the numerator, in fact, as "simplicity-weighted cents per prime". You can check that this is the same units you'd get for the other term $𝒕L^{-1}$, and thus for their difference, $𝒓L^{-1}$. Since the noteworthy thing here was that the matched $L$'s had no effect on the units analysis, we further note that this analysis is valid for any inverse pretransformed retuning map. But we should also say that it's not entirely wrong to think of $L^{-1}$ as having units of p/oct, i.e. as being the inverse of the $L$ that's used for sizing interval vectors, in which case we end up with ¢/oct units instead; both Keenan Pepper (in his tiptop.py script) calls the units of damage in minimax-S tuning "cents per octave", and Graham Breed considers them cents per octave as well.

## Euclideanized log-product

To Euclideanize log-product complexity, we simply take the powers and roots of $1$ from the vector-based forms (norm, summation, and expanded) and swap them out for $2$'s. This also changes its name from "(taxicab) log-product complexity" to "Euclideanized" same. Note that the quotient form does not have these powers and thus we have no quotient form of $\text{E-lp-C}()$.

$\begin{array} {rcl} {\color{red}\text{(t-)}}\text{lp-C} & \text{name} & {\color{red}\text{E-}}\text{lp-C} \\ \log_2(n·d) & \text{quotient} & \text{ — } \\ ‖L\textbf{i}‖_{\color{red}1} & \text{norm} & ‖L\textbf{i}‖_{\color{red}2} \\ \sqrt[{\color{red}1}]{\strut \sum\limits_{n=1}^d \log_2{\!p_n}|\mathrm{i}_n|^{\color{red}1}} & \text{summation} & \sqrt[{\color{red}2}]{\strut \sum\limits_{n=1}^d \log_2{\!p_n}|\mathrm{i}_n|^{\color{red}2}} \\ \sqrt[{\color{red}1}]{\strut |\log_2{\!p_1} · \mathrm{i}_1|^{\color{red}1} + |\log_2{\!p_2} · \mathrm{i}_2|^{\color{red}1} + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|^{\color{red}1}} & \text{expanded} & \sqrt[{\color{red}2}]{\strut |\log_2{\!p_1} · \mathrm{i}_1|^{\color{red}2} + |\log_2{\!p_2} · \mathrm{i}_2|^{\color{red}2} + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|^{\color{red}2}} \end{array}$

### Tunings used in

This complexity was introduced to tuning theory by Graham Breed, for his Tenney-Euclidean tuning scheme (our "minimax-ES").

Minimax-ES is also sometimes referred to as the "T2" tuning scheme, in recognition of its falling along a continuum of tunings that include minimax-S ("TOP"), or "T1" tuning. The '1' and '2' refers to the norm power, so in "T1" the '1' refers to the ordinary case of taxicab norm, and in "T2" the '2' refers to the Euclideanization (and, theoretically, "T3" would refer to an analogous tuning that used a $3$-norm instead, etc.). Unfortunately, because the meaning of the 'T' is "Tenney", a reference to his harmonic lattice which uses a harmonic distance measure that is a pretransformed 1-norm, this is not the cleanest terminology, since any value other than '1' here is overriding that aspect of the meaning of the 'T'. We prefer our systematic naming, which uses an optional "t-" (for taxicab) or an "E-" (for Euclidean) in place of special norm power values of '1' and '2', respectively, and otherwise just uses the number, for example "T3" would be "minimax-3S".

## Product

Product complexity is found as the product of a quotient's numerator and denominator:

$\small \text{prod-C}(\dfrac{n}{d}) = nd$

It doesn't get any simpler than that.

### Vectorifiable, but not normifiable

We are able to express product complexity in vector-based form. However, unlike every other one of the complexities we look at in this article, it does not work out as a summation; rather, it works out as a product, using the analogous but less-familiar Big-Pi notation instead of Big-Sigma notation ('Π' for 'P' for "product"; 'Σ' for 'S' for "summation").

$\small \text{prod-C}(\textbf{i}) = \prod\limits_{n=1}^d{p_n^{|\mathrm{i}_n|}}$

Which expands like this:

$p_1^{|\mathrm{i}_1|} × p_2^{|\mathrm{i}_2|} × \ldots × p_d^{|\mathrm{i}_d|}$

For this same reason — being a product, not a summation — product complexity has no way to be expressed as a norm, and so cannot be used directly for all-interval tuning schemes. And this is one of the key reasons why it hasn't seen as much use in tuning theory as its logarithmic cousin, $\text{lp-C}()$. The logarithmic version exhibits that $L$-canceling effect (which also underpins Paul's trick for computing minimax-S tunings of nullity-1 temperaments, per Dave Keenan & Douglas Blumeyer's guide to RTT: all-interval tuning schemes#Bonus trick: Paul's method for nullity-1 minimax-S), and also we believe accounts for it simply "feeling about right" to the typical tuning theorist we've discussed with. Log-product complexity feels like it was designed expressly for measuring complexity of relative pitch, i.e. pitch deltas, whereas product complexity feels better suited for measuring complexity of relative frequency, i.e. frequency qoppas. For more information on this problem, please see the later section Systematizing norms.

### Tunings used in

Curiously, even though $\text{prod-C}()$ cannot be normified, and if it can't be a norm then there can't be a dual norm for it, which means we cannot directly create an all-interval tuning "minimax-prod-S" which minimaxes the product-simplicity-weight damage across all intervals, we can nevertheless achieve this (if one feels like experimenting with a sort of conceptual mismatch between frequency and pitch, in terms of complexity measurement), albeit it comes with a further step of indirection. This is because of a special relationship between product complexity $\text{prod-C}()$ and sum-of-prime factors-with-repetition complexity $\text{sopfr-C}()$: when sopfr-simplicity-weight damage is minimaxed, as is done in the minimax-sopfr-S tuning, it turns out that simultaneously the prod-simplicity-weight damage is also minimized. This is the reason why the historical name for minimax-sopfr-S has been "BOP", short for "Benedetti OPtimal", where "Benedetti height" is an alternative name for product complexity, even though minimax-sofpr-S is computed not with the product complexity but with sum-of-prime-factors-with-repetition complexity. We'll explain this in the later section on sopfr.

## Euclideanized product

This is a trick section, here only for parallelism. There is no Euclideanized product complexity $\text{“E-prod-C”}()$. Despite product complexity boasting a vector form, that vector-based form involves a product, not a summation, and therefore cannot be expressed as a norm, and Euclideanization is something that can only be done to a norm (or equivalent summation). Compare:

$\begin{array} {rcl} \sqrt[{\color{red}1}]{\strut \sum\limits_{n=1}^d \log_2{\!p_n}|\mathrm{i}_n|^{\color{red}1}} & {\color{red}\text{(T-)}}\text{lp-C} → {\color{red}\text{E-}}\text{lp-C} & \sqrt[{\color{red}2}]{\strut \sum\limits_{n=1}^d \log_2{\!p_n}|\mathrm{i}_n|^{\color{red}2}} \\ \prod\limits_{n=1}^d \log_2{\!p_n}^{|\mathrm{i}_n|} & {\color{red}\text{(T-)}}\text{prod-C} → \text{“}{\color{red}\text{E-}}\text{prod-C”} & {\Large\quad\quad\text{?}} \\ \end{array}$

We simply don't have the matching power and root of a norm to work with here. Since this complexity function does not exist, of course, there are no tuning schemes which use it.

## Sum-of-prime-factors-with-repetition

The "sum of prime factors with repetition" function, due to its ungainly six-word-long name, is usually initialized to $\text{sopfr}()$, in all lowercase, and curiously missing the 'w', though perhaps that's for easier comparison with its close cousin function, the "sum of prime factors" (without repetition), which is notated as $\text{sopf}()$. And "sopfr" is a dam site more pronounceable than "sopfwr" would be. By "repetition" here it is meant that if a prime factor appears more than once, it is counted for each appearance. It may seem obvious to count all the occurrences of each prime, but there are valuable applications to the without-repetition version of this function (though it's unlikely that it will see much use in tuning theory).

The quotient form of sum-of-prime-factors-with-repetition-complexity $\text{sopfr-C}(\frac{n}{d})$ is simply the sum-of-prime-factors-with-repetition of the numerator times the denominator, $\text{sopfr}(nd)$, or, equivalently, the $\text{sopfr}()$ for each of the numerator and denominator separately then added together $\text{sopfr}(n) + \text{sopfr}(d)$.

The vector-based form of $\text{sopfr-C}$ looks like so:

$\text{sopfr-C}(\textbf{i}) = \sum\limits_{n=1}^d(p_{n}·|\mathrm{i}_{n}|)$

Where, as we've been doing so far, $p_n$ is the $n$th entry of $𝒑$, the list of primes that match with the counts in each entry $\mathrm{i}_n$ of the interval vectors $\textbf{i}$.

### Variations

The tuning theorist Carl Lumma has advocated for a variation on this tuning where the primes are all squared before prescaling. This is supported in the RTT Library in Wolfram Language. In fact, it also supports pretransforming by $p^a·\log_2{p}^b$, for any power $a$ or $b$.

### Tunings used in

$\text{sopfr-C}()$ is used in the minimax-sopfr-S tuning scheme, historically known as "BOP". As explained above, this tuning is named "Benedetti OPtimal" because "Benedetti" is associated with product complexity — not the sopfr complexity we use as our damage weight when computing it. Apparently more theorists care about minimizing product complexity than about minimizing sopfr, which is fine. We have to minimize with $\text{sopfr-C}()$ weight instead of $\text{prod-C}()$ weight because $\text{prod-C}()$ is not normifiable, being a product, not a summation. And minimizing with $\text{sopfr-C}()$ works because we have a proof that if sopfr-S-weight damage is minimized, then so too is prod-S-weight damage. What follows is an adaptation of the proof found here BOP tuning#Proof of Benedetti optimality on all rationals.

By the dual norm inequality, we have:

$\dfrac{|𝒓\textbf{i}|}{‖\text{diag}(𝒑)\textbf{i}‖_1} \leq ‖𝒓\text{diag}(𝒑)^{-1}‖_∞$

This numerator on the left is the absolute error of an arbitrary interval $\textbf{i}$ according to some temperament's retuning map $𝒓$. And the denominator on the left is equivalent to the sopfr complexity. Dividing by complexity is the same as multiplying by simplicity. And so the entire left-hand side is the sopfr-S-weight damage to an arbitrary interval. We can therefore minimize the damage to all such intervals by minimizing the right-hand side, since that's the direction the inequality points. And minimizing the right-hand side is easier. This much should all be review if you've gone through the all-interval tuning schemes article; we're just taking the same concept that we taught with the log-product complexity, but here doing it with sopfr-complexity.

We said the denominator on the left half is $\text{sopfr-C}(\textbf{i})$. Let's actually substitute that in, for improved clarity in upcoming steps.

$\dfrac{|𝒓\textbf{i}|}{\text{sopfr-C}(\textbf{i})} \leq ‖𝒓\text{diag}(𝒑)^{-1}‖_∞$

Our goal is to show that prod-S-weight damage across all intervals is also minimized by minimizing the right-hand side of this inequality:

$\dfrac{|𝒓\textbf{i}|}{\text{prod-C}(\textbf{i})} \leq ‖𝒓\text{diag}(𝒑)^{-1}‖_∞$

Now that's not so easy. But what we can do instead is show that this damage is less or equal to the left-hand side of the original inequality. Another level of minimization down:

$\dfrac{|𝒓\textbf{i}|}{\text{prod-C}(\textbf{i})} \leq \dfrac{|𝒓\textbf{i}|}{\text{sopfr-C}(\textbf{i})} \leq ‖𝒓\text{diag}(𝒑)^{-1}‖_∞$

We can just take the first chunk of that and eliminate the redundant numerators:

$\dfrac{\cancel{|𝒓\textbf{i}|}}{\text{prod-C}(\textbf{i})} \leq \dfrac{\cancel{|𝒓\textbf{i}|}}{\text{sopfr-C}(\textbf{i})}$

And then reciprocate both sides (which flips the direction of the inequality symbol):

$\text{prod-C}(\textbf{i}) \geq \text{sopfr-C}(\textbf{i})$

So we now just have to prove that the product complexity of any given interval will always be greater or equal than its sopfr complexity. And if we do this, we will have proven that minimax-sopfr-S tuning is the same as minimax-prod-S tuning. So let's consider an exhaustive set of two cases: either $\textbf{i}$ is prime, or it is not prime.

1. If $\textbf{i}$ is prime, then $\text{prod-C}(\textbf{i}) = \text{sopfr-C}(\textbf{i})$. This is because with only a single prime factor, the trivial product of it with nothing else, and the trivial sum of it with nothing else, will give the same result.
2. If $\textbf{i}$ is not prime, then we have a single case where $\text{prod-C}(\textbf{i}) = \text{sopfr-C}(\textbf{i})$, which is $\frac41$ because 2×2 = 2+2, but in every other case we find $\text{prod-C}(\textbf{i}) \gt \text{sopfr-C}(\textbf{i})$

And so since

$\text{prod-C}(\textbf{i}) \geq \text{sopfr-C}(\textbf{i})$

implies $\dfrac{|𝒓\textbf{i}|}{\text{prod-C}(\textbf{i})} \leq \dfrac{|𝒓\textbf{i}|}{\text{sopfr-C}(\textbf{i})}$

and

$\dfrac{|𝒓\textbf{i}|}{\text{sopfr-C}(\textbf{i})} \leq ‖𝒓\text{diag}(𝒑)^{-1}‖_∞$

therefore

$\dfrac{|𝒓\textbf{i}|}{\text{prod-C}(\textbf{i})} \leq ‖𝒓\text{diag}(𝒑)^{-1}‖_∞$

Done.

## Euclideanized sum-of-prime-factors-with-repetition

Not much to see here; only Euclideanized $\text{sopfr-C}()$, which is to say:

\begin{align} \text{sopfr-C} &= ‖\text{diag}(𝒑)\textbf{i}‖_{\color{red}1} \\ {\color{red}\text{E-}}\text{sopfr-C} &= ‖\text{diag}(𝒑)\textbf{i}‖_{\color{red}2} \\ \end{align}

### Tunings used in

As one should expect, $\text{E-sopfr-C}()$ is used in the minimax-E-sopfr-S tuning scheme, historically known as "BE", where the 'B' is for "Benedetti" as in the Benedetti height as in the product complexity (which has that special relationship with the sum-of-prime-factors-with-repetition complexity), and the 'E' is as in "Euclidean".

## Count-of-prime-factors-with-repetition

The count of prime factors with repetition function is closely related to the sum of prime factors with repetition function, as one might expect considering how their names are off by just this one word. The only difference is that where in $\text{sopfr}()$ we sum each prime factor, we can think of $\text{copfr}()$ as doing the same thing except replacing each prime factor — regardless of its size — with the number $1$.

### Tunings used in

The count of prime factors with repetition has not actually been used in a tuning scheme before to our knowledge. However, we've included it here on the possibility that it might be, but mostly for parallelism with the other pairs of taxicab and Euclideanized versions of the otherwise same complexity function, due to the fact that the Euclideanized version of $\text{copfr-C}()$ has seen use.

If this minimax-copfr-S tuning were to be used, a noteworthy property it has is that whenever a temperament has only one comma (i.e. is nullity-1) every prime receives an equal amount of absolute error in cents. Compare this with the effect we see for minimax-S tuning as observed by Paul Erlich in his Middle Path paper: Dave Keenan & Douglas Blumeyer's guide to RTT: all-interval tuning schemes#Bonus trick: Paul's method for nullity-1 minimax-S.

## Euclideanized count-of-prime-factors-with-repetition

In terms of its formulas, $\text{E-copfr-C}()$ is fairly straightforward: it's just the $\text{copfr-C}()$ but with the powers and roots changed from 1 to 2, so said another way, it's the (un-pretransformed) $2$-norm:

\small \begin{align} \text{E-copfr-C}(\textbf{i}) &= ‖\textbf{i}‖_2 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\mathrm{i}_n|^2} \\ \small &= \sqrt{\strut |\mathrm{i}_1|^2 + |\mathrm{i}_2|^2 + \ldots + |\mathrm{i}_d|^2} \\ \small &= \sqrt{\strut \mathrm{i}_1^2 + \mathrm{i}_2^2 + \ldots + \mathrm{i}_d^2} \\ \end{align}

Thinking about how this actually ranks intervals, it should become clear soon enough that this is complete garbage as a complexity function. It treats all prime numbers as having equal complexity — the lowest complexity possible — and it treats powers of 2 as the most complex numbers in their vicinity. e.g. It considers 8 to be more complex than 9, 10, 11, 12, 13, 14 and 15. So it's a far cry from monotonicity over the integers, i.e. any higher integer is more complex than the previous one.

### Tunings used in

How, you might ask, did such a ridiculously-named complexity function, that completely flattens the influence of the different prime factors, and suffers the tuning shortcomings of any Euclideanized tuning scheme of measuring harmonic distance through the non-real diagonal space of the lattice, come to be used as an error weight in tuning schemes? The answer is: because of the pseudoinverse. It happens to be the case that when the pseudoinverse of the temperament mapping is taken to be the generator embedding, this is equivalent to having optimized for minimizing the $\text{E-copfr-S}()$-weight (note the 'S' for simplicity) damage across all intervals — no target list, no prescaling, no nothing. Why exactly this works out like this is a topic for the later section where we work through the computations of this tuning. For now we will simply note that the historical name of this tuning scheme is "Frobenius", on account of the fact that it also minimizes the Frobenius norm (a matrix norm that generalizes the $2$-norm we use for vectors) of the projection matrix, while in our systematic name this is simply the minimax-E-copfr-S tuning scheme. And we'll say that while this pseudoinverse method is basically the easiest possible method for "optimizing" a tuning that could possibly exist, and was fascinating upon its initial discovery, it does come with the tradeoff of probably not being worth doing in the first place — the ultimate example of streetlight effect in RTT — especially in a modern environment where many tools are available for automatically computing better tunings just as quickly and easily, from the average musician's perspective.

Also of note, this all-interval tuning scheme minimax-E-copfr-S is equivalent to an ordinary tuning that would be called, in our system, "primes miniRMS-U", even though these have different target interval sets ("all" versus "primes"), optimization powers ($∞$ versus $2$), and damage weight (copfr-S versus unity). The reason being that with minimax-E-copfr-S, we're just minimizing $‖𝒓X^{-1}‖_2$ where $X^{-1} = I$ and $𝒓 = 𝒈M - 𝒋$, and with primes miniRMS-U we're minimizing ${\large ⟪}|𝒈M - 𝒋|\mathrm{T}W{\large ⟫}_2$ where both $\mathrm{T} = I$ on account of "primes" and $W = I$ on account of the unity-weight. And it doesn't matter whether we compute the minimum of a power norm $‖·‖_q$ or a power mean ${\large ⟪}·{\large ⟫}_p$; we'll find the same tuning either way. Put another way, with either scheme, we find the optimal tuning as the pseudoinverse of $M$.

A similar equivalence is found between the minimax-copfr-S tuning scheme and the primes minimax-U tuning scheme; the only difference here is that the optimization power of the latter is $∞$ which matches with the dual norm power of copfr. And a similar equivalence would also be found between the minimax-M-copfr-S tuning scheme (the "maxized" variant) and the primes-minisum-U tuning scheme, if anyone used maxized variants of complexities.

## Log-integer-limit-squared

Before looking at the log-integer-limit-squared complexity, let's first cover the plain integer-limit-squared complexity. Actually, let's just look at the integer limit function. Called on an integer, it would return the integer itself. Called on a rational, well, now we have two integers to look at, so it's going to give us whichever one of the two is greater.

$\text{il}(\frac{n}{d}) = \max(n, d)$

And in the context of RTT tuning, where tuning a subunison interval is equivalent to tuning its superunison equivalent, we typically normalize to all superunisons, i.e. intervals where the numerator is greater than the denominator, so the integer limit typically means simply to return the numerator and throw away the denominator:

assuming $\; n \gt d, \quad \text{il}(\frac{n}{d}) = n$

The integer-limit-squared, then, is typically just the numerator squared. It's as if instead of dropping the denominator, we replaced it with a copy of the numerator.

$\text{assuming} \; n \gt d, \quad \text{ils}(\frac{n}{d}) = n×n = n^2$

And the log integer limit, then, is just the logarithm of the above:

${\color{red}\text{l}}\text{ils-C}(\frac{n}{d}) = {\color{red}\log_2(}(\max(n, d))^2{\color{red})}$

Owing to the base-2 logarithmic nature of octave-equivalence in human pitch perception, we tend to go with 2 as our logarithm base, as we've done here.

### Why squared?

Why use log-integer-limit-squared rather than simply log-integer-limit? The main reason is: for important use cases of tuning schemes based on this complexity, it simplifies formulas. In short, squaring it here actually eliminates annoying factors of $\frac12$ elsewhere.

There's also an argument that this makes it more nearly equivalent to log-product complexity in concept, as they now are both the log of the product of two 'ators; in the log-product case, it's a numerator and denominator, while in the log-integer-limit-squared case, it's two numerators.

Note that the log of anything squared is the same as two times the log of the original thing. So $\log((\max(n,d))^2) = 2×\log(\max(n,d))$.

Also note that "log-integer-limit-squared" tuning is parsed as "log-" of "integer-limit-squared", not as "log-integer-limit" then "squared."

### Normifying: The canceling-out machine

As we've seen many times by now, in order to use this complexity in an all-interval tuning, we need to get it into the form of a norm, so that we can minimize its dual norm. So, how to normify this formula that involves the taking of a maximum value? At first, this may not seem possible. However, theoreticians have developed a clever trick for this. Now this is only the first step to normifying this function;  as we will see in a moment, it is indeed still quotient-based. However, we'll also find that this quotient-based formula — since it has gotten rid of the $\max()$ function which we didn't know how to normify — will eventually be normifiable. Check it out:

$\text{lils-C}(\dfrac{n}{d}) = \log_2{\!nd} + |\log_2{\!\frac{n}{d}}|$

It turns out that the log of the max of the numerator and denominator is always equivalent to the log of their product plus the absolute value of the log of their quotient. On first appearances, this transformation may be completely opaque. To understand how this trick works, let's take a look at the simplest possible version of it, and then adapt that back into our particular use case.

So here's the purest distillation of the idea: $2×\max(a, b) = a + b + |a - b|$. The key thing is to notice what happens with the absolute value bars. Think about it this way: to extract the maximum value between $a$ and $b$, we need some way to throw away the smaller of the two values completely, while retaining the greater of the two values exactly as it came in. So, we cleverly leverage the absolute value bars here as a sort of canceling-out machine.

We can prove that trick works by exhaustively checking all three of the possible cases:

• $a \gt b$
• $a \lt b$
• $a = b$

First, let's check $a \gt b$. In this case, $|a - b| = a - b$, which is to say that we can simply drop the absolute value bars, because we know that the value inside of them is positive. That gives us:

\begin{align} \text{if} \; a \gt b, 2×\max(a, b) &= a + b + |a - b| \\ &= a + b + {\color{red}(a - b)} \\ &= a \cancel{+ b} + a \cancel{- b} \\ &= a + a \\ &= 2a \end{align}

And when $a \lt b$, then $|a - b| = b - a$. It's always going to be the big one minus the small one. So that gives us:

\begin{align} \text{if} \; a \lt b, 2×\max(a, b) &= a + b + |a - b| \\ &= a + b + {\color{red}(b - a)} \\ &= \cancel{a} + b + b \cancel{- a} \\ &= b + b \\ &= 2b \end{align}

Voilà. We've achieved our canceling-out machine. We can also notice that as a side-effect of the canceling-out machine we not only preserve the greater of $a$ and $b$, but create an extra copy of it. So that's the reason for the factor of $2$: to deal with that side-effect. (Alternatively, we could have looked at the $\max(a, b)$ and kept a factor of $\frac12$ on the right side of the equality.)

But just to be careful, let's also check the edge case of $a = b$. Here, the stuff inside the absolute value bars goes to zero, and we can substitute $a$ for $b$ (or vice versa), so we get:

\begin{align} \text{if} \; a = b, 2×\max(a, b) &= a + b + |a - b| \\ &= a + {\color{red}a} + {\color{red}(0)} \\ &= a + a \\ &= 2a \end{align}

Okay, now that we've proved that $2×\max(a, b) = a + b + |a - b|$ we substitute $\log_2{\!n}$ for $a$ and $\log_2{\!d}$ for $b$ to obtain:

$2×\max(\log_2{\!n}, \log_2{\!d}) = \log_2{\!n} + \log_2{\!d} + | \log_2{n} - \log_2{d} |$

First notice that the ordering of two numbers is not changed by taking their logarithm. We say that the logarithm function is monotonic. Then recall the logarithmic identities $\log{ab} = \log{a} + \log{b}$, and $\log{\frac{a}{b}} = \log{a} - \log{b}$.

$\begin{array} {c} & 2×\max(\log_2{\!n}, \log_2{\!d}) & = & \log_2{\!n} + \log_2{\!d} & + & | & \log_2{n} - \log_2{d}& | \\ & ↓ & & ↓ & & & ↓ \\ \text{lils-C}(\dfrac{n}{d}) = & \log_2(\max(n, d)^2) & = & \log_2{\!nd} & + & | & \log_2{\!\frac{n}{d}} & | \\ \end{array}$

### Normifying: complexity and size

Alright. So with the above, even though its argument is still in quotient form, we've taken one step towards normification by removing the un-normifiable element of the $\max()$ function.

We'll take this next step in two parts. Let's first focus in on the first term:

$\log_2{\!nd}$

Notice something about this? It's identical to log-product complexity, $\text{lp-C}(\frac{n}{d})$. Very cool, if you weren't expecting to find something so familiar in here.

And as for the second term:

$|\log_2{\!\frac{n}{d}}|$

This too has a straightforward interpretation: it is the size of the interval $\frac{n}{d}$ in logarithmic pitch (specifically, on account of the base-2 of this logarithm, in octaves), which we might at least for this isolated context denote as $\text{size}(\frac{n}{d})$.

Putting these two insights together, we find that the log-integer-limit-squared complexity may be described as the sum of the interval's log-product complexity and size in octaves:

$\text{lils-C}(\dfrac{n}{d}) = \text{lp-C}(\frac{n}{d}) + \text{size}(\frac{n}{d})$

And so, we can describe log-integer-limit-squared complexity in comparison with log-product complexity: it's the same thing, except that it also accounts for the size of the interval. As a tuning theorist, this an exciting idea, and may make one wonder how anyone was okay before with discarding that information, which certainly seems relevant enough to determining the musical importance of JI intervals. But don't get too excited too quickly, because there are tradeoffs.

We can see how $\text{lp-C}()$ throws away the size-related information in how it treats the numinator and diminuator indiscriminately. (Apologies for the neologisms, but we find them helpful enough to be worth the offense in this case; hopefully it is apparent enough that the "numinator" is the greater of the numerator and denominator, referencing the word "numinous", while the "diminuator" is the lesser of those two, referencing the word "diminutive".) This can be seen in how both $\frac61$ and $\frac32$ have the same log-product complexity of $\log_2{\!6}$, with $\text{lp-C}()$ paying no heed to the fact that $\frac61$ is a larger interval.

On the other hand, $\text{lils-C}()$ records this size-related information, with $\frac61$ having complexity of $\log_2{\!6}$ while $\frac32$ only has complexity of $\log_2{\!3}$. However, there's something that $\text{lp-C}()$ makes use of that $\text{lils-C}()$ does not use at all: the diminuator. Notice how it doesn't matter to $\text{lils-C}()$ what value we insert in the diminuator, so long as it remains the diminuator, i.e. smaller than the numinator; sure, $\frac61$ has complexity of $\log_2{6}$, but so does $\frac65$, which many tuning theorists are sure to balk at.

Mike Battaglia has proposed a continuum of complexity functions that exist in the space between the these two extreme poles of log-product $\text{lp-C}()$ and log-integer-limit-squared $\text{lils-C}()$ complexity. We will discuss these in more detail below, in the #Hybrids between integer-limit-squared and product complexity section.

### Normifying: flattened absolute value sums

Alright, well that was some interesting insight into the motivation behind using this complexity for tuning, but we're still not to a normified form!

1. In our first pass at normification, we managed to convert the obvious quotient form of $\text{lils-C}()$ into a form that didn't use the mathematical $\max()$ function, instead only using operations which we know better how to work with.
2. In our second pass at normification, we merely made the observation that this new form of the formula is akin to asking for the average of the interval's complexity and size, for a particular definition of complexity, anyway, that being the log-product complexity.
3. In our third pass at normification here, then, we will show how to leverage this knowledge about complexity and size to attain norm form.

The first step here is to recognize how close we already are. We've identified the first of our two main terms, the one representing complexity, as exactly equivalent to the log-product complexity, $\text{lp-C}()$. And notably, we already know the norm form for that: $‖L\textbf{i}‖_1$. So we're already about halfway there. Nice.

But what about the other term, the one representing size? Can this be represented as a norm? Well, the short answer is: no, not directly. To understand why, it may be helpful to remind ourselves of the summation form of $\text{lp-C}(\textbf{i}) = ‖L\textbf{i}‖_1$:

$\text{lp-C}(\frac{n}{d}) = \log_2{\!nd} = \sum\limits_{n=1}^d {\color{red}|}\log_2{\!p_n} · \mathrm{i}_n{\color{red}|}$

Note in particular the presence of the absolute value bars, highlighted in red. This is exactly what caused the denominator $d$ of the argument to no longer divide the numerator $n$, but to multiply it in the $\log_2{\!nd}$ form. So if we hadn't done that, we'd instead have the summation that appears inside the absolute value bars of the size formula:

$\text{size}(\frac{n}{d}) = |\log_2{\!\frac{n}{d}}| = |\sum\limits_{n=1}^d {\color{red}(}\log_2{\!p_n} · \mathrm{i}_n{\color{red})}|$

The summation here is identical, except that it now lacks the absolute value bars, i.e the ones around each term; we've replaced them here with simple parentheses (of course we can still see some absolute value bars here, but these are different; these are taken of the resultant value of the summation itself in the end, and come from the size formula that uses this summation). In other words, we have this vector $\textbf{i}$ which is the vector-based form of the ratio $\frac{n}{d}$, and it may have some negative entries — for example $\frac54$ = [-2 0 1 — and those negative entries correspond to the prime factors that appear in the denominator. When we absolute value them, it's the same thing as moving them all into the numerator instead, or in other words, changing $\frac{n}{d}$ into $nd$, or in our example, changing $\frac54$ = [-2 0 1 into $\frac{20}{1}$ = [2 0 1.

So what's the problem, then? The problem is that the definition of a norm includes taking the absolute value of each entry of the vector. So we can't change the $\text{size}()$ itself into a power norm if it does not take the absolute value of each of its entries. We can at least turn it into a power sum, however, and represent it using our double-zigzag-bracket notation: $\llzigzag L\mathbf{i} \rrzigzag _1$.

So, for now, we're stuck with this:

$\begin{array} {c} \text{lils-C}(\frac{n}{d}) & = & \log_2{\!nd} & + & | & \log_2{\!\frac{n}{d}} & | \\ & & ↓ & & & ↓ \\ & = & \sum\limits_{n=1}^d |\log_2{\!p_n} · \mathrm{i}_n| & + & {\large|} & \sum\limits_{n=1}^d (\log_2{\!p_n} · \mathrm{i}_n) & {\large|}\\ & & ↓ & & & ↓ \\ & = & ‖L\textbf{i}‖_1 & + & | & \llzigzag L\mathbf{i} \rrzigzag _1 & | \end{array}$

However, there is still a way forward. It's perhaps easiest to see if we get the vector-based form of the complexity into its most fundamental form: no norms, no summations, just expand every term all the way out. So the expanded form of $‖L\textbf{i}‖_1$ is:

$|\log_2{\!p_1} · \mathrm{i}_1| + |\log_2{\!p_2} · \mathrm{i}_2| + \ldots + |\log_2{\!p_d} · \mathrm{i}_d|$

When we use this instead in our formula for $\text{lils-C}()$, we can attain a new insight, as hinted at through the red highlights below:

$\text{lils-C}(\frac{n}{d}) = {\color{red}|}\log_2{\!p_1} · \mathrm{i}_1{\color{red}| + |}\log_2{\!p_2} · \mathrm{i}_2{\color{red}| \; + \;} \ldots {\color{red}\; + \; |}\log_2{\!p_d} · \mathrm{i}_d{\color{red}| + |} \llzigzag L\mathbf{i} \rrzigzag _1{\color{red}|}$

Notice how in a way we've flattened things out now. The final term, the one which represents the size of the interval, is just one more item which is an absolute value of something and which is tacked on to a list of things being added together. Therefore, we can reinterpret this formula as if the whole thing is one big $1$-norm, of a vector which is just like $\textbf{i}$ except that it also includes one extra entry at the end, whose value is this interval's own size!

We could write this vector using block matrix notation, or in other words, as an augmented vector, like so:

$\left[ \begin{array} {l|l} L\textbf{i} & \llzigzag L\mathbf{i} \rrzigzag _1 \end{array} \right]$

And so here's the entire norm again, so we can see that we have a power sum nested inside the power norm:

$\text{lils-C}(\textbf{i}) = ‖ \; [ \; L\textbf{i} \; | \; \llzigzag L\textbf{i} \rrzigzag _1 \; ] \; ‖_1$

We certainly acknowledge that this is can be pretty confusing: how we can look at this complexity as a pair of very similar looking summations:

$\text{lils-C}(\textbf{i}) = \sum\limits_{n=1}^d|\log_2{\!p_n} · \mathrm{i}_n| + {\large|}\sum\limits_{n=1}^d(\log_2{\!p_n} · \mathrm{i}_n){\large|}$

And yet when we convert this into the form of a norm, it is not the case that each of these two summations converts into its own norm, but rather the case that the second summation becomes nothing but an extra entry in the vector that the norm form of the first summation is called on. But that's just how it is! Who knows how they came up with this stuff.

### Normifying: example

This is fairly tricky, so we'll supplement with an example. Suppose the interval in question is $\frac{10}{9}$, which as a vector is $\textbf{i}$ = [1 -2 1. Then we have:

$\begin{array} {c} \text{lils-C}([ \; \textbf{i} \; | \; \text{size}(\textbf{i}) \; ]) & = & |\log_2{\!2} · 1| & + & |\log_2{\!3} · {-2}| & + & |\log_2{\!5} · 1| & + & |(\log_2{\!2} · 1) + (\log_2{\!3} · {-2}) + (\log_2{\!5} · 1)| & ) \\ & \approx & |1| & + & |{-3.170}| & + & |2.322| & + & |1 + {-3.170} + 2.322| \\ & = & 1 & + & 3.170 & + & 2.322 & + & 0.152 \\ \end{array}$

Which equals $6.644$, which is good, because that's $\approx \log_2{10·10}$, which is the log of the numinator of $\frac{10}{9}$, squared.

You'll notice that in the final term, we see all the same values repeated: the 1, the -3.170, and the 2.322. It's just that here we could informally say that we let each of these values "duke it out", i.e. that we let the negative ones be negative so they counteract each other. Whereas outside this final term, each of the values gets to be positive and express itself. So the inside is the actual size of the interval irrespective of its complexity, and the outside is the complexity of that interval irrespective of its size (all sizes in octaves here, not cents as we typically work with). And then we just add it all up and done.

### Normifying: size-sensitizing matrix

While this augmented vector situation works, it's quite tough to read and work with. It would be nice if we had a simpler way to present the same information. Fortunately, we're in luck! There is. For the next step, we will show how the same effect of including the size of an interval as an extra entry at the end can be achieved by introducing a new transformation matrix, the size-sensitizing matrix, $Z$. Here's a 5-limit example:

$\begin{array} {c} Z \\ \left[ \begin{array} {r} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \hline 1 & 1 & 1 \\ \end{array} \right] \end{array}$

In action, this lets us rewrite:

$\text{lils-C}(\textbf{i}) = ‖ \; [ \; L\textbf{i} \; | \; \llzigzag L\textbf{i} \rrzigzag _1 \; ] \; ‖_1$

as

$\text{lils-C}(\textbf{i}) = ‖ ZL\textbf{i} ‖_1$

Excellent! That's a big win. At last we have lils-C as a pretransformed norm, like every other complexity we've seen. Why don't we convince ourselves this works by rerunning it on the example we just tried above, with $\frac{10}{9}$:

$\text{lils-C}(\textbf{i}) = {\Huge‖} \begin{array} {c} Z \\ \left[ \begin{array} {r} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \hline 1 & 1 & 1 \\ \end{array} \right] \end{array} \begin{array} {c} L \\ \left[ \begin{array} {r} \log_2{2} & 0 & 0 \\ 0 & \log_2{3} & 0 \\ 0 & 0 & \log_2{5} \\ \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {r} 1 \\ {-2} \\ 1 \\ \end{array} \right] \end{array} {\Huge‖}_1$

Let's actually work through this two different ways. First, we'll do it the way of multiplying $L$ and $\textbf{i}$ together first, and seeing how $Z$ affects that; second, we'll do it the way of multiplying $Z$ and $L$ together first, and seeing how that affects $\textbf{i}$.

\begin{align} \text{lils-C}(\textbf{i}) &= {\Huge‖} \begin{array} {c} Z \\ \left[ \begin{array} {c} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \hline 1 & 1 & 1 \\ \end{array} \right] \end{array} \begin{array} {c} L\textbf{i} \\ \left[ \begin{array} {c} \log_2{2} \\ {-2}\log_2{3} \\ \log_2{5} \\ \end{array} \right] \end{array} {\Huge‖}_1 \\ &= {\Huge‖} \begin{array} {c} ZL\textbf{i} \\ \left[ \begin{array} {c} \log_2{2} & + & 0 & + & 0 \\ 0 & + & {-2}\log_2{3} & + & 0 \\ 0 & + & 0 & + & \log_2{5} \\ \hline \log_2{2} & + & {-2}\log_2{3} & + & \log_2{5} \\ \end{array} \right] \end{array} {\Huge‖}_1 \\ &= {\Huge‖} \begin{array} {c} ZL\textbf{i} \\ \left[ \begin{array} {c} \log_2{2} \\ {-2}\log_2{3} \\ \log_2{5} \\ \hline \log_2{2} + {-2}\log_2{3} + \log_2{5} \\ \end{array} \right] \end{array} {\Huge‖}_1 \\ &= |\log_2{2}| + |{-2}\log_2{3}| + |\log_2{5}| + |\log_2{2} + {-2}\log_2{3} + \log_2{5}| \\ &= \log_2{2} + \cancel{2\log_2{3}} + \log_2{5} + \log_2{2} + \cancel{{-2}\log_2{3}} + \log_2{5} \\ &= 2\log_2{2} + 2\log_2{5} \\ &= 2\log_2{10} \\ &= \log_2{10^2} \end{align}

Which is good, because that matches what we found previously, and what we expected: the log of the numerator of $\frac{10}{9}$, squared.

Doing it the other way we see:

$\text{lils-C}(\textbf{i}) = ‖ \begin{array} {c} ZL \\ \left[ \begin{array} {r} \log_2{2} & 0 & 0 \\ 0 & \log_2{3} & 0 \\ 0 & 0 & \log_2{5} \\ \hline \log_2{2} & \log_2{3} & \log_2{5} \\ \end{array} \right] \end{array} \begin{array} {c} \textbf{i} \\ \left[ \begin{array} {r} 1 \\ {-2} \\ 1 \\ \end{array} \right] \end{array} ‖_1$

So we can say that the complexity pretransformer for the log-integer-limit $X = ZL$, where the above is an example for the 5-limit. (From this point onward, the computation is the same as before).

### Tunings used in

The log-integer-limit-squared complexity is used in the minimax-lils-S tuning scheme, which historically has been called "Weil", for André Weil, the de facto early leader of the mathematical Bourbaki group, on account of "Weil height" being another name for "integer limit". This comes to us from Gene Ward Smith, who himself acknowledges the ambiguity in this name between its ordinary and logarithmic forms. We really don't understand how these sorts of obscurings of otherwise straightforward ideas seem to take root so easily in RTT. As a mnemonic to remember that Weil height gives you the (log/not-log) integer limit AKA max of numerator and denominator, you can recall that Maxwell is a real given name, which associates "max" with "well" and "well" is close to "Weil". But how much easier it is, to remember that "lil" stands for "log integer limit". Encode, don't encrypt.

Note that Weil tuning is thought of as being computed with the "Weil height", which is the same as log-integer-limit complexity, not log-integer-limit-squared complexity. These give the same tuning. We prefer squaring because it makes the computation in certain key circumstances easier.

## Euclideanized log-integer-limit-squared

There's not much to see here. As with other Euclideanized complexities, we have no quotient form for $\text{E-lils-C}()$, and the vector (norm) form is simply the normal (taxicab) form but with the power and root of 1 swapped for 2:

\begin{align} \text{lils-C}(\textbf{i}) &= ‖ \; [ \; L\textbf{i} \; | \; \llzigzag L\textbf{i} \rrzigzag _1 \; ] \; ‖_1 = ‖ \; ZL\textbf{i}\; ‖_1 \\ {\color{red}\text{E-}}\text{lils-C}(\textbf{i}) &= ‖ \; [ \; L\textbf{i} \; | \; \llzigzag L\textbf{i} \rrzigzag _1 \; ] \; ‖_{\color{red}2} = ‖ \; ZL\textbf{i}\; ‖_{\color{red}2} \end{align}

### Example wonky result

To illustrate some of the wonkiness we can expect with $\text{E-lils-C}()$, we note that it ranks $\frac{5}{3}$ as less complex than $\frac{5}{1}$. Remember that integer-limit-based complexities watch for product-type complexity but also watch for the size of the interval, so we can say that in this case, the size difference between $\frac{5}{1}$ and $\frac{5}{3}$ was considered more important than the different in their product complexities, so that $\frac{5}{1}$ comes out as more complex.

So we have:

$\text{E-lils-C}(\textbf{i}) = ‖ \; [ \; L\textbf{i} \; {\large|} \; \text{size}(L\textbf{i}) \; ⟩ \; ‖_2$

Let's compute the size part first, for our first interval, $\frac{5}{1}$, which is [0 0 1 as a vector:

\begin{align} \text{size}(L [ \; 0 \; 0 \; 1 \; ⟩) &= \llzigzag L [ \; 0 \; 0 \; 1 \; ⟩ \rrzigzag _1 \\ &\approx \llzigzag [ \; 0 \;\;\; 0 \;\;\; 2.322 \; ⟩ \rrzigzag _1 \\ &= 0 + 0 + 2.322 \\ &= 2.322 \end{align}

So we can use that in the below:

\begin{align} \text{E-lils-C}( [ \; 0 \; 0 \; 1 \; ⟩ ) &= ‖ \; [ \; L [ \; 0 \; 0 \; 1 \; ⟩ \; {\large|} \; \text{size}(L [ \; 0 \; 0 \; 1 \; ⟩) \; ⟩ \; ‖_2 \\ &\approx ‖ \; [ \; 0 \;\;\; 0 \;\;\; 2.322 \;\;\; | \;\;\; 2.322 \; ⟩ \; ‖_2 \\ &= \sqrt{\strut 0^2 + 0^2 + 2.322^2 + 2.322^2} \\ &\approx \sqrt{\strut 0 + 0 + 5.391 + 5.391} \\ &= \sqrt{\strut 10.782} \\ &\approx 3.284 \\ \end{align}

And compare with the result for $\frac{5}{3}$, which is [0 -1 1 as a vector. First, its size:

\begin{align} \text{size}(L [ \; 0 \; {-1} \; 1 \; ⟩) &= \llzigzag L [ \; 0 \; {-1} \; 1 \; ⟩ \rrzigzag _1 \\ &\approx \llzigzag [ \; 0 \;\;\; {-1.585} \;\;\; 2.322 \; ⟩ \rrzigzag _1 \\ &= 0 + {-1.585} + 2.322 \\ &= 0.737 \end{align}

And now the rest:

\begin{align} \text{E-lils-C}( [ \; 0 \; {-1} \; 1 \; ⟩ ) &= ‖ \; [ \; L [ \; 0 \; 0 \; 1 \; ⟩ \; {\large|} \; \text{size}(L [ \; 0 \; {-1} \; 1 \; ⟩) \; ⟩ \; ‖_2 \\ &\approx ‖ \; [ \; 0 \;\;\; {-1.585} \;\;\; 2.322 \;\;\; | \;\;\; 0.737 \; ⟩ \; ‖_2 \\ &= \sqrt{\strut 0^2 + {-1.585}^2 + 2.322^2 + 0.737^2} \\ &\approx \sqrt{\strut 0 + 2.512 + 5.391 + 0.543} \\ &= \sqrt{\strut 8.446} \\ &\approx 2.906 \\ \end{align}

And so the Euclideanized-log-integer-limit squared complexity of $\frac{5}{3}$ is indeed slightly less than that of $\frac{5}{1}$.

### Tunings used in

The $\text{E-lils-C}()$ is used for simplicity-weight damage in the minimax-E-lils-S tuning scheme, known elsewhere as "Weil-Euclidean".

## Log-odd-limit-squared

Out of all the other complexity functions under consideration in this article, the log-odd-limit-squared complexity $\text{lols-C}()$ is most similar to the log-integer-limit-squared complexity $\text{lils-C}()$, and not only in name. The formula for it is exactly the same, with the one key difference being that all factors of 2 are removed from the interval as an initial step. So if both $n$ and $d$ already happen to be odd, this gives the same complexity as the log-integer-limit-squared would.

(Switching to non-log for this paragraph to make a point efficiently that applies whether log or not.) When we ask for the integer limit of, say, $\frac{10}{3}$, we simply want the bigger of the numerator and denominator, which in this case is $10$. But for the odd limit, we'd first find the factors of 2 — there's exactly one of them, in the numerator — remove them, and then ask for the integer limit again. So we'd change $\frac{10}{3}$ into $\frac53$, then find the integer limit of that to be 5. Note that sometimes removing the factors of 2 will change which one of the 'ators is greatest; for example, the odd limit of $\frac{10}{9}$ is 9, owing to the fact that after removing the factors of 2 (again, just one of them, in the numerator) we're left with $\frac{5}{9}$, so now it's the denominator with the largest integer.

With its quotient-based form, this removing of prime 2's can perhaps most succinctly be achieved using the mathematical function $\text{rough}(n, k)$, which takes a number $n$ and makes it $k$-rough (yes, that's a technical term: rough number) by dividing out every prime factor less than $k$. That's why $k$ here is equal to 3, not 2, because you have to be 3-rough in order to contain no 2's:

\begin{align} \text{lils-C}(\dfrac{n}{d}) &= \log_2(\max(n, d)) \\ \text{lols-C}(\dfrac{n}{d}) &= \log_2(\max({\color{red}\text{rough}}(n, 3), {\color{red}\text{rough}}(d, 3))) \\ \end{align}

When we look at the vector-based forms, we just need to drop the first entry of the vector, assuming that is the entry which contains the count of prime 2's as is typical. Otherwise you can drop whichever entry contains prime 2, or if none of them do, then perhaps you should reconsider which complexity function you're using. Unfortunately there's not a particularly clean notation for a variation on a vector which has had its first (or some arbitrary) entry dropped. However, we do have a pretty clean way to express this in summation form. You just set the initial summation index to 2 instead of the typical 1, so you skip the 1st entry, 1st prime, etc.:

\begin{align} \text{E-l}{\color{red}\text{i}}\text{l-C}(\textbf{i}) &= \sqrt{ \sum\limits_{n={\color{red}1}}^d|\log_2{\!p_n} · \mathrm{i}_n|^2 + {\large|}\sum\limits_{n={\color{red}1}}^d(\log_2{\!p_n} · \mathrm{i}_n){\large|}^2 } \\ \small \text{E-l}{\color{red}\text{o}}\text{l-C}(\textbf{i}) &= \sqrt{ \sum\limits_{n={\color{red}2}}^d|\log_2{\!p_n} · \mathrm{i}_n|^2 + {\large|}\sum\limits_{n={\color{red}2}}^d(\log_2{\!p_n} · \mathrm{i}_n){\large|}^2 } \\ \small \end{align}

Because all we've done is deleted an entry from the vector, nothing has changed between $\text{lils-C}()$ and $\text{lols-C}()$ that would affect the elaborate process we followed to get it into the form of a norm. So that all works the same way here.

### Tunings used in

The log-odd limit is also known within the community as the "Kees height". This name comes from the tuning theorist Kees Van Prooijen, though the explanation for the attribution is not known to us. And so one could be forgiven for assuming that the tuning scheme which minimizes damage with weight based on Kees height across all intervals would have been called Kees tuning. Unfortunately, that is not the case!

Minimizing the Kees-simplicity-weight damage across all intervals turns out to be equivalent to minimizing the Weil-simplicity-weight damage across all intervals accompanied by an held-octave constraint. This equivalence is clearer when we use our systematic naming: minimizing the log-odd-limit-simplicity-weight damage across all intervals is equivalent to minimizing the log-integer-limit-simplicity-weight damage across all intervals with an held-octave constraint. And so the point is that this Kees-damage-minimizing tuning is not named for Kees, but is referred to with respect to the Weil tuning, that is, it is called the constrained-octave Weil tuning.

But then apparently the community ended up using the name "Kees" anyway, to refer to the destretched version of the log-integer-limit-squared tuning. In other words, the dumb way of achieving unchanged octaves. So it's an absolute worse-case scenario with the historical names, where the Kees tuning doesn't correspond with the Kees complexity, and what it does refer to is something dumb that probably shouldn't be given a second thought anyway.

Better to stick with our systematic naming where minimax-lols-S does what it says it does and minimax-lils-S does what it says it does.

If you want a mnemonic for when you see "Kees" used around town and can never remember what Kees is supposed to be known for, you can remember that "odd" has a double 'd', and "Kees" has a double 'e', so "Kees" is associated with odd-limit-squared complexity. But how much easier it is to remember that "lol" stands, not only for "laugh out loud", but also for "log odd limit".

## Euclideanized log-odd-limit-squared

By this point, there's little more that needs to be said. This is a Euclideanized version of the log-odd limit, so substitute 2's for 1's in the powers and roots. And log-odd-limit-squared is like log-integer-limit-squared but with the factors of 2 removed from the interval. So the Euclideanized log-odd-limit-squared complexity $\text{E-lols-C}()$ is twice removed from the log-integer-limit-squared complexity $\text{lils-C}()$.

### Tunings used in

The $\text{E-lols-C}()$ is used in minimax-E-lols-S tuning scheme. As with minimax-lols-S not being equivalent to Kees, this tuning is not equivalent to "Kees-Euclidean" (KE).

# Alternative norm powers

As we did in the conventions article table, we did not show any tuning schemes with norm power other than 1 or 2, i.e normal (taxicab) schemes or Euclideanized schemes, respectively. If we were to have shown any other norm power, it would be $∞$, for completeness, given that it is the dual power of $1$ and that set of three powers are the ones with special qualities that show up again and again. But we chose not to include it because it would take up so much space and for so little value, since no one actually uses tuning schemes that use those types of complexity. If you want to, it's not hard to name. Simply use 'M' for "maxize" in the same way we use 'E' for "Euclideanize". Why an uppercase 'M'? Because it's named after Max the magician, of course.

But some folks may want to use still other norm powers besides the three key powers of $∞$, $2$, and $1$. To name such tuning schemes where we don't have a letter to alias it, just use the number in the same position. So a tuning midway between minimax-(t)S and minimax-ES, or in other words minimax-1S and minimax-2S, would simply be minimax-1.5-S (hyphenation is up to you, but we feel once you've gone beyond a single character number, adding the hyphen makes it clearer). And this isn't just for all-interval tuning schemes; e.g. we could see something like the TILT miniRMS-5-copfr-C tuning scheme, where the RMS of 5-ized copfr-complexity-weight damage to the TILT is minimized..

We note that all-interval tuning schemes involve two norms each: the interval complexity norm that actually weights the absolute error to obtain the damage which we minimize over the intervals, and the retuning magnitude norm which is what we minimize in order to achieve the indirect minimaxing of said damage across all intervals, by leveraging the dual norm inequality. Which of these two norms do we name the tuning scheme after? As can be seen throughout this article, and centralized in the table later #Alternative complexity all-interval tuning scheme table, we choose the interval complexity norm, because the general idea with our tuning scheme systematic names is to describe what type of damage is minimized and how it is minimized, so explaining the complexity or simplicity weight of the damage is the more direct way to answer that, while the dual norm that's minimized on the retuning magnitude is little but an implementation detail that doesn't even necessarily need to be known about in order to understand the gist of the tunings the scheme produces. And for ordinary (non all-interval) tuning schemes there is no dual norm minimized on the retuning magnitude.

# Systematizing norms

Perhaps unsurprisingly, all of the complexity functions we investigate in this article for their value in tuning theory are related in a systematic way, and can be understood in terms of four complexity traits:

1. operation: is it a sum (arithmetic), or a product (geometric)
2. pretransformer: do we pretransform such that we count the primes, take their logs, or take them themselves
3. Euclideanize: do we change the norm power from $1$ to $2$
4. replace-diminuator: do we replace the smaller of the numerator and denominator with the larger of the two, or not

(We could choose to include an additional trait, odd, that would optionally drop all occurrences of prime 2. However, since the results of this complexity effect on tuning is achievable outside of complexity — via a held-octave constraint — we find it insufficiently valuable to warrant exploding our option set by another twofold here.)

With 2, 3, 2, and 2 possibilities for each of those traits, respectively, that's a total of 2×3×2×2 complexity functions. Except there are a few combinations of these which aren't productive:

• We can't Euclideanize product-type complexities, as they aren't expressible as norms in the first place.
• We can't use counts of primes with product-type complexities either, or at least, that will result in the complexity always coming out to 1 (because 1 times itself n times is still 1)

So, we actually only have 16 total complexities in this family. Of these, we've already discussed 10. And of those 6 remaining, 4 of them are of potential interest for tuning. We'll discuss those soon. But first, here's a table:

- replace-diminuator
sum prime \ norm power 1 2 prime \ norm power 1 2
count copfr E-copfr count double-copfr-limit double-E-copfr-limit
log lp E-lp log lils E-lils
itself sopfr E-sopfr itself double-sopfr-limit double-E-sopfr-limit
product prime \ norm power 1 2 prime \ norm power 1 2
count - - count - -
log prod-of-log - log prod-of-log-limit-squared -
itself prod - itself ils -

Every one of the 6 members of the top-left box is one of the 10 complexities we've talked about already: copfr, lp, sopfr, and the Euclideanized versions of each. Another 2 can be found in the bottom two boxes, one each: product complexity (prod), and integer-limit-squared complexity (ils). The remaining 2 can be found in the top-right box, along its middle row: log-integer-limit-squared and its Euclideanized version.

So of the 6 remaining, the 2 that are likely of no further interest are the other 2 in the lower boxes, i.e. the other two product-type complexities. These cannot be normified, being products, so they are already of no use as all-interval tunings. And the proof that lets us minimize the prod simplicity weight damage via the sopfr simplicity weight damage will not analogously hold for these complexities and their arithmetic equivalents, on account of the fact that some logs of primes are less than 2 (namely 2 and 3) and thus their products are actually less than their sums; so this is to say that we cannot proxy minimize them via their arithmetic analogs. And, they're just sort of strange; the "prod-of-log" complexity takes the product of the logs of the primes, such that the complexity of 9/5 would be $1.585 × 1.585 × 2.322 \approx 5.833$, which feels a bit like an abomination, a thing that should not be.

But let's take a moment to reflect on the other 4 remaining. Essentially what we've done with this "replace-diminuator" trait is generalized the "integer-limit-squared effect" whereby only the greater of the numerator and denominator is retained, with the lesser being replaced with a copy of the one retained. But there's no reason we can't apply this idea outside the context of product or log-product complexity. For example, the double-copfr-limit complexity of 9/5 would be 4, because we have 2 total primes in the numerator and only 1 total prime in the denominator so the greater of those 2 values, doubled, is our complexity.

Before proceeding, let's review the natures of the relationships between the complexities we already know about, though.

## Product-type complexities

Another way to look at the problem with product complexity, i.e how being a product rather than a sum, it has no norm form, is that all of the complexities that are useful for all-interval tunings are arithmetic, insofar as are calculated as sums. It's not just log-product complexity that is like this. copfr and sopfr are also like this. Sopfr has it in the name: it's a sum of prime factors. We could alternatively call log-product complexity the "solopfr" for "sum of logs of prime factors with repetition" to make this clearer, and copfr could be rephrased as "sum of 1s per each prime factor with repetition". So our arithmetic functions are cofpr, lp, sopfr, lil, and lol. Our geometric functions are prod, il, and ol.

Note that prod is not actually the direct geometrification of lp; it's actually the direct geometrification of sopfr. The direct geometrification of lp would be the function that found the products of the logs of the primes; the abomination mentioned a moment ago.

And you might think that since the $1$-norm of a log-prime-pretransformed vector is the same as $\log(n·d)$, that the $1$-norm of a prime-pretransformed vector would be the same as $n·d$ — not so; it's obvious what $n·d$ should be when you think about it in isolation; it's the product of the primes raised to the absolute values of the respective entries. If you just sum the primes' products with the absolute values of the respective entries, you get sopfr.

## Comparing sopfr-C, prod-C, and lp-C

$\text{sopfr-C}()$ bears a close similarity to product complexity $\text{prod-C}()$, as we can see through their summation and product forms. $\text{prod-C}()$ is the same thing as $\text{sopfr-C}()$ except that it multiplies rather than exponentiates, and sums rather than multiplies:

$\begin{array} {c} \text{sopfr-C}(\textbf{i}) & = & {\color{red}\sum\limits_{{\color{black}n=1}}^{{\color{black}d}}}(p_n {\color{red}·} |\mathrm{i}_n|) & = & (p_1 {\color{red}·} |\mathrm{i}_1|) & {\color{red}+} & (p_2 {\color{red}·} |\mathrm{i}_2|) & {\color{red}+} & \ldots & {\color{red}+} & (p_d {\color{red}·} |\mathrm{i}_d|) \\ \text{prod-C}(\textbf{i}) & = & {\color{red}\prod\limits_{{\color{black}n=1}}^{{\color{black}d}}}(p_n{\color{red}\text{^}}^{|\mathrm{i}_n|}) & = & (p_1{\color{red}\text{^}}^{|\mathrm{i}_1|}) & {\color{red}×} & (p_2{\color{red}\text{^}}^{|\mathrm{i}_2|}) & {\color{red}×} & \ldots & {\color{red}×} & (p_d{\color{red}\text{^}}^{|\mathrm{i}_d|}) \\ \end{array}$

$\text{sopfr-C}()$ also bears a close similarity to log product complexity $\text{lp-C}()$ (which we'll look at through their norm forms here), on account of the fact that the $L$ in $\text{lp-C}(\textbf{i}) = ‖L\textbf{i}‖_1$ can be replaced with $L = \text{diag}(\textbf{ℓ}) = \text{diag}(\log_2{\!𝒑})$, it's the same thing except that it pretransforms entries by the primes themselves, rather than their logs:

$\begin{array} {c} \text{sopfr-C}(\textbf{i}) & = & ‖\text{diag}({\color{red}𝒑})\textbf{i}‖_1 & = & ({\color{red}p_1} · |\mathrm{i}_1|) & + & ({\color{red}p_2} · |\mathrm{i}_2|) & + & \ldots & + & ({\color{red}p_d} · |\mathrm{i}_d|) \\ \text{lp-C}(\textbf{i}) & = & ‖\text{diag}({\color{red}\log_2{\!𝒑}})\textbf{i}‖_1 & = & ({\color{red}\log_2{\!p_1}} · |\mathrm{i}_1|) & + & ({\color{red}\log_2{\!p_2}} · |\mathrm{i}_2|) & + & \ldots & + & ({\color{red}\log_2{\!p_d}} · |\mathrm{i}_d|) \\ \end{array}$

## Comparing copfr and sopfr

In this way we could imagine $\text{sopfr}()$ as summing each prime factor raised to the $1$st power, while $\text{copfr}()$ sums each prime factor raised to the $0$th power:

$\text{copfr}(20) = \text{copfr}(2·2·5) = 2^{\color{red}0} + 2^{\color{red}0} + 5^{\color{red}0} = 1 + 1 + 1 = 3 \\ \text{sopfr}(20) = \text{sopfr}(2·2·5) = 2^{\color{red}1} + 2^{\color{red}1} + 5^{\color{red}1} = 2 + 2 + 5 = 9 \\$

Also like $\text{sopfr-C}()$, the $\text{copfr-C}()$ function can be expressed as the $\text{copfr}()$ of the numerator times the denominator, or as the sum of the $\text{copfr}()$ of them separately. $\text{lp-C}()$ follows this pattern too, with $\log_2()$ as its sub-function:

$\begin{array} {c} \text{copfr-C}(\frac{n}{d}) & = & \text{copfr}(nd) & = & \text{copfr}(n) & + & \text{copfr}(d) \\ \text{lp-C}(\frac{n}{d}) & = & \log_2(nd) & = & \log_2(n) & + & \log_2(d) \\ \text{sopfr-C}(\frac{n}{d}) & = & \text{sopfr}(nd) & = & \text{sopfr}(n) & + & \text{sopfr}(d) \\ \end{array}$

We placed the functions in that order — with $\text{lp-C}()$ in the middle — as preparation for the following observation, which is that these three functions set up a sort of progression in relative influence of the prime factors, from being flat, to being proportional to their size. That is, we could insert $\text{lp-c}()$ into the middle of the previous example as a sort of midway point between $\text{copfr-C}()$ and $\text{sopfr-C}()$.

$\begin{array} {c} \text{copfr-C}(\frac95) & = & \text{copfr} & ( & 3 & · & 3 & · & 5 & ) & = & 1 & + & 1 & + & 1 & = & 3 \\ \text{lp-C}(\frac95) & = & \text{lp} & ( & 3 & · & 3 & · & 5 & ) & \approx & 1.585 & + & 1.585 & + & 2.322 & \approx & 5.491 \\ \text{sopfr-C}(\frac95) & = & \text{sopfr} & ( & 3 & · & 3 & · & 5 & ) & = & 3 & + & 3 & + & 5 & = & 11 \\ \end{array}$

In vector-based form, $\text{copfr-C}()$ is exactly equivalent to the $1$-norm of the interval vector $\textbf{i}$, not pretransformed in any way, which is to say, the sum of the absolute values of each entry:

\small \begin{align} \text{copfr-C}(\textbf{i}) &= ‖\textbf{i}‖_1 \\ \small &= \sqrt{\strut \sum\limits_{n=1}^d |\mathrm{i}_n|^1} \\ \small &= \sqrt{\strut |\mathrm{i}_1|^1 + |\mathrm{i}_2|^1 + \ldots + |\mathrm{i}_d|^1} \\ \small &= |\mathrm{i}_1| + |\mathrm{i}_2| + \ldots + |\mathrm{i}_d| \end{align}

## Replacing-diminuator: shear

The "replacing-diminuator" trait can be visualized on a lattice by shearing the lattice (sometimes confusingly called "skewing"). The horizontal coordinate becomes the sum of the original horizontal coordinate plus some fraction of the vertical coordinate (and any other coordinates). This is how it is related to making the size of intervals count toward their complexity: this stretches the lattice along the all-dimensional diagonal where in one direction every prime count is increasing and in the other direction every prime count is decreasing, in order to make distances in that direction longest.

Here is a series of diagrams that show how this affects things for primes 3 and 5 via the 12 complexities in the top two boxes of the table above:

If you're struggling to compute the complexities on the right half of the screen, here's an example that might help. The bottom right E-double-sopfr-limit of 5/3. Normally that vector is [0 -1 1⟩. But we're doing sofpr here so it's prescaled by the primes themselves, so that's [0 -3 5⟩. But we're doing the double-sopfr-limit, which means we only want stuff from the numinator, and to achieve that we augment the vector with the sum of all the entries. Not their absolute values. So that's 0 + -3 + 5 = 2. So the augmented vector is [0 -3 5 | 2⟩. And we take the norm of that, so just sum those absolute values up |0| + |-3| + |5| + |2| = 10. But wait, that's actually just the double-sopfr-limit; I said we'd do the E-double-sopfr-limit. Well, same deal but sum squares and root, so 0² + -3² + 5² + 2² = 38, so the result is √38 ≈ 6.164, as you can see in the diagram. Note that for this tuning, 5/3 is considered less complex than 5/1, because the issue of size apparently outweighs the product complexity issue.

It's important to recognize that norms measure from origin to point, not point to point; measurements between arbitrary points are instead handled by something called "metrics" (yes, that's a technical mathematical term). So while one might wish for the underlying lattices in the 3rd column to reflect the fact that 5/3 and 5/1 have the same complexity, and thus occupy the same point in space with 0 distance between them, that's simply not the right way to think about it. One should have no more problem with the fact that the difference in complexity along the edge that connects 5/3 and 5/1 causes a change in complexity of 0 when you're on the log-integer-limit-squared diagram than I should for how in any Euclideanized diagram, let's take the E-copfr one for the simplest example, one can go diagonally to 15/1 from 1/1 for a complexity of √2 and straight from 1/1 to 5/1 for a complexity of 1, but one doesn't complain that between 5/1 and 15/1 should be a move worth 1 yet considered in and of itself but in this context seems like it should be √2 - 1. The conclusion is: you don't worry about that, because you never travel along that path when reaching points straight from the origin. It's irrelevant to the definition of the norm.

# Hybrids between integer-limit-squared and product complexity

This section develops upon ideas introduced earlier in the Normifying: complexity and size section.

This section is as much about hybrids between log-integer-limit-squared and log-product complexity as it is about the non-log versions of its title. In fact the log versions are more useful. But it is simpler to discuss the ideas we want to discuss here without having to mention logs all the time. So that's what we'll do.

## Reviewing the problem

The concept of integer limit was introduced by Paul Erlich as a replacement for odd limit when octaves are tempered. But it was Mike Battaglia who realised that integer-limit-squared complexity could be expressed as a norm, and could therefore be used as the basis for an all-interval tuning scheme in the way Paul had used product complexity. Essentially, Paul's "Tenney" tunings use $n×d$, while Mike's "Weil" tunings use $\max(n,d)$. The main idea behind this innovation was that product complexity does not account for interval size. Said another way, product complexity does not account for the balance of integers across the fraction bar. For example, $\frac53$ has the same product complexity as $\frac{15}{1}$, since both 5×3 and 15×1 are equal to 15. By comparison, according to integer-limit-squared complexity, $\frac{15}{1}$ with complexity 15 is considered much more complex than $\frac53$, which only has a complexity of 5.

But as we noted earlier, integer-limit-squared complexity has its own blind spot. Where product complexity is blind to the balance between the numerator and denominator, integer-limit-squared complexity is blind to the denominator completely (this statement assumes that we deal only with superunison intervals, but that is a safe assumption because all subunison intervals have reciprocal equivalent with a superunison interval and so we only need to deal with one set or the other, and conventionally we deal only with the superunison set). For example, according to integer-limit-squared complexity, both $\frac53$ and $\frac54$ have the same complexity of 5, while according to product complexity these are differentiated, with complexities of 15 and 20, respectively.

A complexity statistic which is blind neither to balance nor to the denominator itself is of theoretical interest for use with musical intervals, because both of these aspects contribute to auditory perception of harmonic complexity.

Such a complexity statistic may be constructed as a hybridization of product complexity and integer-limit-squared complexity, with each of the two primitive complexities filling in for the blind spot of the other.

We could present the relationship between these three complexities thusly:

complexity interval property
balance diminuator itself
product blind aware
integer-limit-squared aware blind
hybrid aware aware

## The proposed solution

A complexity statistic like this has already been described, by Mike, at the same time he introduced integer limits to the theory. In fact, any tuning scheme along his "Tenney-Weil continuum" — other than the extremes of pure Tenney and pure Weil — uses a complexity statistic that is a hybrid of product and integer-limit-squared complexities in this way. Thus, tunings resulting from these schemes are blind neither to interval size nor to their full rational content.

The primary means by which this is achieved is a tradeoff factor that Mike deems $k$ which appears in the bottom row of the size-sensitizing matrix $Z$. We taught (here: #Normifying: size-sensitizing matrix) that matrix as having a bottom row of all 1's. Technically speaking, though, those are all $k$, like so:

$\begin{array} {c} Z \\ \left[ \begin{array} {r} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \\ \hline \style{background-color:#FFF200;padding:5px}{k} & \style{background-color:#FFF200;padding:5px}{k} & \style{background-color:#FFF200;padding:5px}{k} \\ \end{array} \right] \end{array}$

This is because minimax-lils-S is the tuning where this $k$ value equals 1. And minimax-S is the tuning where it equals 0, and thus we can simply drop the extra bottom row of the matrix, leaving the rest as an identity matrix to vaporize. There's no reason $k$ can't go higher than 1, but at that point you're exploring tunings where you've theoretically more than ignored the value of the diminuator, so your results will likely become unpredictable or strange. The values of most interest, clearly, are values somewhere between 0 and 1.

So 0 is log-product complexity and 1 is log-integer-limit-squared. In terms of the size and complexity components, 1 is where they are perfectly balanced, half and half, as is seen in the formula. 0 is where size is not considered. And ∞ is where only size is considered (whatever that means).

While we're on the topic, we may note that when computing tunings with hybrid norms like this, the required augmentation to $M\mathrm{T}S_\text{p}$ follows a similar change. An example for an all-interval tuning (where $\mathrm{T} = \mathrm{T}_{\text{p}} = \mathrm{I}$) is visualized here:

$\left[ \begin{array} {rrr|r} \frac{1}{\log_2{2}} & \frac{2}{\log_2{3}} & \frac{3}{\log_2{5}} & \style{background-color:#FFF200;padding:5px}{0} \\ 0 & \frac{-3}{\log_2{3}} & \frac{-5}{\log_2{5}} & \style{background-color:#FFF200;padding:5px}{0} \\ \hline \style{background-color:#FFF200;padding:5px}{k} & \style{background-color:#FFF200;padding:5px}{k} & \style{background-color:#FFF200;padding:5px}{k} & \style{background-color:#FFF200;padding:5px}{-1} \\ \end{array} \right]$

In our systematic nomenclature, Tenney tuning is minimax-S and Weil tuning is minimax-lils-S. We will be continuing onward using those preferred descriptive names. And as for hybrids, we suggest naming the complexity $k-\text{iph-C}()$ where "iph" stands for "integer-limit-squared/product hybrid. So a corresponding tuning could be the TILT minimax-½-iph-C.

And for the logarithmic variants, we suggest $k-\text{liph-C}()$ where "liph" stands for "log- integer-limit-squared/product hybrid. This version is normifiable, and could be used for all-interval tunings, such as minimax-½-liph-S.

Here's a continuum of (all-interval) minimax-k-liph-S tunings of meantone:

• $k=0$: 1201.699 1899.263 2790.258] (minimax-S)
• $k=\frac14$: 1201.273 1898.591 2789.271] (minimax-¼-liph-S)
• $k=\frac12$: 1200.849 1897.920 2788.284] (minimax-½-liph-S)
• $k=1$ 1200.000 1896.578 2786.314] (minimax-lils-S)
• $k=2$ 1198.306 1893.902 2782.381] (minimax-2-liph-S)

And here is a diagram showing constant damage contours for these $k$-values:

## Limitations of hybridization

We must be clear that while functions along the iph and liph complexity continua do evaluate intervals based on a combination of their size and (a particular notion of) their complexity, these functions are not suitable substitutes or replacements for a dedicated size limit. They do not combine size and complexity in a way that is as meaningful as it may seem at first.

At least, in the context of tuning problems such as we face in RTT — systematic selection of intervals to use as tuning targets, and then among the ones which do pass the filter to be considered as targets at all, how to distribute priority amongst them — one may not cite hybrid size/complexity functions like these as a comparable solution to independently setting a size limit and a complexity limit (see: Dave Keenan & Douglas Blumeyer's guide to RTT: tuning fundamentals#Truncated integer limit triangle (TILT) for more information on this sort of programmatic target-interval set selection). Perhaps the most succinct way to explain why would be: because these hybrids are literally averages of their size and complexity components, and so could never on their own fulfill a role that is more like the intersection of a size limit and a complexity limit. Or said another way: ultimately it is still just a single complexity measurement, though it may be sensitive to size where other complexity functions aren't at all.

What might be fair to say is that an integer limit and a complexity limit fulfill similar roles in the selection and weighting of a target-interval set, but neither of them have anything like the same effect as a true size limit does, as can be seen clearly in this diagram, where we can see that hybrids of integer-limit-squared complexity and log-product complexity will vary between the shapes of the green and blue, but will never look anything like radiating red lines from the origin.

An illuminating way we found to frame this limitation is: sure, it sounds great to say that an integer limit combines a size limit and complexity limit, but it could just as easily be said the converse, that a complexity limit combines a size limit and an integer limit! At a certain point, there just isn't as meaningful of a difference between integer and complexity limits as there is between either of these two things and a size limit. An integer limit is really just a special $k$-value of a complexity limit, where the contour line ends up going straight vertical on this diagram.

So perhaps the greatest thing we could hope to get out of a hybrid like this would be to consolidate our integer and complexity limits down into a single hybrid-integer-complexity limit. But you would always still need a size limit, too.

At least, this is what we might say when speaking of ordinary tunings that use target-interval set schemes such as TILT which have the possibility of enforcing a size limit. If your thinking is limited to all-interval tuning schemes, then something like one of these hybrid functions may be your best bet.

## Value for all-interval tunings vs ordinary tunings

The minimax-lils-S tuning scheme — the one Mike introduced integer limits to our theory in the service of — is an all-interval tuning scheme. Tuning schemes such as these (as discussed in more detail on their dedicated article) are not best suited for finding tunings good in actual musical performance; rather they are favored for their computational expediency as well as the benefit of not having to specify a target-intervals set to tune with respect to (which can be a fuzzy and contentious process), both of which lead to this category of tuning schemes being preferred when documenting temperaments, especially in computer automated situations. This is all to say that the actual tuning schemes in the minimax-k-liph-S (Weil-Tenney) continuum are of dubious value themselves, because their complicated hybrid nature, as well as the fuzzy and contentious choice of exact position along the continuum, should counteract the primary motivations for using all-interval tuning schemes in the first place. The whole raison d'être of these schemes is their mathematical simpleness, so if you take that away, what's the point? It would be better to stick with simply minimax-S, or perhaps even minimax-lils-S, then.

However, the hybrid complexity statistics that Mike developed for them are of potentially massive value in non-all-interval tuning schemes, that is to say the ordinary kind for which the specification of a target-intervals set to tune with respect to is required. For these tuning schemes, computational complexity is not at as much of a premium as it is with all-interval tuning schemes, and also there's no check on the arbitrary interests of the particular human doing the tuning; what's more important here is to nail as best as possible the distribution of damage across the intervals whose damage is being minimized. So hybrids of product and integer-limit-squared complexity may be of interest here. Theoretically, tunings in the middle of the liph continuum could be superior to either log-product or log-integer-limit-squared on the extremes. But the tradeoff versus complexity is not clear enough at this time that we would dislodge log-product from our position of default complexity.

In the development of the N2D3P9 statistic, we found an approximate 3:2 ratio in how the size of a ratio's numerator and denominator affected its popularity in musical scales. This fact cannot be directly applied to RTT tuning, as in N2D3P9's case we're actually dealing with interval classes that are not only 2-free (octave-reduced) but also 3-free (essentially fifth-reduced), and popularity in scales is only hand-wavily akin to intervallic complexity, but we cite it here anecdotally, as a speculation on how various balances of product and integer-limit-squared complexity may come to be preferred.

# A defense of our choice of log-product as default complexity

Probably the most important factor for us in considering a complexity function to be high quality is this: is it monotonic over the integers, and hence is psychoacoustically plausible. For anything to be rightfully called damage, we believe the weighting of absolute error must have psychoacoustic plausibility; otherwise, while it may be of interest otherwise, it is not what we are looking for in this application: a way of optimizing approximations of harmonic music for humans to listen to.

Several of the complexity functions we look at in this article have this property. Product complexity and integer-limit-squared complexity both do, as do all their hybrids, and their logarithmic variants. Any Euclideanized complexity will lose this effect. And copfr and sopfr do not have it.

Between these "integer-monotonic complexities", however, there may not be a strong case for any one of them having any more specific audible plausibility than another. This question probably can't be answered legitimately with a computer algorithm or clever math trick; it would probably need to be answered with experimentation on actual human subjects.

And so, barring that level of real-world effort, for now, we find it's a reasonable position to choose among these integer-monotonic complexities the one which has several pluses:

• relatively long history of use in tuning
• relative ease of understanding and computation
• that special proportional effect to size in cents (discussed here

# Computing ordinary tunings using these complexities

For ordinary tunings with finite target-interval sets, we already have everything you need to tune with respect to any complexity you might dream of. In the computations article we relied only on a single complexity function, our default of log-product complexity. This meant that whenever it came time to prepare our weight matrix $W$, we simply found $\log_2{\!nd}$ for each of our target-intervals and put them in a diagonal matrix:

\begin{align} \text{if} \; \mathrm{T} = [ \frac21, \frac32, \frac32, \frac43, \frac52, \frac53, \frac54, \frac65 ], \\ W &= \left[ \begin{array} {rrr} \log_2{2·1} & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & \log_2{3·1} & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & \log_2{3·2} & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & \log_2{4·3} & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & \log_2{5·2} & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & \log_2{5·3} & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & \log_2{5·4} & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & \log_2{6·5} \\ \end{array} \right] \\ &= \left[ \begin{array} {rrr} 1.000 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1.585 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 2.585 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 3.585 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 3.322 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 3.907 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 4.322 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 4.907 \\ \end{array} \right] \end{align}

We could reciprocate the whole thing to find a simplicity-weight matrix $S$ and if we leave this as is then it's our complexity-weight matrix $C$.

But the point is here that there's nothing stopping us from using whatever bizarre complexity function we might dream up, such as, let's say, the "sum" complexity, which by analogy with product complexity, takes the sum of the numerator and denominator rather than their product. In that case, we'd find:

$C = \left[ \begin{array} {rrr} 2+1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 3+1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 3+2 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 4+3 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 5+2 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 5+3 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 5+4 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 6+5 \\ \end{array} \right] = \left[ \begin{array} {rrr} 3 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 4 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 5 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 7 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 7 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 8 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 9 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 0 & 11 \\ \end{array} \right]$

For ordinary tunings, there are no constraints on your complexity function at all, other than it return real numbers, perhaps. Go as crazy as you like. There's no need for it to be in norm form so that its dual norm can be figured out so that you can use it in a dual norm inequality or anything like that. Anything goes. Have fun. Or maybe just stick with log-product complexity.

# Computing all-interval tuning schemes with alternative complexities

As opposed to ordinary tunings, which were briefly covered in the previous section, for all-interval tunings, we do have restrictions: specifically, we needed to get our complexity into the form of a pretransformed norm, for which we could then find its dual, as the norm with the dual power and inverse pretransformer.

As covered in our all-interval tuning schemes article Dave Keenan & Douglas Blumeyer's guide to RTT: all-interval tuning schemes#Formula relating dual powers, the dual power is found by $\frac{1}{p} + \frac{1}{\text{dual}(p)} = 1$. And typically the inverse pretransformer is found by the matrix inverse (but this is not always so simple).

The common setup for every all-interval tuning scheme is that we're going to find our generator tuning map $𝒈$ for a given temperament's mapping matrix $M$, and we're going to do it by minimizing the greater side of the dual norm inequality, $‖𝒓X^{-1}‖_q$. What makes the difference from one tuning scheme to the next, with their different alternative complexities, is what we use for $X^{-1}$, the inverse pretransformer matrix which is the inverse of the complexity pretransformer matrix we've chosen; this is the one that we've been using on intervals when computing their complexities using the norm form of their formulas. And also the choice of optimization power $p$, which for these examples will always either be $∞$ or $2$ (2 for the Euclideanized ones).

To unpack the $𝒈$ and $M$, we can expand the expression we're minimizing like so:

$‖𝒓X^{-1}‖_q \\ ‖(𝒕 - 𝒋)X^{-1}‖_q \\ ‖(𝒈M - 𝒋)X^{-1}‖_q$

For the following set of examples, we'll be using porcupine temperament, with $M$ = [1 2 3] 0 -3 -5]}. Thus we find $𝒕 = 𝒈M =$ $g_1$ $2g_1+3g_2$ $3g_1+5g_2$]. And being in the 5-limit, we find $𝒋$ = 1200 1901.955 2786.314]. So:

$\min( ‖ ( \begin{array} 𝒕 \left[ \begin{array} {l} g_1 & & 2g_1-3g_2 & & 3g_1-5g_2 \end{array} \right] \end{array} - \begin{array} 𝒋 \left[ \begin{array} {l} 1200 & & 1901.955 & & 2786.314 \end{array} \right] \end{array} )X^{-1} ‖_q )$

Simplifying down to one map there in the middle, instead of subtraction (i.e. going back from $𝒕 - 𝒋$ to $𝒓$):

$\min( ‖ \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} X^{-1} ‖_q )$

And then recognizing that we actually substitute a simpler and in this case equivalent power mean for the power norm when computing these:

$\min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} X^{-1} \largeRRzigzag _p )$

So that's going to be our starting point for all of the following computations.

## Log-product

In the cases of the minimax-S and minimax-ES tuning schemes, which use log-product complexity, our complexity pretransformer is the log prime matrix $L$ and thus our inverse pretransformer, is $L^{-1}$. So we substitute that in for $X^{-1}$:

$\min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} {\color{red}(L^{-1})} \largeRRzigzag _p ) = \\ \min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} \left[ \begin{array} {l} \frac{1}{\log_2{2}} & 0 & 0 \\ 0 & \frac{1}{\log_2{3}} & 0 \\ 0 & 0 & \frac{1}{\log_2{5}} \\ \end{array} \right] \largeRRzigzag _p ) = \\ \min( \largeLLzigzag \left[ \begin{array} {l} \frac{g_1 - 1200}{\log_2{2}} & & \frac{2g_1-3g_2-1901.955}{\log_2{3}} & & \frac{3g_1-5g_2-2786.314}{\log_2{5}} \end{array} \right] \largeRRzigzag _p ) = \\ \min( \largeLLzigzag \left[ \begin{array} {l} \frac{g_1}{\log_2{2}} - 1200 & & \frac{2g_1-3g_2}{\log_2{3}} - 1200 & & \frac{3g_1-5g_2}{\log_2{5}} - 1200 \end{array} \right] \largeRRzigzag _p )$

Here we can see the $L$-canceling proportionality as we talked about briefly earlier: #Proportionality to size.

To see these tunings worked out with exact solutions in the form of generator embeddings, see Generator embedding optimization#Minimax-S and Generator embedding optimization#Minimax-ES.

## Sum-of-prime-factors-with-repetition

In the cases of the minimax-sopfr-S and minimax-E-sopfr-S tuning schemes, which use log-product complexity, our complexity pretransformer is a diagonalized list of the primes $\text{diag}(𝒑)$ and thus our inverse pretransformer, is $\text{diag}(𝒑)^{-1}$. So we substitute that in for $X^{-1}$:

$\min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} {\color{red}(\text{diag}(𝒑)^{-1})} \largeRRzigzag _p ) = \\ \min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} \left[ \begin{array} {l} \frac12 & 0 & 0 \\ 0 & \frac13 & 0 \\ 0 & 0 & \frac15 \\ \end{array} \right] \largeRRzigzag _p ) = \\ \min( \largeLLzigzag \left[ \begin{array} {l} \frac{g_1 - 1200}{2} & & \frac{2g_1-3g_2-1901.955}{3} & & \frac{3g_1-5g_2-2786.314}{5} \end{array} \right] \largeRRzigzag _p )$

Since we're prescaling by the primes themselves, not their logs as we did with minimax-(E)S, we didn't do the final step where we show how each term has a 1200 subtracted from it, in other words, because the scalings aren't proportional to the pitch sizes of the primes like we're using here, but instead their frequencies.

To see these tunings worked out with exact solutions in the form of generator embeddings, see Generator embedding optimization#Minimax-sopfr-S and Generator embedding optimization#Minimax-E-sopfr-S.

## Count-of-prime-factors-with-repetition

In the cases of the minimax-copfr-S and minimax-E-copfr-S tuning schemes, which use copfr complexity, our complexity pretransformer is an identity matrix $I$ and thus our inverse pretransformer, is also an identity matrix $I$. In other words, we have no pretransformer here! So we can just delete occurrences of $X^{-1}$:

$\min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} {\color{red}(I)} \largeRRzigzag _p ) = \\ \min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} \largeRRzigzag _p )$

We should already be able to see that this computation is going to be easier than ever. To see these tunings worked out with exact solutions in the form of generator embeddings, see Generator embedding optimization#Minimax-copfr-S and Generator embedding optimization#Minimax-E-copfr-S.

## Log-integer-limit-squared

Here's where things start to get pretty weird.

In the cases of the minimax-lils-S and minimax-E-lils-S tuning schemes, our complexity pretransformer is the size-sensitizing matrix composed with the log prime matrix, $ZL$ and thus its inverse is $(ZL)^{-1}$. Unfortunately, though, even though it looks like we should be able to say the dual norm $\text{lils-C}^{*}()$ should be $‖𝒓(ZL)^{-1}‖_∞$, it's not that simple, that is, it's not as simple as the typical case where we can just take the dual power and the inverse pretransformer. For starters, $ZL$ is rectangular and so it could only have a pseudoinverse, $(ZL)^{+}$, not a true inverse; this might not have been an insurmountable problem, except that for whatever reason (reasons beyond these authors, anyway) this doesn't actually work. Mike Battaglia has worked out a proof that it's this:

\begin{align} \text{lils-C}^{*}(\textbf{𝒓}) &= \max( \frac{r_1}{\log_2{\!p_1}}, \frac{r_2}{\log_2{\!p_2}}, \ldots, \frac{r_d}{\log_2{\!p_d}}, 0) \; - \\ & \quad\quad\quad \min(\frac{r_1}{\log_2{\!p_1}}, \frac{r_2}{\log_2{\!p_2}}, \ldots, \frac{r_d}{\log_2{\!p_d}}, 0) \end{align}

And in any case, the way we achieve the dual norm is through custom-applied augmentations to the matrices that are used in computing optimized tunings with methods that give exact solutions. So the theory has not quite yet arrived at a truly generalizable approach to dual-norm-ification (though we'd be delighted to be corrected on this matter, if someone has indeed cracked this).

Here's what $(ZL)^{+}$ looks like for our porcupine example:

$\dfrac12 \left[ \begin{array} {rrr|r} \log_2{2} & {-\log_2{2}} & {-\log_2{2}} & \log_2{2} \\ {-\log_2{3}} & \log_2{3} & {-\log_2{3}} & \log_2{3} \\ {-\log_2{5}} & {-\log_2{5}} & \log_2{5} & \log_2{5} \\ \end{array} \right]$

Which is maybe better understood factored into $L^{-1}Z^{+}$, which it is equivalent to:

$\begin{array} {c} L^{-1} \\ \left[ \begin{array} {c} \frac{1}{\log_2{2}} & 0 & 0 \\ 0 & \frac{1}{\log_2{3}} & 0 \\ 0 & 0 & \frac{1}{\log_2{5}} \\ \end{array} \right] \end{array} \begin{array} {c} Z^{+} \\ \dfrac12 \left[ \begin{array} {ccc|c} 1 & -1 & -1 & 1 \\ -1 & 1 & -1 & 1 \\ -1 & -1 & 1 & 1 \\ \end{array} \right] \end{array}$

When we substitute $(ZL)^{+}$ in for $X^{-1}$:

$\min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} {\color{red}((ZL)^{+})} \largeRRzigzag _p ) = \\ \min( \largeLLzigzag \begin{array} {c} 𝒓 \\ \left[ \begin{array} {l} g_1 - 1200 & & 2g_1-3g_2-1901.955 & & 3g_1-5g_2-2786.314 \end{array} \right] \end{array} \begin{array} {c} (ZL)^{+} \\ \dfrac12 \left[ \begin{array} {rrr|r} \log_2{2} & {-\log_2{2}} & {-\log_2{2}} & \log_2{2} \\ {-\log_2{3}} & \log_2{3} & {-\log_2{3}} & \log_2{3} \\ {-\log_2{5}} & {-\log_2{5}} & \log_2{5} & \log_2{5} \\ \end{array} \right] \end{array} \largeRRzigzag _p )$

But we won't bother continuing with this approach because whether we use the generic method (such as Wolfram Language's NMinimize[]) which gives approximate solutions, or the coinciding-damage method which gives exact solutions, we won't get a correct answer. In order to achieve this, we must use the pattern of matrix augmentation that Mike Battaglia has described.

To see these tunings worked out with exact solutions in the form of generator embeddings, see Generator embedding optimization#Minimax-lils-S and Generator embedding optimization#Minimax-E-lils-S.

## Log-odd-limit-squared

As mentioned above, the log-odd limit based tunings can be computed using the same approach as the log-integer-limit-squared tunings, except with a held-octave constraint applied. There are apparently other methods of achieving these same result by taking entries corresponding to prime 2 and setting them to zero, in various objects, but we felt that this approach was simpler in the key way insofar as it merely composes computational tricks we already know how to do. But since both the coinciding-damage method and the pseudoinverse method handle constrained optimizations using augmentations already, we end up with doubly-augmented situations, which are fairly gnarly in their own way. But let's work it all out.

To see these tunings worked out with exact solutions in the form of generator embeddings, following the custom technique that Mike worked out, see Generator embedding optimization#Minimax-lols-S and Generator embedding optimization#Minimax-E-lolsS.

## Alternative complexity all-interval tuning scheme table

We'll conclude things here with another monster table. Please compare this with the table of tuning schemes found in the advanced section of our conventions appendix: Advanced: Tuning schemes (you'll need to click the "[Expand]" link there. Everything that can be found in the table below is collapsed into just the top 4 data rows of the table in that conventions article, and that's because the conventions article table does not explode out all of the different alternative complexities like we do here.:

pure

octaves

retuning magnitude damage target

intervals

systematic name historical name
weighting optimization
interval complexity slope name power
dual norm pretransformer dual norm power norm pretransformer norm power name multiplier
held destretched name multiplier name power name multiplier name power abbreviated read ("____ tuning scheme")
inverse log-prime matrix $L^{-1}$ maximum log-prime matrix $L = \text{diag}(\log_2{𝒑})$ taxicab 1 simplicity-weight (S) 1/complexity minimax all minimax-S minimax simplicity-weight damage "TOP"/"TIPTOP"*
yes held-octave minimax-S held-octave minimax simplicity-weight damage "CTOP"
yes destretched-octave minimax-S destretched-octave minimax simplicity-weight damage "POTOP"/"POTT"*
(identity matrix) $I$ (identity matrix) $I$ minimax-copfr-S minimax count-of-prime-factors-with-repetition-simplicity-weight damage
inverse diagonal matrix of primes $\text{diag}(𝒑)^{-1}$ diagonal matrix of primes $\text{diag}(𝒑)$ minimax-sopfr-S minimax sum-of-prime-factors-with-repetition-simplicity-weight damage "BOP"
(custom handling required, involving augmented matrices) size-sensitizing matrix, and log-prime matrix $ZL$ minimax-lils-S minimax log-integer-limit-squared-simplicity-weight damage "Weil"
yes destretched-octave minimax-lils-S destretched-octave minimax log-integer-limit-squared--simplicity-weight damage "Kees"
yes held-octave minimax-lils-S held-octave minimax log-integer-limit-squared-simplicity-weight damage "constrained-octave Weil"
minimax-lols-S minimax log-odd-limit-squared-simplicity-weight damage
inverse log-prime matrix $L^{-1}$ Euclidean 2 log-prime matrix $L = \text{diag}(\log_2{𝒑})$ Euclidean (E) 2 minimax-ES minimax Euclideanized-simplicity-weight damage "TE"/"TOP-RMS"
yes held-octave minimax-ES held-octave minimax Euclideanized-simplicity-weight damage "constrained-octave Tenney-Euclidean (CTE)"
yes destretched-octave minimax-ES destretched-octave minimax Euclideanized-simplicity-weight damage "pure-octave Tenney-Euclidean (POTE)"
(identity matrix) $I$ (identity matrix) $I$ minimax-E-copfr-S minimax Euclideanized-count-of-prime-factors-with-repetition-simplicity-weight damage "Frobenius"
inverse diagonal matrix of primes $\text{diag}(𝒑)^{-1}$ diagonal matrix of primes $\text{diag}(𝒑)$ minimax-E-sopfr-S minimax Euclideanized-sum-of-prime-factors-with-repetition-simplicity-weight damage "BE"
(custom handling required, involving augmented matrices) size-sensitizing matrix, and log-prime matrix $ZL$ minimax-E-lils-S minimax Euclideanized-log-integer-limit-squared-simplicity-weight damage "WE"
yes destretched-octave minimax-E-lils-S destretched-octave minimax Euclideanized-log-integer-limit-squared-simplicity-weight damage "KE"
yes held-octave minimax-E-lils-S held-octave minimax Euclideanized-log-integer-limit-squared-simplicity-weight damage "constrained-octave Weil-Euclidean"
minimax-E-lols-S minimax Euclideanized-log-odd-limit-squared-simplicity-weight damage

We've included some data rows for popular held-octave and destretched-octave tuning schemes.

# Alternative optimization powers

This topic isn't exactly an "alternative complexity", but it is closely tangential to the topics discussed here, so we felt it was fitting to keep it close by.

The computations article tells us that the general method can handle optimization powers like $3$, $1.4$, or whatever, with a method that gives approximate solutions.

Why would someone use a different optimization power? Well, there's no optimization powers possible that are greater than $∞$ or less than $1$. And the tuning qualities imbued by the optimization power change gradually between $∞$ and $1$, with $2$ representing the exact midpoint in-between them. So if you understand the qualities at those extremes of $∞$ and $1$, and that the midpoint of this continuum is $2$, then you should be able to have a sense about the quality any given optimization power would imbue. We covered this a bit in the fundamentals article already, but as a reminder, $p = ∞$ is like the "weakest link" approach, where a tuning is only as good as its worst-tuned target. On the other extreme, $p = 1$ is the straightforward "all damage counts" approach, meaning if you add a bit more damage to your best-tuned interval, that makes the tuning worse; damage is damage. For a more thorough refresher, you can review Dave Keenan & Douglas Blumeyer's guide to RTT: tuning fundamentals#Rationales for choosing your interpretation. So, if you decide that neither of those extremes work for you, but that you nonetheless lean more one way or the other and don't want to simply accept the midway power of $2$, then you may be one of the weirdos who wants an optimization power $∞ \gt p \gt 2$ or $2 \gt p \gt 1$.

If you do want to do such a thing, how to refer to the tuning scheme? We remind you that when $p=∞$ we name it "minimax", when $p=2$ we name it "miniRMS", and when $p=1$ we name it "miniaverage". But we also remind you that technically speaking these are all minimization of power means, just means of different powers (i.e. optimization powers). So essentially we just un-alias these $p$-means in the name. So a tuning scheme that minimized the $2$-mean of damage to the TILT would be the "TILT mini-2-mean" tuning scheme or for short "TILT miniRMS", while $3$-mean of damage to the TILT would be "TILT mini-3-mean", which has no shorter form.

We remind the reader that optimization powers are different than norm powers, such as appear in all-interval tuning schemes. For example, the minimax-ES tuning scheme uses a Euclideanized complexity, meaning its norm power $q$ is 2. But it's still a minimax tuning, because it only uses this pretransformed $2$-norm in the calculations of the complexities, the inverse of which it pretransforms the prime errors by when minimizing their norm; ultimately this dual norm inequality trick is always in service of minimizing the maximum damage across all intervals, i.e. minimaxing that damage. Thus the optimization power of an all-interval tuning scheme is always $p = ∞$. As with optimization powers, the powers $∞$, $2$, and $1$ have special qualities. We already explained briefly above how to handle naming with respect to these and other norm powers: Alternative norm powers

So, it is possible to devise a tuning scheme with both the optimization power $p$ and the norm power $q$ as something other than one of those three key powers. For example, we could have the TILT mini-3-mean-1.5-C tuning. This minimizes the 1.5-ized-log-product-complexity-weight damage to the TILT, where the minimization is minimizing the $3$-mean of the target-interval damage list. (1.5-izing, like Euclideanizing AKA 2-izing, would mean to take the powers and roots of 1 in the norm form of the log-product complexity and swap them out for 1.5's.)

You've almost made it to the end of our article series. Kudos for sticking it out. One article remains, if you are thus inclined to read it too: Tuning in nonstandard domains.

# Footnotes and references

1. http://x31eq.com/primerr.pdf, page 4.
2. Previously we entertained the idea that the $L\textbf{i}$ object inside the norm bars of the log-product interval complexity could be called an "octavector", on the interpretation that this was the identical $L$ to the other, i.e. that it had units of oct/p rather than (C). Now we believe those are only complexity-annotated primes inside the bars, and upon evaluating the norm, all that remains are annotations or non-vectorized units (p is a vectorized unit). And then you augment the annotation per the norm power. But more on that in the units analysis article.
3. http://x31eq.com/primerr.pdf, starting with last paragraph on page 4
4. "Qoppa" is a term we (D&D) coined for a small quotient between two numbers, analogous to, but one level up the operator hierarchy from a "delta" being a small difference. Like uppercase delta Δ, uppercase qoppa Ϙ is a Greek letter, albeit an archaic one. It can be typed as ⎄QQ using our WinCompose sequences.
5. Actually, $\text{sopfr}()$ is not typically defined for rationals, only for integers, leaving the question open as to whether factors in the denominator should count positive or negative (i.e. is the $\text{sopfr}()$ of $\frac{7}{5} = 7 + 5 = 12$, or does it $= 7 - 5 = 2$?).
6. Missing link, but this was stated somewhere on the Yahoo archives.
7. Including trivially $\frac11$, where $\text{prod-C}(\textbf{i}) = 1$ and $\text{sopfr-C}(\textbf{i}) = 0$.
8. We have noted with some amusement that "Euclideanized" in many cases could be replaced with the five-letter initialism "rosos", standing for "root of sum of squares". So leveraging this, we'd find Euclideanized copfr to be "rososcopfr" (ROFLcopter!)
9. Well, it's not a complete mystery. According to Mike Battaglia, he and Keenan Pepper collaborated together to figure out most of the ideas we've explained in this section, with input also potentially coming from Ryan Avela and Gene Ward Smith.
10. The same group which presented itself as a single mathematician by the pseudonym of Nicolas Bourbaki, who brought us the term saturation (see: Saturation,_torsion,_and_contorsion#Saturation and Defactoring_terminology_proposal#Defactoring, to replace saturation) and the use of the symbol "∧" for the exterior product (see: Talk:Meet_and_join#Suggestion_to_change_symbols), but who knows, "he" may have been a force for good in other areas.
11. https://yahootuninggroupsultimatebackup.github.io/tuning-math/topicId_14472#14513, and I suppose we can be grateful that we didn't end up with "Diophantine tuning", then. We almost had "Farey tuning", also, per: https://yahootuninggroupsultimatebackup.github.io/tuning-math/topicId_20956#20966
12. Yes, we did consider whether systemizing the names of these complexities would be an improvement to our systematic tuning scheme naming. However, unlike other components of our tuning scheme naming, such as target-interval set schemes, damage weight slope, etc. there actually are many established mathematical conventions for these complexities, and we believe we should defer to those when possible. Overconsistentiation is definitely a thing that can happen!
13. The word "skew" means something very different from "shear", no matter whether we are talking geometry or linear algebra. And in everyday language, "skew" tends to mean "rotate". That's not what we are doing here. "Shear" is the word we want.
14. At least, Mike advocated for integer-limit complexity; it's we who are pushing for squaring it, for better parity with product complexity, and to simplify our presentation of Mike's hybrids.
15. Alternatively, we can think of our ratios as consisting of a "numinator" and "diminuator", where the numinator is always the greater of the two and the diminuator is always the lesser of the two.
16. This hybrid tradeoff factor $k$ is very different from our $k$ for target-interval count, which isn't used for all-interval tuning schemes.
17. At least, the Moore-Penrose inverse which is the definition of pseudoinverse that we have been assuming throughout this article series thus far does not reliably work for this purpose. That said, if $X$ is a rectangular complexity pretransformer such as the one used for $\text{lils-C}()$, there are alternative inverses available which will still effectively leverage the dual norm inequality in order to cap the maximum damage across all intervals. Specifically, any matrix $X^{-}$ (that's $X$ but with a superscript minus, as opposed to the superscript plus that we use for the standard Moore-Penrose inverse) which satisfies $X^{-}X=I$ will suffice. These alternatives follow a parameterized pattern (which you can learn about here: https://mathworld.wolfram.com/Matrix1-Inverse.html) which can itself be the subject of an optimization procedure, with the optimization of the generators treated as a nested optimization problem, which understandably is staggeringly computationally intensive. It would be much better if we had a simple closed-form expression for the parameters on this pseudoinverse. Since completing this article, we have discovered a truly remarkable proof of such an expression, which this footnote is too small to contain. ;-) You can however find it as a work-in-progress here: Lils using left inverse.
18. A pedantic note: this table implies a parallelism between "multipliers" and "powers", but truly any multiplier's analog would be an exponent, not a power. A power is the (result of the) entire operation: a base raised to an exponent. For example, 3 to the 2nd power is 9, so 9 is a power (of 3), whereas 2 here is not the power but rather the exponent. However, this pedantic distinction is not important enough here to warrant complicating matters, since in this application we work with power sums, norms, means, and minima, and "power" is a perfectly appropriate word to use in those contexts.