Val: Difference between revisions

Remove the p for obvious reasons
No edit summary
 
(93 intermediate revisions by 13 users not shown)
Line 3: Line 3:
| en = Val
| en = Val
| es =  
| es =  
| ja = ヴァルと音程空間
| ja = ヴァル
}}
}}
What are '''vals''' and what are they for?
{{Beginner|Vals and tuning space}}
 
A [[val]] — short for ''valuation'' — is like an algorithm or procedure for finding out how to represent [[frequency ratio]]s ([[interval]]s of [[just intonation|just intonation (JI)]]) with the pitches of an [[equal tuning]] such as an [[edo]]. The basic principle of using a ''patent'' val (the most common usecase) is that you round prime harmonics to edosteps, and then deduce the "mapping" of an arbitrary interval based on its prime factorization. (The "patent" refers to the method of choosing the approximations to the prime harmonics.)
 
This therefore assumes either that you want to use an equal tuning to approximate specific harmonies or that you have some other more indirect use in mind.
 
== Motivation ==
If you want to find an approximation to a just interval, the immediate question is: why would you need an algorithm instead of just looking at the [[direct approximation]] possible in the edo? The answer is to avoid contradictions. For example, it might not be true that [[~]][[6/5]] × [[~]][[5/4]] = [[~]][[3/2]] or that [[~]]9/1 × [[~]]5/1 = [[~]]45/1 if you are just always using the direct approximation of each of these frequency ratios (6:5, 5:4, 3:2, 9:1, etc.) in the edo, because of something called ''inconsistency'', which means if you know what the intervals that you want to combine are, then combining their approximations in the edo does not give you the same result as multiplying their ratios ''first'' and ''then'' using the direct approximation of that in the edo. When this happens, we say that the arithmetic is ''inconsistent''. Therefore when this does not happen, we say that the result is [[consistent]].
 
Unfortunately, when this happens, it is not possible to fix the inconsistency, except by using a different edo that approximates the intervals better so that the multiplication or division of their approximations is consistent, but that is not actually necessary. Plus, even if you did that, there would still be other inconsistent ratios because an approximation cannot be perfect, so you cannot truly eliminate the inconsistency completely. Rather than giving up and saying that we cannot guarantee that ~6/5 × ~5/4 = ~3/2 or ~9/1 × ~5/1 = ~45/1 or ~135/128 × ~24/25 = ~81/80, etc. in our chosen edo, it turns out we ''can'' actually guarantee this if we are willing to allow one or more of these ratios to ''not'' use the closest approximation, especially considering that we probably do not mind using the second-best approximation in more complex intervals if we can guarantee that the arithmetic never fails us. A val will allow us to do that, which brings us to…


== Definition ==
== Definition ==
A [[val]] is a list of numbers telling you the approximation of each [[prime harmonic]] used in an edo in terms of steps, where by ''prime harmonic'' we mean each frequency ratio ''p''/1 (where ''p'' is a {{w|prime number}}). This list of integers by convention corresponds to all primes up to some largest prime (the [[limit]]) so that we can tell what number represents the ''mapping'' of what prime by its place in the list. 1st place is prime 2's mapping (a.k.a. the edo), 2nd place is prime 3's mapping, 3rd place is prime 5's mapping, 4th is prime 7's, etc. 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 [[#Warts and generalized patent vals|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 ===
* 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)
* 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)
* 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.
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 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):
* 9/8 = (3 × 3)/(2 × 2 × 2)
* 5/4 = 5/(2 × 2)
* 45/32 = (3 × 3 × 5)/(2 × 2 × 2 × 2 × 2)
Now all we do is substitute each occurrence of each prime with adding (or subtracting if we are dividing) the corresponding number of ''steps'' for that prime given by our val:
* 9/8 is mapped to (41 + 41) - (26 + 26 + 26) = 82 - 78 = 4 steps (so represented by a frequency ratio of 2<sup>4/26</sup> = 1.112…/1)
* 5/4 is mapped to 60 - (26 + 26) = 60 - 52 = 8 steps (so represented by a frequency ratio of 2<sup>8/26</sup> = 1.237…/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.
Now let us compare to the closest approximations:
* log<sub>2</sub>(9/8) × 26 = 4.418… which rounds to 4 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
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:
* 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 }}
* 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.
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.
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 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)
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.
== 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.
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.
== Mathematical definition ==
Mathematically, a val is a type of function that inputs a {{w|rational number}} (ratio) and outputs a number of steps that represents what interval of the edo we use to approximate that frequency ratio. If ''a''/''b'' is our ratio and ''k'' is the output of the function, then the interval* of ''N''-edo is 2<sup>''k''/''N''</sup> if we assume a pure octave tuning which is often written with the backslash notation.
It is not just any such function though; it is a function with a special property called {{w|linearity}} that allows our arithmetic to be internally consistent (having an internal logic) in the way described above; here ''internally consistent'' is meant in the English sense, so should not be confused with [[consistency]] in the aforediscussed technical sense. The most obvious use of a val (the one discussed in the example) is to algorithmically determine JI interpretations of intervals in edo, which is called using the edo as an equal temperament or rank-1 temperament, where ''rank-1'' means that it corresponds to a 1-dimensional grid of notes related by the same (usually {{w|irrational number|irrational}}) frequency ratios.
Also note that in practice vals are ''very far'' from just any list of positive integers; rather, they are generally equal to or one off from the lists of integers that correspond to a ''patent val''.
=== Warts and generalized patent vals ===
{{Main| Generalized patent val }}
{{See also| patent val }}
The algorithm/process for producing a val does not actually require us to use a purely-tuned 2/1 (octave); instead we can stretch or compress the octave, resulting in potentially different mappings for primes, which is more common the more off the prime is and the more we alter the octave. This can give us a sense in which certain vals which are not patent vals are patent in a more broad sense, hence ''generalized''.


A val is a map representing how to view the intervals in a single chain of generators (→[[periods and generators]]) as the tempered versions of intervals in just intonation (JI). They form the link between things like EDOs and JI, and by doing so form the basis for all of regular temperament theory. It's very common for vals to refer to EDOs specifically, although they also show us how to relate larger chains of generators to JI as well (such as a stack of meantone fifths).
This works by instead of doing log<sub>2</sub>(''p'') (where ''p'' is prime) we use log<sub>2.01…</sub>(''p'') or something to that effect, where 2.01/1 is our altered version of 2/1. The ''val'' produced by a slight alteration is usually the same, so there are actually continuous ranges where the val produced is the same.


A val accomplishes the goal of mapping all intervals in some [[harmonic limit]] by simply notating how many steps in the chain it takes to get to each of the primes within the limit. Since every positive rational number can be described as a product of primes, any mapping for the primes hence implies a mapping for all of the positive rational numbers within the prime limit. By mapping the primes and letting the composite rationals fall where they may, a val tells us which interval in the chain represents the tempered 3/2, which interval represents the tempered 5/4, and so forth.
For example, let us say we want to interpret [[104edo]] (104-tone equal temperament) as a [[19-limit]] temperament; there is two possible mappings to use for 5; all primes up to and including 19 are sharp except for 5 which is quite flat, which causes a lot of inconsistencies; therefore a more natural val to use than the patent val is using the second-best mapping for 5, as log<sub>2</sub>(5) × 104 = 241.4805 is very close to exactly off anyways, and given the precision of 104edo, using the second-best mapping is very reasonable, as usually the sharpness of prime 5 cancels out with the sharpness of other primes when constructing ratios from them. But if we basically always want to use the patent val except for a slight modification to a second-best mapping for a handful of primes, do we really need to specify the full val every time? The answer is of course no.  


Vals are usually written in the notation {{val| ''a b c d e f'' … }}, where each successive column represents a successive prime, such as 2, 3, 5, 7, 11, 13… etc, in that order, up to some [[Harmonic Limit|prime limit]] ''p''.
We can specify the patent val of ''N''-edo as just ''N'', then we can specify each prime we want to map to the second best approximation by a cryptic letter shorthand:
* adding a means you make the mapping of 2 worse
* adding b means you make the mapping of 3 worse
* adding c means you make the mapping of 5 worse
* adding d means you make the mapping of 7 worse
* etc.
So we can refer to "104c" (not to be confused with 104{{cent}} (cents)), where we mnemonically think "a, b, '''c'''; 3rd letter; 3rd prime is 2, 3, '''5'''; there is one c so we make the mapping of prime 5 worse (further from just) ''once'' compared to patent".


Vals are important because they provide a way to mathematically formalize how, specifically, the intervals in a random chain of generators are viewed as the tempered versions of more fundamental just intonation intervals. They can also be viewed as a way to map JI "onto" the chain, imbuing it with a harmonic context. Vals will enable you to figure out what commas your temperament eliminates, what [[comma pump]]s are available in the temperament, what the most consonant chords in the temperament are, how to optimize the octave stretch of the temperament to minimize tuning error, what EDOs support your temperament, and other operations as of yet undiscovered.
Perhaps a much clearer notation is to specify explicitly which primes are altered how many times in which direction from the patent val; the notation used by [https://sintel.pythonanywhere.com sintel's temperament finder] would be: 104[+5] and if we also "''warted''" prime 23 (which is similarly flat to prime 5), it'd be 104[+5, +23], which corresponds in the other notation to 104ci where i is the 9th letter of the alphabet and 23 is the 9th prime. They differ on how to notate more than one wart though; with [+5, +23] the direction is ''always'' sharpwards, and [-5, -23] would be flatwards, while with "ci" it's based on "second-best, third-best, etc."; so repeated warts with letters have alternating error while repeated +'s and -'s always have the same kind of error. Slight variations of the notation that [[User:sintel|sintel]] uses have been reinvented and suggested by multiple people, so the one in use by a temperament finder is prioritized here.


For a more mathematically intensive introduction to vals, see [[Vals and Tuning Space]]. For the characterization of higher rank temperaments, see [[mapping]].  
== Applications ==
{{todo | cleanup/accessibility}}
As discussed, vals are important in regular temperament theory because they provide a way to mathematically formalize how, specifically, the intervals in some set of equally spaced pitches are viewed as the tempered versions of more fundamental just intonation intervals. They can also be viewed as a way to map JI "onto" the chain, imbuing it with a harmonic context. Vals will enable you to figure out what commas your temperament eliminates, what [[comma pump]]s are available in the temperament, what the most consonant chords in the temperament are, how to optimize the octave stretch of the temperament to minimize tuning error, what EDOs support your temperament, and other operations as of yet undiscovered.


== Example EDO ==
For a more mathematically intensive introduction to vals, see [[Vals and tuning space]]. For the characterization of higher-rank temperaments, see [[Mapping]].


Consider the 5-limit val {{val| 12 19 28 }}. This val tells us that you should view 12 generator steps as mapping to the octave 2/1. Since the temperament which maps 12 generator steps to the octave is 12-EDO, this means you're describing 12-EDO.
=== Another example (12edo) ===
Consider the 5-limit patent val {{val| 12 19 28 }}. This val tells us that you should view 12 generator steps as mapping to the octave 2/1. Since the temperament which maps 12 generator steps to the octave is 12edo, this means you're describing a val for 12edo.


The val {{val| 12 19 28 }}, in addition to saying that 12 steps of 12-equal represents 2/1, also states explicitly that 19 steps of 12-equal represents a tempered 3/1, and 28 steps of 12-equal represents a tempered 5/1.
The val {{val| 12 19 28 }}, in addition to saying that 12 steps of 12-equal represents 2/1, also states explicitly that 19 steps of 12-equal represents a tempered 3/1, and 28 steps of 12-equal represents a tempered 5/1.


Now assume you'd like to extend 12-EDO into the 7-limit. If you would like to assume the perspective that the 10 step interval in 12-equal (representing 1000 cents) is a very tempered 7/4, then that means that 7/1, which is 7/4 with two octaves stacked on top, is equal to 10 steps + 12 steps + 12 steps = 34 steps. This decision can hence be represented by using the 7-limit {{val| 12 19 28 34 }} val.
Now assume you'd like to extend 12edo into the 7-limit. If you would like to assume the perspective that the 10 step interval in 12-equal (representing 1000 cents) is a very tempered 7/4, then that means that 7/1, which is 7/4 with two octaves stacked on top, is equal to 10 steps + 12 steps + 12 steps = 34 steps. This decision can hence be represented by using the 7-limit patent val for 12edo: {{val| 12 19 28 34 }}.
 
If for some strange reason you'd instead like to say that 900 cents is 7/4, then that would be represented by the {{val| 12 19 28 33 }} val (notated 12d), and if you'd like to say that 1100 cents is 7/4, that would be represented by the {{val| 12 19 28 35 }} (12dd) val.
 
== Warts explanation ==
{{ todo | rework }}
 
The general rules:
* Wart letters specify prime approximations being altered from the patent val. The ''n''-th letter of the alphabet refers to the ''n''-th prime: a~2, b~3, c~5, d~7, e~11 etc.
* A letter which appears ''m'' times refers to the (''m'' + 1)-th most accurate mapping for that prime.
* So, if a number representing a val is wartless, it is taken to mean the patent val.
* A wart letter may ''prefix'' the number, in which case it specifies the corresponding prime as the [[interval of equivalence]] to be divided by the following number. For example, b13 refers to the patent val of [[13edt|13ed3]]. The octave is assumed, so "a" is typically not written out.
* In Graham Breed's temperament finder, the wart letter "p" is used to make explicit that the number refers to the patent val (though the letter originally was intended to stand for "prime"). Note that "p" is logically the letter for prime 53.
* In Graham Breed's temperament finder, the wart letter "q" and after refers each non-prime basis of composite/fractional subgroup, respectively and temporarily.
 
=== Sparse Offset Val notation ===
In 2022 [[User:Mike Battaglia|Mike Battaglia]] proposed '''SOV notation''' as a way to be explicit about which primes are being affected and in which direction. In 2024 it was further refined by him and [[User:Frostburn|Lumi Pakkanen]] to be more analogous to [[Ups and downs notation]].
 
Generalized patent vals are notated using the number of divisions followed by square brackets e.g. 17[] for {{val| 17 27 39 }}.
 
To indicate a wider mapping for a prime it is prefixed with a carret (^) e.g. 17[^5] for {{val| 17 27 40 }}.
 
To indicate a narrower mapping for a prime it is prefixed with a vee (v) e.g. 17[v5] for {{val| 17 27 38 }}.
 
The prefixes stack e.g. 17[^^5] corresponds to {{val| 17 27 41 }}.
 
Multiple modifications are separated by commas (and optionally spaces) e.g. 17[v3, ^5] for {{val| 17 26 40 }}.
 
The interval of equivalence may be prefixed in square brackets e.g. [3]13[] for {{val| 8 13 19 }} (subgroup 2.3.5).
 
The subgroup may be made explicit separated by an "at" sign (@) at the end e.g. 46[]@2.3.7.13/5 for {{val| 46 73 129 63 }} (subgroup 2.3.7.13/5).
 
Formal primes are treated the same way as actual primes e.g. 46[^13/5]@2.3.7.13/5 for {{val| 46 73 129 64 }} (subgroup 2.3.7.13/5)
 
For patent vals the empty square brackets are optional when using an "at" sign. The subgroup itself is optional if its obvious from context e.g. 12@ for {{val|12 19 28 }} (subgroup 2.3.5).
 
The 2022 version used a plus sign (+) in place of the caret and a minus sign (-) in place of the vee.
 
== Vals vs. mappings ==
A val is more specific than a mapping, both as in the general mathematical sense as well as [[mapping|the regular temperament sense]]:
# A val can be thought of as a mapping with one row. Put another way, the rows of mappings are vals. To be mathematically precise, a val is a specific type of [[Wikipedia:Linear_map|(linear) mapping]] called a [[Wikipedia:Linear_form|"linear form", or "linear functional"]], which means that its output is a [[Wikipedia:Scalar_(mathematics)|scalar]], or in other words, a single number. This corresponds to the fact that a val must be a 1xM array of numbers, or in other words a [[Wikipedia:Vector_(mathematics_and_physics)|vector]] (specifically a [[Wikipedia:Row_and_column_vectors|row vector]], AKA covector).
# In standard usage, vals must have only integer entries (when expressed in the standard, non-weighted coordinate basis), although t[[Tuning map|uning maps]] are sometimes considered a kind of val.
# Being short for "[[Wikipedia:Valuation_(algebra)|valuation]]", a val is a formal linear sum of [[Wikipedia:P-adic_order|p-adic valuations]].
 
In practice, most single-row mappings in RTT are vals, because we usually deal with integer entries, and the other specifications only mean anything to advanced mathematicians.
 
== Vals in non-prime-limit spaces ==
 
=== In JI subgroups ===
''Main article: [[Subgroup monzos and vals]]''
 
It is rather intuitive to generalize the concept of monzos and vals from the ''p''-limit (for some prime ''p'') to other [[JI subgroup]]s. This can be useful when considering different edo tunings of [[subgroup temperaments]]. [[Gene Ward Smith]] called these "[[sval]]s", short for "[[subgroup val]]s", and correspondingly "[[smonzo]]s" as short for "[[subgroup monzo]]s".
 
To notate a subgroup val, we typically precede the "bra" (angle bracket) notation with an indicator regarding the subgroup (and choice of basis, as we don't have to use only ascending primes). For instance, the patent val for 12 equal on the 2.3.7 subgroup is often notated "2.3.7 {{val|12 19 34}}". If the subgroup indicator isn't present, the subgroup can be inferred from context. It is very typical for a val with no explicit subgroup indicator to be interpreted as representing some prime limit, e.g. {{val| a b c }} would represent a 5-limit val (in fact, the normal vals introduced in this page can be seen as entirely contained within this special case).
 
Note that we could, for instance, use a different basis for the same subgroup - for instance, we could instead write "2.3.21 {{val| 12 19 53 }}", which is the 12 equal patent val in the "2.3.21" subgroup. Since the "2.3.21" subgroup is the same as the "2.3.7" subgroup, just written with a different basis, these two apparently "different" svals represent the same map from this subgroup to a rank-1 generator chain. (It is a matter of semantics if these are thought of as "different" svals or "the same sval" written using a different basis.)
 
Svals can also be written using subgroups that don't involve primes, e.g. 2.3.7.13/5 {{val| 46 73 129 63 }}.
 
Note that the notion of a "patent val" for a subgroup val may not agree with the patent val on a prime limit. For instance, [[13edo]]'s "2.9.5 [[patent val]]" can be written as "2.9.5 {{val| 13 41 30 }}, because the best approximation to 2 is 13 steps, the best approximation to 9 is 41 steps, and the best approximation to 5 is 30 steps. Note that, however, the patent val on the 2.3.5 subgroup instead maps 3/1 to 21 steps, so that the "induced 9" from the 2.3.5 patent val is not the same as the "direct 9" from the 2.9.5 patent val.
 
This notation is also used for subgroup monzos; e.g. [[81/80]] on the 2.9.5 subgroup is "2.9.5 {{monzo| -4 2 -1 }}", and it is thus easy to see that the 2.9.5 13p val above makes 81/80 [[vanish]]:


If for some strange reason you'd instead like to say that 900 cents is 7/4, then that would be represented by the {{val| 12 19 28 33 }} val, and if you'd like to say that 123000 cents is 7/4, that would be represented by the {{val| 12 19 28 1254 }} val.
&#x27E8;13, 41, 30|2^-4, 9^2, 5^-1&#x27E9; = 13*-4 + 41*2 + 30*-1 = 0.


== Shorthand Notation ==
=== In regular temperaments ===
''Main article: [[Tempered monzos and vals]]''


This is also known as '''warts''' or '''wart notation'''.  
There is also a notion of a ''tempered val'' on a group of ''tempered monzos'', representing intervals in some [[regular temperament]]. These names are sometimes abbreviated as ''tval'' and ''tmonzo'', respectively. Typically, this is made explicit by writing the generators beforehand. When the tempered intervals have accepted names, such as in [[meantone]], we can use names like ''P8'' and ''P5'', so that the tval P8.P5 {{val| 12 7 }} represents the 12edo "patent tval" in meantone (given that particular basis). If the intervals do not have names, a [[transversal]] can be given instead, preceded with the temperament name, so that we have (meantone) 2.3/2 {{val| 12 7 }}, or  (meantone) 2.3/2 {{val| 31 18 }}.


Given an explicit or assumed limit, any [[patent val]] can simply be represented by stating its first coefficient - the digit representing how many generators map to 2/1. For example, the 5-limit patent val for 17-EDO, {{val| 17 27 39 }}, can be called simply, "17".
There are also tempered tuning maps, covered on their respective page.


The patent val for any EDO will use the most accurate mapping for each individual prime. However, it may often be the case that one wants to refer to vals other than the patent val. For example, the 5-limit val {{val| 17 27 40 }}, which maps the 5/4 to the 424 cent interval rather than the 353 cent interval, is not the patent val for 17-EDO but may be preferred because it is lower in overall error. Non-patent vals are specified by adding a “wart” to the end of their name which specifies their deviation from the patent val. In this case, we want to specify that the 5/1 has been changed to use its second-most accurate mapping. Since 5 is the third prime number, we add the third letter of the alphabet to the end of the EDO number, to form "17c".  
== Generalizations ==
The entries of a val measure equal-tempered steps, which can be thought of either as a generator for a rank-1 temperament (and thus the structure can be generalized to account for multiple generators, resulting in a mapping matrix) or as a logarithmic interval size measure (and thus the entries can be generalized to non-integer values to create a tuning map).  


If we wanted to use the third-most accurate mapping for 5, {{val| 7 27 38 }}, we'd write "17cc". In [[17-EDO]], the approximation of the prime-5 component is raised for an odd, and lowered for an even, amount of c letters: <code></code> = 39, <code>c</code> = 40, <code>cc</code> = 38, <code>ccc</code> = 41, <code>cccc</code> = 37.
=== Mapping matrix ===
''Main article: [[Mapping]]''


The general rules:
A mapping matrix is the most common generalization of a val, for a rank-2 or higher temperament. As a result, it has more than one row, To be precise, there is one row for each generator of the temperament.
 
=== Tuning map ===
''Main article: [[Tuning map]]''


* Wart letters specify prime approximations being altered from the patent val
A tuning map generalizes a val in a different way. Instead of treating the entries of a val as equal temperament steps, it treats them as a logarithmic interval size measure (usually cents). Thus, the entries of a tuning map may be any real number. ⟨1200 1901.955] is the tuning map for the justly-tuned 3-limit, and ⟨1200 1896.8 2787.1] is the tuning map for the 5-limit tuned to meantone (specifically, 31edo).  
* The ''n''-th letter of the alphabet refers to the ''n''-th prime: a~2, b~3, c~5, d~7, e~11 etc.
* A letter which appears m times refers to the (''m'' + 1)-th most accurate mapping for that prime.  
* ''So, if a number representing a val is wartless, it is taken to mean the patent val''.  


== See also ==
== See also ==
* [[Mapping]]
* [[Mapping]]
* [[Vals and Tuning Space]]
* [[Map]]
* [[Monzos and Interval Space]]
* [[Monzo]]
* [[Monzos and interval space]]
* [[Patent val]]       
* [[Patent val]]       
* Definition on Tonalsoft's encyclopedia of microtonal music theory: http://tonalsoft.com/enc/v/val.aspx


[[Category:Definition]]
[[Category:Regular temperament theory]]
[[Category:Intervals]]
[[Category:Theory]]
[[Category:Tuning]]
[[Category:Tuning]]
[[Category:Val]]
[[Category:Val]]
[[Category:Terms]]
[[Category:Math]]
[[Category:Notation]]
[[Category:Notation]]
Retrieved from "https://en.xen.wiki/w/Val"