User:Frostburn/Geometric algebra for regular temperaments: Difference between revisions

Frostburn (talk | contribs)
→Mapping: Remove the requirement for matrix inversion when calculating the mapping.
Sintel bot (talk | contribs)
Fix <math> environments for MathJax v4 (align->aligned, etc.)
 
Line 20: Line 20:
We can now use geometric algebraic operations to combine vals.
We can now use geometric algebraic operations to combine vals.
:<math>
:<math>
\begin{align}
\begin{aligned}
\overleftarrow{5} \wedge \overleftarrow{7} &= (5e_1 + 8e_2 + 12e_3) \wedge (7e_1 + 11e_2 + 16e_3) \\
\overleftarrow{5} \wedge \overleftarrow{7} &= (5e_1 + 8e_2 + 12e_3) \wedge (7e_1 + 11e_2 + 16e_3) \\
&= (5 \times 11 - 8 \times 7)e_{12} + (5 \times 16 - 12 \times 7)e_{13} + (8 \times 16 - 12 \times 11)e_{23} \\
&= (5 \times 11 - 8 \times 7)e_{12} + (5 \times 16 - 12 \times 7)e_{13} + (8 \times 16 - 12 \times 11)e_{23} \\
&= -4e_1i + 4e_2i - e_3i \\
&= -4e_1i + 4e_2i - e_3i \\
\end{align}
\end{aligned}
</math>
</math>
Readers familiar with monzos will recognize this as the syntonic comma [[81/80]] defining the [[Meantone]] temperament. Another example would be <math>\overleftarrow{7} \wedge \overleftarrow{8} = e_1i - 5e_2i + 3e_3i</math> looking like the monzo for the maximal diesis [[250/243]] defining the [[Porcupine]] temperament.
Readers familiar with monzos will recognize this as the syntonic comma [[81/80]] defining the [[Meantone]] temperament. Another example would be <math>\overleftarrow{7} \wedge \overleftarrow{8} = e_1i - 5e_2i + 3e_3i</math> looking like the monzo for the maximal diesis [[250/243]] defining the [[Porcupine]] temperament.
Line 88: Line 88:
</math>
</math>
The wedge product has some nice properties that allow us to extract <math>x</math> and <math>y</math>. Let's first calculate the relevant hyperwedge.
The wedge product has some nice properties that allow us to extract <math>x</math> and <math>y</math>. Let's first calculate the relevant hyperwedge.
:<math>\begin{align}
:<math>\begin{aligned}
\mathbf{H} &= \overrightarrow{p} \wedge \overrightarrow{g} \wedge \overrightarrow{c_1} \wedge \ldots \wedge \overrightarrow{c_{n-2}} \\
\mathbf{H} &= \overrightarrow{p} \wedge \overrightarrow{g} \wedge \overrightarrow{c_1} \wedge \ldots \wedge \overrightarrow{c_{n-2}} \\
\mathbf{H} &= \overrightarrow{p} \wedge \overrightarrow{g} \wedge \mathbf{T}i
\mathbf{H} &= \overrightarrow{p} \wedge \overrightarrow{g} \wedge \mathbf{T}i
\end{align}</math>
\end{aligned}</math>
where we've used the fact that the commas span the dual of the temperament.
where we've used the fact that the commas span the dual of the temperament.
Finally we have
Finally we have
:<math>\begin{align}
:<math>\begin{aligned}
x &= \frac{\overrightarrow{m} \wedge \overrightarrow{g} \wedge \mathbf{T}i}{\mathbf{H}} \\
x &= \frac{\overrightarrow{m} \wedge \overrightarrow{g} \wedge \mathbf{T}i}{\mathbf{H}} \\
y &= \frac{\overrightarrow{p} \wedge \overrightarrow{m} \wedge \mathbf{T}i}{\mathbf{H}}
y &= \frac{\overrightarrow{p} \wedge \overrightarrow{m} \wedge \mathbf{T}i}{\mathbf{H}}
\end{align}</math>
\end{aligned}</math>
where the division is inverse scalar multiplication (or right multiplication by the geometric inverse. Same thing in this case where the relevant subspace attitudes align).
where the division is inverse scalar multiplication (or right multiplication by the geometric inverse. Same thing in this case where the relevant subspace attitudes align).


Line 103: Line 103:


Let's do that for meantone and choose <math>\overrightarrow{p} = \overrightarrow{2/1} = [1, 0, 0></math> and <math>\overrightarrow{g} = \overrightarrow{3/2} = [-1, 1, 0> </math> as the period and generator for Meantone. In this case there's only a single comma <math>\overrightarrow{c} = \overrightarrow{81/80} = [-4, 4, -1 ></math> so we can calculate the mapping in terms of that too, but in general we don't need to know the commas as long as we know the wedgie for the temperament.
Let's do that for meantone and choose <math>\overrightarrow{p} = \overrightarrow{2/1} = [1, 0, 0></math> and <math>\overrightarrow{g} = \overrightarrow{3/2} = [-1, 1, 0> </math> as the period and generator for Meantone. In this case there's only a single comma <math>\overrightarrow{c} = \overrightarrow{81/80} = [-4, 4, -1 ></math> so we can calculate the mapping in terms of that too, but in general we don't need to know the commas as long as we know the wedgie for the temperament.
:<math>\begin{align}
:<math>\begin{aligned}
\overrightarrow{2/1} &= 1 \overrightarrow{p} + 0 \overrightarrow{g} + 0 \overrightarrow{c} \\
\overrightarrow{2/1} &= 1 \overrightarrow{p} + 0 \overrightarrow{g} + 0 \overrightarrow{c} \\
\overrightarrow{3/1} &= 1 \overrightarrow{p} + 1 \overrightarrow{g} + 0 \overrightarrow{c} \\
\overrightarrow{3/1} &= 1 \overrightarrow{p} + 1 \overrightarrow{g} + 0 \overrightarrow{c} \\
\overrightarrow{5/1} &= 0 \overrightarrow{p} + 4 \overrightarrow{g} - 1 \overrightarrow{c}
\overrightarrow{5/1} &= 0 \overrightarrow{p} + 4 \overrightarrow{g} - 1 \overrightarrow{c}
\end{align}</math>
\end{aligned}</math>
Transposing the coefficients gives us the mapping:
Transposing the coefficients gives us the mapping:
:<math>\begin{align}
:<math>\begin{aligned}
\overleftarrow{p} &= < 1, 1, 0 ] \\
\overleftarrow{p} &= < 1, 1, 0 ] \\
\overleftarrow{g} &= < 0, 1, 4 ] \\
\overleftarrow{g} &= < 0, 1, 4 ] \\
\overleftarrow{c} &= < 0, 0, -1]
\overleftarrow{c} &= < 0, 0, -1]
\end{align}</math>
\end{aligned}</math>
Now <math>\mathbf{T} = \overleftarrow{p} \wedge \overleftarrow{g}</math> and for any monzo <math>\overrightarrow{m}</math> we can get the number of periods as <math>\overleftarrow{p} \cdot \overrightarrow{m}</math> and the number of generators as <math>\overleftarrow{g} \cdot \overrightarrow{m}</math>. (We don't care about how many commas are needed because they're tempered out anyway.)
Now <math>\mathbf{T} = \overleftarrow{p} \wedge \overleftarrow{g}</math> and for any monzo <math>\overrightarrow{m}</math> we can get the number of periods as <math>\overleftarrow{p} \cdot \overrightarrow{m}</math> and the number of generators as <math>\overleftarrow{g} \cdot \overrightarrow{m}</math>. (We don't care about how many commas are needed because they're tempered out anyway.)


Line 135: Line 135:
== Improving the notation ==
== Improving the notation ==
It might be possible to consistently define everything so that the Tenney weighted metric is incorporated in the basis vectors. If ''e''<sub>i</sub> are the GA basis vectors that square to 1 we can define basis vectors
It might be possible to consistently define everything so that the Tenney weighted metric is incorporated in the basis vectors. If ''e''<sub>i</sub> are the GA basis vectors that square to 1 we can define basis vectors
:<math>\begin{align}
:<math>\begin{aligned}
\overrightarrow{e_i} &:= e_i \log(p_i) \\
\overrightarrow{e_i} &:= e_i \log(p_i) \\
\overleftarrow{e_i} &:= e_i / \log(p_i) \\
\overleftarrow{e_i} &:= e_i / \log(p_i) \\
\end{align}
\end{aligned}
\implies \overleftarrow{e_i}\overrightarrow{e_i} = 1</math>
\implies \overleftarrow{e_i}\overrightarrow{e_i} = 1</math>
where ''p''<sub>i</sub> are the [[Just_intonation_subgroup|formal primes]] of the fractional just intonation subgroup.
where ''p''<sub>i</sub> are the [[Just_intonation_subgroup|formal primes]] of the fractional just intonation subgroup.