Temperament merging: Difference between revisions

No edit summary
m Update the terminology. Style
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Beginner|Meet and join}}
{{Beginner|Meet and join}}
'''Temperament merging''' is a way to find new [[regular temperaments]] by merging others. There are two ways to merge temperaments: '''map-merge''', which works by merging the temperaments' [[mapping]]s, and '''comma-merge''', which works by merging the temperaments' [[comma basis|comma bases]].  
'''Temperament merging''' is a way to find new [[regular temperaments]] by merging others. There are two ways to merge temperaments: '''joining''' (or map-merge), which works by merging the temperaments' [[mapping]]s, and '''comma-merge''', which works by merging the temperaments' [[comma basis|comma bases]].  


== Merging ==
These are multiple ways in which a temperament can be defined in terms of the properties of another temperament.  
"Merging" in this context refers to concatenating the matrices in question and then [[Temperament merging#Canonicalization|canonicalizing]] them.  


For mappings, the concatenation is vertical, while for comma-bases, the concatenation is horizontal:
'''Joining''' two temperaments ''a'' and ''b'' (notated ''a'' & ''b'') results in a higher-rank temperament which tempers out only the commas that both ''a'' and ''b'' temper out. Usually, this is done with two [[equal temperament]]s ([[vals]], usually written in [[wart notation]]) to receive a rank-2 temperament (sometimes called cross-breeding), and indeed, all possible rank-2 temperaments can be written as a combination of two equal temperaments. The resulting rank-2 essentially captures the similarities between the two equal temperaments: [[15edo|15]] & [[22edo|22]] is [[porcupine]], because both equal temperaments have an [[11/10]] that doubles to [[6/5]] and triples to [[4/3]]. Similarly, [[19edo|19]] & [[26edo|26]] is [[flattone]], because in the diatonic scale of both edos, the [[major third]] is 5/4 and the [[major sixth #As a diatonic interval category|diminished seventh]] is 7/4. Higher-rank temperaments can also be joined; [[garibaldi]] & [[rodan]] is [[aberschismic]], because both garibaldi and rodan conflate [[81/80]] and [[64/63]] into a single comma-sized interval. 


'''Comma-merging''' two temperaments ''a'' and ''b'' (notated ''a'' | ''b'') results in a lower-rank temperament which tempers out all of the commas that either ''a'' or ''b'' temper out. This can be done with two rank-2 temperaments to find the equal temperament which [[support]]s them both. For example, [[meantone]] | [[augmented (temperament)|augmented]] is [[12edo|12et]], since 12et both has 5/4 as its diatonic major third and has that 5/4 equal to [[3edo|1\3]] of the [[octave]].
More than two temperaments may be merged at once. For example, joining three equal temperaments results in a [[rank-3 temperament]] (e.g. 22 & 34d & 37 is [[ares]]).
Note that while a given temperament merging expression unambiguously refers to a single temperament, a given temperament can be expressed by many possible different temperament merging expressions.
== With mappings ==
To perform the join with mappings, we vertically concatenate the matrices. In this form, the mapping does represent the temperament (and is the form used in [[Diatonic, chromatic, enharmonic, and subchromatic steps|diatonic, chromatic, enharmonic, and subchromatic]] theory), but to get a more conventional mapping, we can then [[Temperament merging #Canonicalization|canonicalize]] it.
Similarly, to perform the join with comma bases, we horizontally concatenate them, and then canonicalize the result.


<math>
<math>
Line 71: Line 80:
</math>
</math>


== Application ==
== With multivals ==
Map-merging produces a temperament that ''only'' makes to [[vanish]] those commas that are made to vanish by ''all'' of the input temperaments. Conversely, comma-merging produces a temperament that makes to vanish ''every'' comma made to vanish by ''any'' of the input temperaments.
Joining is equivalent to the [[wedge product]], and can be calculated in that manner. Wedging two vals results in the same temperament (in [[wedgie]] form) as joining them does.  
 
For discussions of temperament merging in context, see:
* [[Dave Keenan &amp; Douglas Blumeyer's guide to RTT]]
** [[Dave Keenan &amp; Douglas Blumeyer's guide to RTT/Mappings#Mappings|Mappings]]
** [[Dave Keenan &amp; Douglas Blumeyer's guide to RTT/Mappings#Multiple forms|Multiple mapping forms]]
** [[Dave Keenan &amp; Douglas Blumeyer's guide to RTT/Exploring temperaments#Temperament merging|Temperament merging]]
* [[Diatonic, chromatic, enharmonic, subchromatic#Chromatic and diatonic interval classes]]
 
== Notation ==
The &amp; ("ampersand") symbol is used (for example, on [http://x31eq.com/temper/ Graham Breed's temperament finding tool]) to notate map-merging, as in {{nowrap|12 &amp; 19 {{=}} meantone}}; we can read this as "12-ET and 19-ET is meantone" or "12-ET map-merge 19-ET is meantone". Here, 12 and 19 are [[wart notation]] for 12-ET and 19-ET. This is in fact a notation for the [[wedge product]].
 
The | ("pipe") symbol may be used to notate comma-merging, as in {{nowrap|meantone{{!}}porcupine {{=}} 7}}. We could read this as "meantone or porcupine" or "meantone comma-merge porcupine is 7-ET". As a mnemonic, because commas are represented by vectors, which are vertical columns, when they merge together into matrices, the pipe resembles the seam between them as they merge.
 
The ampersand symbol is associated with the word "and", and in many programming languages, the | symbol is associated with the word "or". So a further mnemonic can be used to remember this pair of symbols: <math>𝓣_1 \& 𝓣_2</math> is the merge that results in the temperament that makes the commas vanish which are made to vanish by ''both'' <math>𝓣_1</math> ''and'' <math>𝓣_2</math>, and <math>𝓣_1 | 𝓣_2</math> is the merge that results in the temperament that makes the commas vanish which are made to vanish by ''either'' <math>𝓣_1</math> ''or'' <math>𝓣_2</math>.
 
== Cross-breeding ==
Perhaps the most basic example of temperament merging is map-merging [[equal temperament]]s (ETs), which is sometimes called "cross-breeding". And so meantone could be said to be a cross-breed of 12-ET and 19-ET, because {{nowrap|12 &amp; 19 {{=}} meantone}}.
 
== Multiple temperament merging ==
More than two temperaments may be merged at a time, such as {{nowrap|22 &amp; 34d &amp; 37}} which gives [[ares]].
 
== Non-uniqueness ==
Note that while a given temperament merging expression unambiguously refers to a single temperament, a given temperament can be expressed by many possible different temperament merging expressions.


== Canonicalization ==
== Canonicalization ==
Line 102: Line 88:
=== Rank-deficiencies ===
=== Rank-deficiencies ===
Sometimes when temperaments are merged, rank-deficiencies may occur. For example, comma-merging septimal meantone and miracle temperaments:  
Sometimes when temperaments are merged, rank-deficiencies may occur. For example, comma-merging septimal meantone and miracle temperaments:  


<math>
<math>
Line 141: Line 126:
</math>
</math>


 
We have not ''completely'' canonicalized yet; we did not remove the all-zero column (highlighted in red) that was created by the [[Hermite normal form]] step. The existence of any all-zero columns like this tells us that our matrix was column-rank-deficient, or in layperson's terms, that it contained redundant commas. In other words, these two temperaments make some of the same commas vanish, and so when we merged them—even though the input temperaments required 2 vectors each to represent—their merged result does not require all 4 vectors; it can be completely represented using only 3 vectors. So once we fully [[canonical form|canonicalize]], any all-zero column(s) are removed, and we end up with:
We haven't ''completely'' canonicalized yet; we didn't remove the all-zero column (highlighted in red) that was created by the [[Hermite normal form]] step. The existence of any all-zero columns like this tells us that our matrix was column-rank-deficient, or in layperson's terms, that it contained redundant commas. In other words, these two temperaments make some of the same commas vanish, and so when we merged them—even though the input temperaments required 2 vectors each to represent—their merged result doesn't require all 4 vectors; it can be completely represented using only 3 vectors. So once we fully [[canonical form|canonicalize]], any all-zero column(s) are removed, and we end up with:




Line 156: Line 140:
=== Enfactoring ===
=== Enfactoring ===
Sometimes when temperaments are merged, enfactoring may occur. For example:  
Sometimes when temperaments are merged, enfactoring may occur. For example:  


<math>
<math>
Line 180: Line 163:
</math>
</math>


 
The greatest factor of this matrix is 2, because we can produce the row {{val| 24 38 56 }} as a coprime linear combination of its rows (that's {{val| 5 8 12 }} + {{val| 19 30 44 }}), and the entries of this row have a GCD of 2, so in other words this matrix is 2-enfactored. If we merely put it into Hermite normal form, we receive:
The greatest factor of this matrix is 2, because we can produce the row {{map|24 38 56}} as a coprime linear combination of its rows (that's {{map|5 8 12}} + {{map|19 30 44}}), and the entries of this row have a GCD of 2, so in other words this matrix is 2-enfactored. If we merely put it into Hermite normal form, we receive:
 


<math>
<math>
Line 191: Line 172:


</math>
</math>


which is a 2-enfactored meantone mapping, and it reveals the greatest factor as the GCD of the second row. But if we fully canonicalize it (defactor, and put into normal form), then we get:
which is a 2-enfactored meantone mapping, and it reveals the greatest factor as the GCD of the second row. But if we fully canonicalize it (defactor, and put into normal form), then we get:


<math>
<math>
Line 202: Line 181:
\end{array} \right]
\end{array} \right]
</math>
</math>


which is simply the canonical mapping for meantone temperament.
which is simply the canonical mapping for meantone temperament.


=== Non-canonicalizing definition ===
=== Non-canonicalizing definition ===
By some definitions of the &amp; operator, the [[defactoring]] part of canonicalization is not include—for example on [http://x31eq.com/temper/ Graham Breed's temperament finding tool]. This allows for things like {{nowrap|5 &amp; 19}} to represent 2-enfactored meantone, rather than meantone itself. Instead of a full canonicalization, then, this definition merely puts the result into Hermite normal form and removes any all-zero rows or columns resulting from rank-deficiencies.
By some definitions of the & operator, the [[defactoring]] part of canonicalization is not included—for example on [http://x31eq.com/temper/ Graham Breed's temperament finding tool]. This allows for things like {{nowrap| 5 & 19 }} to represent 2-enfactored meantone, rather than meantone itself. Instead of a full canonicalization, then, this definition merely puts the result into Hermite normal form and removes any all-zero rows or columns resulting from rank-deficiencies.


== Parallel intersections ==
== Parallel intersections ==