Tp tuning: Difference between revisions
Clarify pairwise coprime |
Style; correct p = 0 -> p = 1 |
||
Line 3: | Line 3: | ||
For a subgroup temperament over a general JI subgroup, and for a given choice of ''p'' (most commonly ''p'' = 2), there are two notions of T<sub>''p''</sub> tuning: | For a subgroup temperament over a general JI subgroup, and for a given choice of ''p'' (most commonly ''p'' = 2), there are two notions of T<sub>''p''</sub> tuning: | ||
* The first is called '''inharmonic TE''', because the basis entries are treated as if they were primes, reminiscent of some inharmonic timbres. Inharmonic TE depends on the basis used for the subgroup. In non-octave temperaments, inharmonic TE could be used when optimizing a specific voicing of a tempered JI chord. For example in 3/2.7/4.5/2 semiwolf temperament which tempers out 245/243, the 3/2.7/4.5/2 inharmonic TE optimizes the 4:6:7:10 chord. | * The first is called '''inharmonic TE''', because the basis entries are treated as if they were primes, reminiscent of some inharmonic timbres. Inharmonic TE depends on the basis used for the subgroup. In non-octave temperaments, inharmonic TE could be used when optimizing a specific voicing of a tempered JI chord. For example in 3/2.7/4.5/2 semiwolf temperament which tempers out 245/243, the 3/2.7/4.5/2 inharmonic TE optimizes the 4:6:7:10 chord. | ||
* The second is called '''subgroup TE''', because it treats the temperament as a restriction of a full prime-limit temperament to a subgroup of the prime-limit. Subgroup TE does not depend on the basis used for the subgroup, and as stated, extends naturally to the TE tuning of the full prime-limit temperament. | * The second is called '''subgroup TE''', because it treats the temperament as a restriction of a full prime-limit temperament to a subgroup of the prime-limit. Subgroup TE does not depend on the basis used for the subgroup, and as stated, extends naturally to the TE tuning of the full prime-limit temperament. | ||
The two notions agree exactly when the temperament is defined on a JI subgroup with a basis consisting of rationally independent (i.e. pairwise coprime) members. That is, the subgroup has a basis where no two elements share a prime factor (examples: 2.3.5 and 2.9.5; nonexample: 2.9.5.21). | |||
The two notions agree exactly when the temperament is defined on a JI subgroup with a basis consisting of rationally independent (i.e. pairwise coprime) members. That is, the subgroup has a basis where no two elements share a prime factor (examples: 2.3.5 and 2.9.5; nonexample: 2.9.5.21). | |||
== Definition == | == Definition == | ||
Line 17: | Line 18: | ||
If ''q'' is any positive rational number, ||''q''||<sub>''p''</sub> is the T<sub>''p''</sub> norm defined by its monzo. | If ''q'' is any positive rational number, ||''q''||<sub>''p''</sub> is the T<sub>''p''</sub> norm defined by its monzo. | ||
For some just intonation group G, which is to say some finitely generated group of positive rational numbers which can be either a full prime-limit group or some subgroup of such a group, a regular temperament tuning T for an abstract temperament S is defined by a linear map from monzos belonging to G to a value in cents, such that T (''c'') = 0 for any comma ''c'' of the temperament. We define the error of the tuning on ''q'', Err (''q''), as |T (''q'') - cents (''q'')|, and if ''q'' ≠ 1, the '' | For some just intonation group G, which is to say some finitely generated group of positive rational numbers which can be either a full prime-limit group or some subgroup of such a group, a regular temperament [[tuning map|tuning]] T for an abstract temperament S is defined by a linear map from monzos belonging to G to a value in cents, such that T (''c'') = 0 for any comma ''c'' of the temperament. We define the error of the tuning on ''q'', Err (''q''), as |T (''q'') - cents (''q'')|, and if ''q'' ≠ 1, the ''T<sub>p</sub> proportional error'' is PE<sub>''p''</sub> (''q'') = Err (''q'')/||''q''||<sub>''p''</sub>. For any tuning T of the temperament, the set of PE<sub>''p''</sub> (''q'') for all ''q'' ≠ 1 in G is bounded, and hence has a least upper bound, the supremum sup (PE<sub>''p''</sub> (T)). The set of values sup (PE<sub>''p''</sub> (T)) is bounded below, and by continuity achieves its minimum value, which is the T<sub>''p''</sub> error E<sub>''p''</sub> (S) of the abstract temperament S; if we measure in cents as we've defined above, E<sub>''p''</sub> (S) has units of cents. Any tuning achieving this minimum, so that sup (PE<sub>''p''</sub> (T)) = E<sub>''p''</sub> (S), is an T<sub>''p''</sub> tuning. Usually this tuning is unique, but in the case ''p'' = 1, called the [[TOP tuning]], it may not be. In this case we can choose a TOP tuning canonically by setting it to the limit as ''p'' tends to 1 of the T<sub>''p''</sub> tuning, thereby defining a unique tuning T<sub>''p''</sub> (S) for any abstract temperament S on any group G. Given T<sub>''p''</sub> (S) in a group G containing 2, we may define a coresponding pure-octaves tuning (POL<sub>''p''</sub> tuning) by dividing by the tuning of 2: T<sub>''p''</sub>' (S) = 1200 T<sub>''p''</sub> (S)/(T<sub>''p''</sub> (S))<sub>1</sub>, where (T<sub>''p''</sub> (S))<sub>1</sub> is the first entry of T<sub>''p''</sub> (S). When ''p'' = 2, POL<sub>2</sub> tuning generalizes POTE tuning. | ||
== Dual norm == | == Dual norm == | ||
We can extend the T<sub>''p''</sub> norm on monzos to a [[Wikipedia: Normed vector space|vector space norm]] on [[Monzos and interval space|interval space]], thereby defining the real normed interval space T<sub>''p''</sub>. This space has a normed subspace generated by monzos belonging to the just intonation group G, which in the case where G is a full ''p''-limit will be the whole of T<sub>''p''</sub> but otherwise might not be; this we call G-interval space. The dual space to G-interval space is G-tuning space, and on this we may define a [[Wikipedia: Dual norm|dual norm]]. If ''r''<sub>1</sub>, ''r''<sub>2</sub>, … , ''r''<sub>''n''</sub> are a set of generators for G, which in particular could be a normal list and so define [[Smonzos and Svals|smonzos]] for G, then corresponding generators for the dual space can in particular be the sval generators. On this standard basis for G-tuning space we can express the dual norm canonically as the G-sval norm. If [''r''<sub>1</sub> ''r''<sub>2</sub> … ''r''<sub>''n''</sub>] is the normal G generator list, then {{val| cents (''r''<sub>1</sub>) cents (''r''<sub>2</sub>) … cents (''r''<sub>''n''</sub>) }} is a point, in unweighted coordinates, in G-tuning space, and the nearest point to it under the G-sval norm on the subspace of tunings of some abstract G-temperament S, meaning svals in the null space of its commas, is precisely the '''L''p'' tuning''' L<sub>''p''</sub> (S). | We can extend the T<sub>''p''</sub> norm on monzos to a [[Wikipedia: Normed vector space|vector space norm]] on [[Monzos and interval space|interval space]], thereby defining the real normed interval space T<sub>''p''</sub>. This space has a normed subspace generated by monzos belonging to the just intonation group G, which in the case where G is a full ''p''-limit will be the whole of T<sub>''p''</sub> but otherwise might not be; this we call G-interval space. The dual space to G-interval space is G-tuning space, and on this we may define a [[Wikipedia: Dual norm|dual norm]]. If ''r''<sub>1</sub>, ''r''<sub>2</sub>, … , ''r''<sub>''n''</sub> are a set of generators for G, which in particular could be a normal list and so define [[Smonzos and Svals|smonzos]] for G, then corresponding generators for the dual space can in particular be the sval generators. On this standard basis for G-tuning space we can express the dual norm canonically as the G-sval norm. If [''r''<sub>1</sub> ''r''<sub>2</sub> … ''r''<sub>''n''</sub>] is the normal G generator list, then {{val| cents (''r''<sub>1</sub>) cents (''r''<sub>2</sub>) … cents (''r''<sub>''n''</sub>) }} is a point, in unweighted coordinates, in G-tuning space, and the nearest point to it under the G-sval norm on the subspace of tunings of some abstract G-temperament S, meaning svals in the null space of its commas, is precisely the '''L''p'' tuning''' L<sub>''p''</sub> (S). | ||
In the special case where ''p'' = 2, this becomes | In the special case where ''p'' = 2, this becomes L<sub>2</sub> tuning. This is called ''inharmonic TE'' in Graham Breed's temperament finder. | ||
== Applying the Hahn-Banach theorem == | == Applying the Hahn-Banach theorem == | ||
Suppose T = T<sub>''p''</sub> (S) is an T<sub>''p''</sub> tuning for the temperament S, and J is the JI tuning. These are both elements of G-tuning space, which are linear functionals on G-interval space, and hence the error map Ɛ = T - J is also. The norm ||Ɛ|| of Ɛ is minimal among all error maps for tunings of S since T is the T<sub>''p''</sub> tuning. By the [[Wikipedia: Hahn–Banach theorem|Hahn–Banach theorem]], Ɛ can be extended to an element Ƹ in the space of full ''p''-limit | Suppose T = T<sub>''p''</sub> (S) is an T<sub>''p''</sub> tuning for the temperament S, and J is the JI tuning. These are both elements of G-tuning space, which are linear functionals on G-interval space, and hence the error map Ɛ = T - J is also. The norm ||Ɛ|| of Ɛ is minimal among all error maps for tunings of S since T is the T<sub>''p''</sub> tuning. By the [[Wikipedia: Hahn–Banach theorem|Hahn–Banach theorem]], Ɛ can be extended to an element Ƹ in the space of full ''p''-limit tuning maps with the same norm; that is, so that ||Ɛ|| = ||Ƹ||. Additionally, due to a [http://www.math.unl.edu/%7Es-bbockel1/928/node25.html corollary of Hahn-Banach], the set of such error maps valid for S can be extended to a larger set which is valid for an extended temperament S*; this temperament S* will be of rank greater than or equal to S, and will share the same kernel. | ||
||Ƹ||, the norm of the full ''p''-limit error map, must also be minimal among all valid error maps for S*, or the restriction of Ƹ to G would improve on Ɛ. Hence, as ||Ƹ|| is minimal, J* + Ƹ, where J* is the full ''p''-limit [[JIP]], must equal the T<sub>''p''</sub> tuning for S*. Thus to find the T<sub>''p''</sub> tuning of S for the group G, we may first find the T<sub>''p''</sub> tuning T* for S*, and then apply it to the normal interval list giving the standard form of generators for G. | ||Ƹ||, the norm of the full ''p''-limit error map, must also be minimal among all valid error maps for S*, or the restriction of Ƹ to G would improve on Ɛ. Hence, as ||Ƹ|| is minimal, J* + Ƹ, where J* is the full ''p''-limit [[JIP]], must equal the T<sub>''p''</sub> tuning for S*. Thus to find the T<sub>''p''</sub> tuning of S for the group G, we may first find the T<sub>''p''</sub> tuning T* for S*, and then apply it to the normal interval list giving the standard form of generators for G. | ||
Note that while the Hahn-Banach theorem is usually proven using Zorn's lemma and does not guarantee any kind of uniqueness, in most cases there is only one | Note that while the Hahn-Banach theorem is usually proven using Zorn's lemma and does not guarantee any kind of uniqueness, in most cases there is only one L<sub>''p''</sub> tuning and the extension of Ɛ to Ƹ is in that case unique. It is also easy to see that this can only be non-unique if ''p'' = 1 or ''p'' = Infinity, so that we may get a unique L<sub>''p''</sub> tuning (called the "TIPTOP" tuning for ''p'' = Infinity) by simply taking the limit as ''p'' approaches our value. | ||
== | == T<sub>2</sub> tuning == | ||
In the special case where ''p'' = 2, the T<sub>''p''</sub> norm for the full prime limit becomes the | In the special case where ''p'' = 2, the T<sub>''p''</sub> norm for the full prime limit becomes the T<sub>2</sub> norm, which when divided by the square root of the number ''n'' of primes in the prime limit, is the [[Tenney-Euclidean metrics|Tenney-Euclidean norm]], giving TE complexity. Associated to this norm is T<sub>2</sub> tuning extended to arbitrary JI groups, and [[Tenney-Euclidean temperament measures #TE error|RMS error]], which for a tuning map T is ||(T - J)/''n'' ||<sub>2</sub> = ||T - J||<sub>RMS</sub>. | ||
For an example, consider [[Chromatic pairs #Indium|indium temperament]], with group 2.5/3.7/3.11/3 and [[comma basis]] 3025/3024 and 3125/3087. The corresponding full 11-limit temperament is of rank three, and using the [[Tenney-Euclidean tuning|usual methods]], in particular the pseudoinverse, we find that the | For an example, consider [[Chromatic pairs #Indium|indium temperament]], with group 2.5/3.7/3.11/3 and [[comma basis]] 3025/3024 and 3125/3087. The corresponding full 11-limit temperament is of rank three, and using the [[Tenney-Euclidean tuning|usual methods]], in particular the pseudoinverse, we find that the T<sub>2</sub> (TE) tuning map is {{val| 1199.552 1901.846 2783.579 3371.401 4153.996 }}. Applying that to 12/11 gives a generator of 146.995, and multiplying that by 1200.000/1199.552 gives a POT<sub>2</sub> tuning, or extended POTE tuning, of 147.010. Converting the tuning map to weighted coordinates and subtracting {{val| 1200 1200 1200 1200 1200 }} gives {{val| -0.4475 -0.0685 -1.1778 0.9172 0.7741 }}. The ordinary Euclidean norm of this, i.e. the square root of the dot product, is 1.7414, and dividing by sqrt (5) gives the RMS error, 0.77879 cents. | ||
This is called ''subgroup TE'' in Graham Breed's temperament finder. | This is called ''subgroup TE'' in Graham Breed's temperament finder. |