Val: Difference between revisions

Cleanup +1 / make this more encyclopedic
Structural improvements for the examples
Line 19: Line 19:
The val is used to understand the edo's approximations to ratios involving those primes, like 2 × 5 / 3 / 3 = [[10/9]] for primes {2, 3, 5}. This list does not have to be the closest approximation for each prime, but it usually is. Thus a val is essentially just a list of numbers that we are interpreting as having a certain meaning.
The val is used to understand the edo's approximations to ratios involving those primes, like 2 × 5 / 3 / 3 = [[10/9]] for primes {2, 3, 5}. This list does not have to be the closest approximation for each prime, but it usually is. Thus a val is essentially just a list of numbers that we are interpreting as having a certain meaning.


=== Example: 26edo ===
== Examples ==
* prime 2 is ''mapped'' to 26 steps (by definition, as we are equally dividing [[2/1]] into 26 steps, each representing an interval with frequency ratio 2<sup>1/26</sup>/1)
Let us consider a 5-limit val for 26edo, {{val| 26 41 60 }}. From this val, we see that:  
* prime 3 is ''mapped '' to log<sub>2</sub>(3) × 26 = 41.209… steps, which we round to 41 steps (because otherwise we are using frequency ratios not present in 26edo), meaning 2<sup>41/26</sup> = 2.983…/1 is the frequency ratio of 26edo that we use to approximate the [[3/1]] frequency ratio, so the correct statement is prime 3 is ''mapped to 41 steps'' (not a fractional amount)
* Prime 2 is mapped to 26 steps (by definition, as we are equally dividing [[2/1]] into 26 steps, each representing an interval with frequency ratio 2<sup>1/26</sup>/1);
* by the same procedure, prime 5 is ''mapped'' to 60 steps, as a result of rounding log<sub>2</sub>(5) × 26 = 60.370…, meaning 2<sup>60/26</sup> = 4.950…/1 is the frequency ratio of 26edo that we use to approximate the [[5/1]] frequency ratio.  
* Prime 3 is mapped to 41 steps, which is rounded from log<sub>2</sub>(3) × 26 = 41.209… steps, meaning 2<sup>41/26</sup> = 2.983…/1 is the frequency ratio of 26edo that we use to approximate the [[3/1]] frequency ratio;
* Prime 5 is mapped to 60 steps, which is rounded from log<sub>2</sub>(5) × 26 = 60.370… steps, meaning 2<sup>60/26</sup> = 4.950…/1 is the frequency ratio of 26edo that we use to approximate the [[5/1]] frequency ratio.  


Note that when we take the closest approximation of each prime (corresponding to rounding rather than e.g. using the second-best approximation possible) we call it a ''[[patent val]]'', therefore, the "5-limit patent val" of 26edo is {{val| 26 41 60 }}, where the limit is 5 because that is the highest prime we are considering.
Note that when we take the closest approximation of each prime, corresponding to rounding rather than e.g. using the second-best approximation possible, we call it a ''[[patent val]]'', therefore, the 5-limit patent val of 26edo is {{val| 26 41 60 }}, where the limit is 5 because that is the highest prime we are considering.


== Using a val ==
=== Using a val to find the number of edosteps for a just interval ===
Using the 26edo val {{val| 26 41 60 }} as our example, say we want to figure out how [[9/8]], [[5/4]] and 9/8 × 5/4 = [[45/32]] are mapped.
Using the 26edo val {{val| 26 41 60 }} as our example, say we want to figure out how [[9/8]], [[5/4]] and (9/8)⋅(5/4) = [[45/32]] are mapped.


First we have to find the {{w|Integer factorization|prime factorization}} of our intervals (then we deduce the mapping from the prime factorization and the val):
First we have to find the prime factorization of our intervals:
* 9/8 = (3 × 3)/(2 × 2 × 2)
* 9/8 = (3 × 3)/(2 × 2 × 2)
* 5/4 = 5/(2 × 2)
* 5/4 = 5/(2 × 2)
Line 38: Line 39:
* 45/32 is mapped to (41 + 41 + 60) - (26 + 26 + 26 + 26 + 26) = 142 - 130 = 12 steps (so represented by a frequency ratio of 2<sup>12/26</sup> = 1.377…/1)
* 45/32 is mapped to (41 + 41 + 60) - (26 + 26 + 26 + 26 + 26) = 142 - 130 = 12 steps (so represented by a frequency ratio of 2<sup>12/26</sup> = 1.377…/1)


That is a successful use of a val. The arithmetic works out nicely: the approximation of 5/4 times the approximation of 9/8 is the approximation of 45/32. Using [[backslash notation]] to denote the number of steps in an edo, these are 4\26, 8\26, and 12\26, respectively, so that the underlying "logic" of the approximations being followed is 4\26 + 8\26 = 12\26.
We have used the val to find the edosteps. The arithmetic works out nicely: the approximation of 5/4 times the approximation of 9/8 is the approximation of 45/32. Using [[backslash notation]] to denote the number of steps in an edo, these are 4\26, 8\26, and 12\26, respectively, so that the underlying "logic" of the approximations being followed is 4\26 + 8\26 = 12\26.


Now let us compare to the closest approximations:
Now let us compare to the closest approximations:
Line 44: Line 45:
* log<sub>2</sub>(5/4) × 26 = 8.370… which rounds to 8 steps
* log<sub>2</sub>(5/4) × 26 = 8.370… which rounds to 8 steps
* log<sub>2</sub>(45/32) × 26 = 12.788… which rounds to 13 steps
* log<sub>2</sub>(45/32) × 26 = 12.788… which rounds to 13 steps
So here we can see that 9/8 × 5/4 = 45/32 is inconsistent because 4 + 8 is not equal to 13, in other words, 4 + 8 = 12 fails. So we can see that the val "fixes" the 13 to 12 by obeying an ''internal'' logic provided by the val; in different contexts it may be different intervals that are fixed; not necessarily the more complex one, though usually that is how it works for edos of interest.


So you may have noticed that there was quite a bit of repeated addition we can simplify, so let us note how we can simplify it exactly. Specifically, using exponent notation and not omitting implicit "to the power of 0"'s, the prime factorizations we worked out above are equivalent to:
So here we can see that (9/8)⋅(5/4) = 45/32 is inconsistent because 4 + 8 is not equal to 13, in other words, 4 + 8 = 12 fails. So we can see that the val "fixes" the 13 to 12 by obeying an ''internal'' logic provided by the val; in different contexts it may be different intervals that are fixed; not necessarily the more complex one, though usually that is how it works for edos of interest.
 
=== Vals and monzos ===
{{See also| Monzo #Relationship with vals }}
 
So you may have noticed that there was quite a bit of repeated addition we can simplify, so let us note how we can simplify it exactly. Specifically, using exponent notation and not omitting implicit zeroth powers, the prime factorizations we worked out above are equivalent to:
* 9/8 = 2<sup>-3</sup> × 3<sup>2</sup> × 5<sup>0</sup> which we can notate as {{monzo| -3 2 0 }}
* 9/8 = 2<sup>-3</sup> × 3<sup>2</sup> × 5<sup>0</sup> which we can notate as {{monzo| -3 2 0 }}
* 5/4 = 2<sup>-2</sup> × 3<sup>0</sup> × 5<sup>1</sup> which we can notate as {{monzo| -2 0 1 }}
* 5/4 = 2<sup>-2</sup> × 3<sup>0</sup> × 5<sup>1</sup> which we can notate as {{monzo| -2 0 1 }}
* 45/32 = 2<sup>-5</sup> × 3<sup>2</sup> × 5<sup>1</sup> which we can notate as {{monzo| -5 2 1 }}
* 45/32 = 2<sup>-5</sup> × 3<sup>2</sup> × 5<sup>1</sup> which we can notate as {{monzo| -5 2 1 }}
These notations are called [[monzo]]s; in other words, all a monzo really is is a shorthand for the prime factorization of an interval. Notice that the angle bracket on a monzo is on the right while on a val it is on the left, to indicate the naturalness of combining vals with monzos and to distinguish them, though often you can just use only square brackets if it is clear from context.
These notations are called [[monzo]]s; in other words, all a monzo really is is a shorthand for the prime factorization of an interval. Notice that the angle bracket on a monzo is on the right while on a val it is on the left, to indicate the naturalness of combining vals with monzos and to distinguish them, though often you can just use only square brackets if it is clear from context.


Did you notice that {{monzo| -3 2 0 }} + {{monzo| -2 0 1 }} = {{monzo| -5 2 1 }}? Specifically, try adding corresponding numbers in the lists; -3 with -2 gives -5, 2 with 0 gives 2, 0 with 1 gives 1. That is not a coincidence, but the same thing as multiplication except we are doing it with an additive notation.
Notice that {{monzo| -3 2 0 }} + {{monzo| -2 0 1 }} = {{monzo| -5 2 1 }}. Specifically, try adding corresponding numbers in the lists; -3 with -2 gives -5, 2 with 0 gives 2, 0 with 1 gives 1. That is not a coincidence, but the same thing as multiplication except we are doing it with an additive notation.


Now equipped with our funny notation for a val and a monzo, we can do the exact same thing we did before calculating the mappings but using this very dense but efficient notation, where we express "mapping the interval described by the monzo by a val" as simple juxtaposition with angle brackets on the outskirts, where we ''multiply'' corresponding numbers in the list and then add them together, like so:
Now equipped with our funny notation for a val and a monzo, we can do the exact same thing we did before calculating the mappings but using this very dense but efficient notation, where we express "mapping the interval described by the monzo by a val" as simple juxtaposition with angle brackets on the outskirts, where we ''multiply'' corresponding numbers in the list and then add them together, like so:
* mapping of 9/8: {{val| 26 41 60 }}{{monzo| -3 2 0 }} = 26 × -3 + 41 × 2 + 60 × 0 = -78 + 82 + 0 = 4 (steps of 26edo)
* mapping of 9/8: {{val| 26 41 60 }}{{monzo| -3 2 0 }} = 26 × -3 + 41 × 2 + 60 × 0 = -78 + 82 + 0 = 4 (steps of 26edo)
* mapping of 5/4: {{val| 26 41 60 }}{{monzo| -2 0 1 }} = 26 × -2 + 41 × 0 + 60 × 1 = -52 + 0 + 60 = 8 (steps of 26edo)
* mapping of 5/4: {{val| 26 41 60 }}{{monzo| -2 0 1 }} = 26 × -2 + 41 × 0 + 60 × 1 = -52 + 0 + 60 = 8 (steps of 26edo)
* mapping of 45/32: {{val| 26 41 60 }}{{monzo| -5 2 1 }} = 26 × -5 + 41 × 2 + 60 × 1 = -130 + 82 + 60 = 12 (steps of 26edo)
* mapping of 45/32: {{val| 26 41 60 }}{{monzo| -5 2 1 }} = 26 × -5 + 41 × 2 + 60 × 1 = -130 + 82 + 60 = 12 (steps of 26edo)
This is all very tedious, but in practice using a val is much simpler, because you do not need to do this, all you need to know is [[5/4]] is mapped to 8\26 and [[3/2]] is mapped to 15\26, therefore [[9/4]] is mapped to 30\26, therefore [[9/8]] is mapped to (30 - 26)\26 = 4\26, so that since we know 9/8 × 5/4 = 45/32, the mapped version of 45/32 will just be 4 + 8 = 12. This method guarantees that you never contradict yourself, even if you are technically using suspicious approximations.
 
This is all very tedious, but in practice using a val is much simpler, because you do not need to do this, all you need to know is [[5/4]] is mapped to 8\26 and [[3/2]] is mapped to 15\26, therefore [[9/4]] is mapped to 30\26, therefore [[9/8]] is mapped to (30 - 26)\26 = 4\26, so that since we know (9/8)⋅(5/4 = 45/32, the mapped version of 45/32 will just be 4 + 8 = 12. This method guarantees that you never contradict yourself, even if you are technically using suspicious approximations.


For the mathematically inclined, note that this operation is the same as taking the {{w|dot product}} between the monzo and val interpreted as ordinary vectors.
For the mathematically inclined, note that this operation is the same as taking the {{w|dot product}} between the monzo and val interpreted as ordinary vectors.


== Importance ==
== Importance ==
The guarantee that there are no contradictions comes with an interesting feature: somehow, you have managed to approximate JI in an internally-consistent way despite the fact that the approximations get worse the more you combine the errors so can get arbitrarily inconsistent. This corresponds to [[tempering out]] an infinite set of [[comma]]s, though there is a finite number of simple/musically relevant commas; that set is simply the set of all intervals that are mapped to 0 steps ([[1/1]]) by the val. This explains where the additional "structure" went if there are two or more primes, then you need to specify two or more integers in the exponents of the prime factorization (a.k.a. in the monzo). So we have lost information and structure by simplifying everything to a single integer coordinate; exactly the information that corresponds to ''equating'' any two intervals whose difference is one of the commas tempered, so we have found a precise sense in which we can equate two nearby intervals that are not actually equal — by mapping according to a val that maps the difference to zero. In fact, you do not have to use an [[edo]] tuning as you could use multiple vals ''simultaneously'' to map a single interval if you want to preserve more of the information in JI rather than just increasing the size of the edo; this corresponds to [[regular temperaments]] generally rather than just the 1-dimensional ("rank-1") case that vals correspond to. Therefore, a val specifies a rank-1 temperament a.k.a. an equal temperament.
The guarantee that there are no contradictions comes with an interesting feature: somehow, you have managed to approximate JI in an internally-consistent way despite the fact that the approximations get worse the more you combine the errors so can get arbitrarily inconsistent. This corresponds to [[tempering out]] an infinite set of [[comma]]s, though there is a finite number of simple/musically relevant commas; that set is simply the set of all intervals that are mapped to 0 steps ([[1/1]]) by the val. This explains where the additional "structure" went if there are two or more primes, then you need to specify two or more integers in the exponents of the prime factorization (a.k.a. in the monzo). So we have lost information and structure by simplifying everything to a single integer coordinate; exactly the information that corresponds to ''equating'' any two intervals whose difference is one of the commas tempered, so we have found a precise sense in which we can equate two nearby intervals that are not actually equal — by mapping according to a val that maps the difference to zero. In fact, you do not have to use an [[edo]] tuning as you could use multiple vals ''simultaneously'' to map a single interval if you want to preserve more of the information in JI rather than just increasing the size of the edo; this corresponds to [[regular temperaments]] generally rather than just the 1-dimensional ("rank-1") case that vals correspond to. Therefore, a val specifies a rank-1 temperament a.k.a. an equal temperament.


Furthermore, there is actually a lot of applications of vals and monzos that are not necessarily about approximating things in edos or even regular temperaments for that matter, discussed in [[#Applications]], though all of them do still use the idea of the ''mapping'' provided by the val, so really, a val is a ''mapping'' from JI to the numbers with certain properties.
Furthermore, there is actually a lot of applications of vals and monzos that are not necessarily about approximating things in edos or even regular temperaments for that matter, discussed in [[#Applications]], though all of them do still use the idea of the ''mapping'' provided by the val, so really, a val is a ''mapping'' from JI to the numbers with certain properties.
Retrieved from "https://en.xen.wiki/w/Val"