Tuesday, October 27, 2015

Music for Conworlders: Polyphony

Polyphony is the texture in which you have melodies simultaneously. The interest is created by their rhythmic and melodic independence.

Several styles of polyphony exist in western music. Out of these, some are fairly obscure local folk styles (e.g. Outer Hebrides choral singing, various folk song styles in the Balkans, etc), but there is one that is not all that obscure – in fact, fairly prominently known. It has the additional benefit of being well formalized, well studied, and material on it is easily available - I am of course speaking of baroque counterpoint.

Baroque polyphony developed out of renaissance polyphony, which developed out of medieval polyphony. Each of these nodes in the family tree of western counterpoint has branches that did not contribute much to the descendants.

The formalizations that exist may be a bit too strict in the sense that they do in fact forbid things that were common. In part, it seems these formalizations might have been more like guidelines or even good things to practice, because doing so made one more aware of the possibilities and problems that various things brought with them.

The rules of counterpoint operate on several levels: there's rules that govern how melodies are to be written. In part, these seem to favour for single melodies that they be identified as "a single voice". There is probably some form of biological reason why we tend to hear things with very similar pitches as coming from the same source if they have the same timbre, but large differences in pitch even on the same timbre is easily parsed as multiple separate sources of sound. This, in fact, is an easy way of "faking" polyphony: make multiple big jumps. The brain will parse distant melodical snippets as part of different melodies, and those that are close together in pitch, but separated by intervening notes in other registers will still be heard as something akin to a melody.

For pairs (or larger sets) of melodies, the rules seem to favour designing them in ways that keep them distinct, so that they not merge into single "supertone melodies" – i.e. if you do a lot of, say, parallel movement, the brain will soon merge the separate melodies that are moving in parallel.

However, only when melodies are very consonant does the risk for that seem to be very high - and this is why parallel fifths and octaves were quite vigorously avoided in baroque music (except as a timbral effect!). Thirds and sixths are slightly less consonant, so some amount of parallel movement on those is not forbidden. With a different tuning or different timbre, the consonance profiles of our different intervals might make the ban on parallel movement less important, or maybe even more important - parallel movement in just intonation might make consonant intervals almost vanish into each other, conversely, 19 tone equal temperament might make parallel fifths unbearably badly tuned?

So, counterpoint favours melodies that move in different directions a lot. Of course, as soon as you have more than two melodies, you'll have to compromise on that at least some of the time. (If you have more than three, it's even impossible not to compromise on it). You have to end up deciding which voices to move similarly or parallelly, etc.

It pays off to read up on the rules of counterpoint, and consider their role in the musical context, and then consider to what extent they can be applied in your conculture's music.

In western music, an important aspect has been development. Development is reusing melodical elements in new combinations with other material - either material you already presented earlier in the piece, or new material. Development seems rather uncommon globally – variations are a much more popular thing worldwide. A variation is simply a melody with some elements changed – a sequence turns down instead of going up, a tone is substituted for another, the order of some tones is reversed, etc.


Thursday, October 22, 2015

Microtonal Theorizing: A roadmap to my ideas

So, while I am writing these posts I am also kind of developing my own take on the ideas I present – this is why it takes the better part of forever to make new posts. In large parts, this is stuff based on things other xenharmonists and theorists have worked out, but it probably bears some undeniable traces of my own mind as well: I might have misunderstood other theorists' ideas, or maybe I have even introduced some ideas of my own.

So, a roadmap:
  • overtone series and JI to approximations of finite subsets thereof in an equal temperament
    • subsets of the overtone series, esp. partially overlapping ones given different starting points in the equal temperament
  •  from temperaments and JI to chords as subsets of an ET
  • from temperaments and JI to MOSes and MODMOSes as subsets of an ET
  • chords as subsets of MOSes and MODMOSes
  • movements by restricted paths /by step-size or step-type combinations) within and between group-structures of chords within a temperament; the subset of movements that is within a MOS/MODMOS is of special interest
  • movements by restricted paths from MOS/MODMOS to rotation of the same MOS/MODMOS as a group operation. movements from one type of MOS/MODMOS to another type as a group operation.
  • OTHER thing altogether: Comma pumps. Making comma pumps and the above come together. Using the inter-MOS/MODMOS modulation or extra-MOS/MODMOS modulation to create compelling chord progressions
  • embedding MOSes/MODMOSes in larger MOSes/MODMOSes and relating this to the previous set of ideas (i.e. melodies moving in chords moving in scalesmoving in scalesmoving in scales...)
  • Question: is there anything analogous to the comma pump in higher-level modulation?
  • Question: does any other weird phenomenon happen in modulation that involves multiple levels of modulation, where weird things start happening?

Thursday, May 7, 2015

Tuning Theory for Conworlders: On With 11 - Chords


Now, we've previously considered the intervals of 12-tone equal temperament as approximations of a specific set of just intonation intervals, viz. something along the lines of the following:

1/1 16/15 9/8 6/5 5/4 4/3 45/32 3/2 8/5 5/3 16/9 15/8 just intonation major scale intervals bolded, other intervals of some kind of chromatic just intonation scale intervals inbetween
For the record, 16/15 ≃ 17/16, 8/5 ≃ 25/16, 6/5 ≃ 64/54, 16/9 ≃ 9/5, etc.
What just intonation intervals do we approximate now?

We have previously noted how an interval in a temperament is an approximation of another interval - such as four steps in 12-edo approximating 5/4. However, a thing I never said explicitly is that the tempered interval really approximates multiple just intonation intervals. C-E thus approximates 5/4, 81/64, 65536/50625, etc. Some of these approximations may have really big errors, however - and the error might grow as we stack them - even if C-E approximates 5/4, this doesn't mean C-G# (which is C→E→G#, that is, we repeat the same interval twice) is a very good approximation of (5/4)2. Now, one thing we might notice is that 11-edo's minor second is pretty close to that of 12-edo, so they probably approximate the very same intervals - we can probably claim all of 16/15, 17/16, 18/17 and even maybe 15/14 as intervals it approximates. Of course, we also have intervals further up the overtone series we could claim - 181/170 very probably could be included, for one. (Try calculating the cents value for these intervals and compare to the cent value obtained for 11-edo above.) (In fact, a simple way of showing that any interval can approximate any number of intervals is to decide on a permissible error, then find a ratio within that error boundary, increase the denominator and enumerator by some factor, then reduce or increase one of them just a little towards the 'center' of the permitted range. We can repeat this procedure an infinite number of times.)

When looking at the major second, we get a much wider gap. We're somewhere between 9/8 and 8/7. So we just go ahead and sort of claim both as being represented by the second.

The minor third is worse. Is it a rather wide 6/5? A really narrow 11/9? Is it 17/14? Note - multiple options may all work for us.

The major third is somewhat close to 9/7, but also to 14/11 and 22/17. This is a good time to note certain things: if we want to build chords, we may want to find reasonably simple series in this. Major chords, as noted, consist of the very elegant triplet 4:5:6. We won't find something that simple in 11-edo, because our 3/2 (6:4) is totally missing. However, to make it easier to find series, we might want to try and find a) things with similar denominators, or b) things with similar enumerators. If we find a/a, b/a, c/a, however, we'll also find c/c. c/b, c/a. So we only need to look for either the same denominators or the same enumerators.

We go on: the perfect fourth is pretty close to 11/8, but also 15/11. The "perfect fifth", of course, is 16/11 (inverse of 11/8), or 22/15 (inverse of 15/11).
Minor sixth - 11/7, 14/9, 17/11.
Major sixth - 5/3, 18/11, 28/17
Minor seventh - 9/5, 16/9, 14/8, 30/17
Major seventh - 15/8, 17/9, 28/15, 32/17
So, given in the form above, we get something like (and note that each number may be replaced by other options):
1/1 17/16 8/7 17/14 14/11 11/8 16/11 11/7 18/11 14/8 17/9
 I won't arrange them as a table, however, arranging them by tables such that a column represents a shared denominator is a good idea. Recall that e.g. 7/4 = 14/8, so you may want to reproduce any number with relatively simple denominators in terms of prime factorization in other columns, so .e.g 7/4 also appears as 21/12, 14/8, etc. Anyways, some series I have found in this are:
8:11:14:(17) (so, starting at 8/8 we add 3 to the enumerator at each step!)
7:9:11 (13/7 and 13/9 are reasonably well approximated as well, so that might be an option - 13/11 is badly approximated, though - but of course, the precision you may want is up to you)
17:22:28 (17+5, 22+6)
I like having a common constant added at each step: a/a, (a+b)/a, (a+2b)/a, (a+3b)/a ..., but this is not strictly speaking a necessity. 8:9:12 chords sound fairly good and are popular in some western music, as are 6:8:9 chords.

These differ from the 4:5:6 triplet in a few interesting ways:
8:11:14:17 starts with a wide fourth, on top of which there's a major third; these add up to a minor seventh (unlike the major sixth we'd get in 12-edo by stacking the intervals that most closely correspond over there). The chord thus covers the octave quite differently from our major triplet: root-fourth-seventh, rather than root-third-fifth. Even if we compared the most similar inversions, we get a slight difference: 8:11:14 -> root-fourth-seventh, 4:5:6 -> root-fourth-sixth.

Let's try some rather unrestricted chord progressions using chords of these kinds. My samples here are not in 11-tet, but rather use (almost) just intonation and lots of inversions and "smooth voice leading", i.e. I try to move voices by small steps and preferrably as few changes when going from one chord to the next:

Now, the chords given above are almost perfectly in tune compared to the overtone series; in 11-edo, this is a luxury we don't have. On the other hand, we gain another benefit: we won't keep drifting by tiny bits of a semitone for (almost) every chord change we do.

Another thing, though - we have not yet considered how these chords fit into any scale - the above progressions are just unstructured movements around pitch space, which can be all nice and dandy, but it's hard to compose with such an open-ended pitch-world. Let's try building scales with this chord as our building block. Our chord consists of the tones at indexes {0, 5, 9}. Let us build an identical chord from 9: {9, 3, 7}. We now have {0,3,5,7,9} for our scale. A reasonable pentatonic scale. It also gives us two instances of the "minor" version of our chord - {5,9,3}, {7,0,5}. The scale we now have obtained goes by the name machine[5] in xenharmonic circles. Usually, it is constructed as a stack of major seconds - starting at the tone we now indexed '3'. We could repeat this operation, by stacking a new chord on top of 7: {7, 1, 5}. We're in luck - we only add one tone to the entire scale, giving us {0,1,3,5,7,9}, which is machine[6], starting at index 1. Much like each major scale (meantone[7]) contains three pentatonic major scales (meantone[5]) (CDEFGABC contains CDEGA, FGACD and GABCD), machine[6] contains two machine[5] - {1,3,5,7,9,11} contains both {0,3,5,7,9} and {9,1,3,5,7}. This can be of some melodic interest, possibly, or of some use for transposition and the like?

We could try stacking our chords in a different manner. {0,5,9}, and a new identical stack on top of 5: {5,10,3}, and maybe even once more on top of 10: {10, 4, 8}. We now have {0,3,4,5,8,9,10}. This does not look all that great - lots of huge stacks of minor seconds, coupled with large empty swathes.

How about one chord on top of both member tones of the original chord:
{0,5,9}, [5,10,3}, {9,3,7}. We get {0,3,5,7,10} - a slightly uneven pentatonic scale. Might be useful though.

What about the utonal chord? {0,4,9}. Repeated stacking on top of the topmost note gives {0,4,9}, {9,2,7}, {7,0,5} which gives {0,2,4,5,7,9} which is a rotation of the {0, 1, 3, 5 ,7, 9} scale we already looked at once.

Wednesday, May 6, 2015

Music Theory for Conworlders: An Example: 11-tone Equal Temperament

Looking at something that is very close to 12-tone equal temperament in one sense (very similar size for the semitone), yet very different in other senses (complete lack of perfect fifths and fourths, very sharp major thirds and minor thirds, ...) might be useful.

11-tone equal temperament's lack of fifths might seem to be a rather challenging thing, given the prevalence of fifths in the music we're used to. Let us compare the intervals of 11 and 12. In the cents given, I will underline repeating sequences. 12-edo to the left, 11-edo to the right.
minor second: 100 cents, 109.09... cents
major seconds 200 cents, 218.18... cents
minor third: 300 cents, 327.27... cents
major third: 400 cents, 436.36... cents
perfect fourth: 500 cents, 545.45... cents
Here already we're seeing a pretty large divergence already - the perfect fourth is already almost as close to the tritone as it is to the perfect fourth. We compare:
tritone: 600 cents; 545.45... cents? 654.54... cents?
Therefore, we'll consider the next half of the octave to be flat versions of intervals - rather than sharp versions as we did in the first half:
perfect fifth: 700 cents, 654.54... cents
minor sixth: 800 cents, 763.63... cents
major sixth: 900 cents, 872.72... cents
minor seventh: 1000 cents, 981.81... cents
major seventh: 1100 cents, 1090.90...
So, our main "weird" place is the fourths, fifths, and tritones - none of them seem to have very good intervals to correspond to. Of course the thirds as well are pretty far off - only the two kinds of seconds really do rather well (but even then, they're somewhat off). Here's our familiar composition (the mixolydian version) with all intervals replaced by their closest "neighbour" in the other tuning.


This is not particularly beautiful, is it? We will come back to this composition with some reworkings later on. For now, we'll try and consider scales, chords and chord-scale relationships. When we come back to the piece a bit further down, we'll have "better" chords, and maybe have figured out what particular rotation of what particular scale works best (or at least better) for the composition.

The scale I was using in that piece was, in cents, like this:
0, 218, 436, 545, 655, 872, 981
or in terms of step size:
LLssLsL
or in terms of the distribution of step-sizes between the notes: C D EsFsG AsB C. L have ties on them to illustrate that they are 'bigger' than s. If we were to use piano keyboard design to illustrate this scale, it would be like this:

The keys at both ends are C. 

We find that the scale we're now using is not a MOS. (It is a MODMOS, however - a scale that is a 'distortion' of a MOS, given certain restrictions on what kinds of distortions we may use. Many MODMOSes are very useful - and some MOSes might not be! However, let's try and see if a MOS is a good tool for this right now.). By changing one note, we do get a MOS, the results being here:
Now the scale is LsLsLsL. Slightly more of a 'minor' tonality there. We alter the one tone we need altered (viz. we lower one note - basically, our E becomes an Eb). We're now playing on this somewhat more "evenly distributed" keyboard:

Notice again, how the keys at the edge are C:s.

In terms of cents, this is 0, 218, 327, 545, 655, 872, 981. The scale we're now using has a name, the history of which I don't quite know. It's orgone temperament.

Anyways, we may notice the chords are not particularly pretty there - it sounds somewhat off all the way through. We shall go and attempt to see if we could find something even more off - that does sound somewhat good or at least has its own logic, or something else along those lines in the next post. For this, we'll need to look at several different things - chords as approximations of parts of the overtone series, smooth voice movement from chord to chord, and how chords relate to the scales in which they reside.

Wednesday, April 22, 2015

A New Song

I had an idea and made it into a song pretty quickly. It did develop in some ways I had not expected.

This is still a bit of a work in progress, as I am not entirely happy with it. You might notice there's still some rough edges, and I'd guess some work on the structure might be good too.

It starts out in 11 edo/orgone, in this particular scale structure:

AA#BCC#DD#EFF#G
Slightly misleading in a sense, of course, since we're working with eleven tones per octave here - D# is about halfway between 'regular' D# and E (with regards to A), and F# is really closer to 'regular' G than the G given above is.

The funkier bit is in 11 edo/machine, in this particular mode:
AA#BCC#DD#EFF#G
We can compare the two, obviously, by setting them next to each other:
AA#BCC#DD#EFF#G
AA#BCC#DD#EFF#G
The notes I've taken to calling C# and G, which are slight misnomers, are lacking in both.

Saturday, March 28, 2015

Music Theory for Conworlders: Other MOS structures

Okay, so I've established a handful of MOS structures this far:

ssLsL (pentatonic major, s = major second, L = minor third)
LLsLLLs (diatonic major, L = major second, s = minor second)
ssLsssL ('anti-diatonic' mavila, s = slightly wide minor second, L = slightly wide major second)
I am not sure if I gave any 'generally' applicable MOS patterns, but there's one pretty simple one. Examples of it will appear in any set:
AA*B 
where * is the kleene star. This reads out 'one or more A before one B'. Let A, B ∈ {L,s} and A≠B. Since we permit 'rotating' the set, M = A*BA*, where |M| > 2 also is a reasonable description - viz. any string that is at least two symbols long and has at most one B, and an arbitrary number of As before and/or after the B.

This gives us things such as LLLLs, ssssL, LLLLLs, sssssssssL, ... the reason why these are all MOSes should be fairly obvious - all seconds except one will be of the form A (and one of the form B), all thirds will be AA, except two - one will be AB, one will be BA, but the length of AB and BA is the same so we can consider them both to have the length |A|+|B|; for fourths, we get ABA, BAA and AAB as well as AAA, etc.

But these are only a subset of possible MOSes. We can look at an example that is in some use in Bohlen-Pierce:

LssLsLsLs
Or at the 11 edo version of a temperament by the name 'orgone':
LsLsLsL
and another one which I have not found a name for:
ssLssLsL
The plot thickens. Apparently, (AB)*A or (AB)*A(AB)* or somesuch qualifies - Any number of ABs, where A, B ∈ {L,s} and A≠B, and one A at the end - again, permitting rotation of these as well.
The last example also indicates that maybe things like (ABN)*ABN-1? I am not actually entirely sure on whether all scales generated by that form will qualify, although all the previous forms given here do qualify.

And of course, I have previously mentioned the trick of pretending that a MOS is really an equal temperament, and then picking out notes within that MOS by numbering the notes as a sequence and then picking such notes by use of MOSes. I.e. Pentatonic-in-seven as MOSes within the diatonic scale, here given with the 'root' for each 'basic' rotation in large print. Keep in mind that one can further of course 'rotate' within the subset itself:
CDEFGAB
*
****
*****
*****
**
***

**
***
*
**
**
*****
If we were to look at each of these scales in terms of 12-tone equal temperament intervals from the scale root, we'd get:

min2maj2min3maj3p4aug4p5min6maj6min7maj7
*
***
****
****

****

****

****
****

And all of these have their own rotations as well, except of course the three ones I've marked with red, which have identical structures and thus we can ignore the rotations two of them contribute, and the same goes for the green pair. A short not very rigorous investigation suggests to me that the rotations. I probably should code a thing to generate and rotate these for me and then output them as html tables, but I am a bit too tired today.

Tuesday, March 24, 2015

Music Theory for Conworlders: Texture

I have this far developed theory that is suitable for harmony and counterpoint, but I have not really talked much about the concepts of harmony and counterpoint - in fact, I've remained quite silent as to why those would be of any interest whatsoever.

In many human cultures, the usual texture has been one of monophony.


Monophonic version of the familiar tune. The slight change in rhythm has nothing to do with the change in texture, but I felt like it added some slight interest. Note that the file has the wrong name.
Monophony simply consists of one pitch played at a time. The pitch can be played by multiple instruments - and in fact lots of middle east music basically consists of a whole ensemble playing the same melodies at the same pitch, and the combinations of instruments simply create different complex timbres. Timbral variation can be obtained by, say, having some instruments be silent in some parts. Whether octaves are to be considered separate pitches for this classification differs between authorities, but if the only simultaneous interval that is permitted is octaves, you probably won't go wrong by calling it monophony.

Examples of monophony include the various plainchants, Chinese art music and Arabic traditional music. Apparently also several African vocal traditions. You've also probably produced monophony yourself - singing unaccompanied is a form of monophony.

A slightly extended monophony can be achieved by including a drone - a tone that basically is sustained throughout the piece. Examples of this style can be found in many places - most bagpipe traditions, the hurdy gurdy and related instruments, and lots of Indian music. Continuing on this, we can again listen to the same tune:


Monophonic tune with C as its drone. 


The same tune can be turned into a somewhat different tune simply by changing the drone - and by that realization, we're getting quite close to homophony instead.



Same monophonic tune with A as its drone instead of C.
As a final comment on drones, they need of course not be bass notes - they could be higher in pitch than the melody stuff as well.

Homophony has more voices than just the melody - however, the other voices mainly serve to create a harmonic background, and not to provide all that much in ways of harmonic interest. Therefore, their rhythmic behaviour tends to be pretty similar. The versions of my tune with chords basically all have been pretty simple homophony.

One further type of texture is called heterophony.


A rather fantastic tradition of art music that is replete with heterophony is the Indonesian gamelan. It is well worth familiarizing yourself with it - there's hundreds of records, and of course youtube videos. Basically, heterophony consists of multiple voices playing the same melody - but they occasionally deviate in ways peculiar to their own style. Imagine that two people who have learned the same song, but slightly differently, come together and try singing it in unison - but occasionally, they deviate from each other's lines - their rhythm differs or their pitch selection differs, or both.

Finally, there's polyphony. Polyphony is famously present in Baroque music, but also appears in lots of African styles, Georgian folk music, various musics of the Balkans.  Polyphony.ge has a map over different forms of polyphony over the world, and a variety of interesting information in general.

Polyphony as a texture has a lot of variation. Generally, there's more than one melody simultaneously, and they both provide some interest. The interactions between the two or more melodies should be the central idea. Polyphony is quite complicated, however, and I will probably deal more with that in a separate post.

Saturday, March 21, 2015

Music Theory for Conworlders: Mavila

So, I've discussed a fair bit about scales that are rather closely related to twelve-tone equal temperament. I've explained informally how we can, by detuning the fifth, make four fifths equal a major third. I might have implied that we can find other near-identities and 'temper' out the difference - i.e. we're kind of doing that with (5/4)^3 = 2, in a sense, in 12-tone equal temperament. In that case, we only temper 5/4 by raising it a bit, and we keep 2 intact. We could raise 5/4 less and alter our octave or something, but let's not go there quite yet.

Could we, perchance, temper out a bigger difference? Yes, we could!

If we were to decrease the size of the fifth, so that the following holds:
Four fifths give a third
Two thirds give a fifth
 then it seems clear we've created a third that is midway between major and minor - the upper and lower half of the chord are of equal size. In fact, there's but one scale where the above solution exists (while maintaining octaves): eight fifths obviously must equal a fifth then, which tells us that it is seven-tone equal temperament we are dealing with. Seven-tone equal temperament tempers out the difference between major and minor thirds (or between minor and major seconds). The fifth is fairly low (about 685 cents). Thus, the scale we've obtained is EEEEEEE (for 'equal' or 'element'), instead of LLsLLLs. It is attested in human cultures - the piphat and pinpeat styles of Thailand and Cambodia use it. However, this does not make it an end point! We can go further!
For comparison, though, here's our familiar composition, now in 7 tone equal temperament on percussive-melodic instruments.  
Let's pick a generator that is fairly easy to deal with, but is lower than 685 - so say 675. This gives us a series of [0, 675, 150, 825, 300, 975, 450]. As we did with the regular meantone structure, we rotate it (by subtracting 675 from each element) and we get
mavila : 0, 150, 300, 525, 675, 825, 975.
for comparison, the regular 12-et major and minor scales
major: 0, 200, 400, 500, 700, 900, 1100
minor: 0, 200, 300, 500, 700, 800, 1000
So, like major, we have equal steps from C to D', and from D' to E'. (Where ' just marks "intervals obtained by naming the tones by the same sequence of letters and adding an apostrophe to show we're not doing the major scale" ; like major we have equal steps ever from F to B; like minor, we have the a 300c third, roughly a 800 cent sixth and roughly a 1000 cent seventh. Where major has small steps, this has large steps - where major has small steps, this has large. (If we were to rotate it to the same 'starting note' as minor, we'd actually get the opposite result - large steps corresponding to small and small to large, etc - but major intervals instead of minor and vice versa)

We get a thing that sounds like this:

Clearly, there's some drastic changes in sound from the previous versions of this song we've had: major is minor, minor is major! How did that happen?

 What happens here is that L < s, so it makes sense to change our notation, s:=L', L:=s' (where ' marks 'what previously was'). We obtain ssLsssL. Bizarro-major! If we do some calculations, we find that for s = 1, L = 2, we get 9 steps in total, for s = 2, L=3 we get 16 steps in total. We can of course try other numbers - 3,5; 4,5; ... - these numbers of course giving the relationship between the sizes of the large and small steps. we'll get larger temperaments. 23 and 25 are fairly popular for this particular scale. (In fact, if you look at 16 tone equal temperament, you'll find that it has 675 cent fifths, and thus was the scale I started out with here.) Of course, we could take a major key composition in our regular temperament and remap it to minor (or vice versa), but we won't retain the distribution of step-sizes then: instead of LL giving major turning into ss giving minor, we'll have to replace some L with s, and some L will remain L for that transition to happen. This way, [L, s] := [s, L] is possible.

What's interesting with this scale is that it's actually attested in real life. Not only that, but it is attested in the music of wildly separate peoples - some Indonesian gamelan scales and some African scales. You might have noticed it did not sound all too good with the vaguely organ-like timbre I used in the sample above. So let's go and change that:

Because the chords have no sustain on the instruments used, repetition is used instead.
We have something a bit more un-western already, even if we fundamentally work with the same kind of building blocks. But let's try and see what else we can do with it:
The variations for how the chord instrument plays its chords are not particularly systematic here. The patterns only illustrate some of the endless variations that could be used.
Also, the slight 'vibrato'-like sound on the melody instrument comes from three instruments playing it - one is a bit too sharp, the other a bit too flat, and this produces 'difference waves' that give it a shimmering quality.

We're already getting somewhere a bit afield from western European music! We could finally try and change the kind of accompaniment a bit more drastically, and mostly avoid the western chord. There's options for it - we could use dyads ('two tone chords') - iirc, much Indonesian gamelan music uses dyads quite a lot, mainly focuses on those closest in size to our 'fifths' and 'sixths'. Thus, their accompaniment tends to stick to parallel simultaneous playing of those intervals. Here, I'm doing another thing instead: sequences of tones, along the lines of CDECDECDE or GAFGAFGAF or GFEGFEGFE or things like that. I vary the patterns a bit:


Any composition in meantone[5] (i.e. our pentatonic scale) or meantone[7] (i.e. our major and minor scales, and their modes) can be translated to mavila while retaining a lot of the structural properties: large steps will turn to small steps, small steps to large; this means the same applies to combinations of steps - minor thirds turn major, major thirds turn minor. Perfect intervals will keep being perfect, but augmented intervals now are diminished instead, and vice versa. Major sixths turn into minor sixths, same goes for sevenths. Thus, a composition in our western scales has a shadow composition in mavila, where major is minor, minor is major, augmented is dim, and so on. Every mavila composition has a shadow composition in western scales where the same relations apply!

As an illustration of this, I recommend Mike Battaglia's Mavila Experiments, where a variety of pieces from the western classical canon are given a mavila treatment.

We even can take and expand this to include our harmonic and melodic minors - the scales we get by replacing one or two of the minor triads in a minor scale with major triads - instead of these two:
melodic minor ascending: 
major: F A C
minor:         C Eb G
major:                   G B D
or harmonic minor:
minor: F Ab C
minor:           C Eb G
major:                     G B D
(so C DEb F G A Bc, and C DEb F GAb  Bc)
we now get melodic major ascending:

minor: F Ab C
major:           C E G
minor:                   G Bb D
or harmonic major:
major: F A C
major:         C E G
minor:                 G Bb D       
 (CDEb FGAb Bb C, CDEb FG ABb C)
Of course these scales are also possible in twelve-tone equal temperament, but they are, somehow, less off in mavila than they are in meantone:y systems (12, 19, 31, ...), and for some reason, melodic and harmonic minor seem more off in mavila than they do in meantone. I will probably go and get into these once I get around to talking a bit more about melodic and harmonic minor and what kind of relation they have to the MOS structure.

Thursday, March 19, 2015

Music Theory for Conworlders: Investigating that Just-Intonation Scale a bit more Thoroughly

Investigating the scales we obtain may yield interesting finds, and I will provide you with some examples of that:
8/8 9/8 10/8 4/3 12/8 5/3 15/8 2/1 (9/4 10/4 8/3 12/4 10/3 15/4 4/1)
We recall we have three chords in there: one that western music calls the 'tonic' [8/8, 10/8, 12/8], we have the subdominant [4/3, 5/3, 6/3] and the dominant [12/8, 15/8, 18/8]. However, we may have other chords present here! So let us have a look.

We have earlier noticed that a minor chord is a major chord with its 'inner intervals' switching place. Since 12/8 is to 10/8 what 6/5 is to 6/6, and since we have a 4:5:6 structure running in parallel, we should be able to build a minor chord there:
4 : 5 : 6
          4 : 5 : 6
(Each member of the upper line has a 6/4-relation to a member in the lower line)
 C E G
        G B D
{E,G,B} - 10/8, 12/8, 15/8; we divide each by 10/8, and obtain 10/10, 12/10, 15/10, which we've previously established is a minor chord. The same thing can be done one more time, in fact!
F A C
       C E G
               G B D
{A,C,E} gives us the very same structure! If you happen to know your chords and scales, you might wonder why I haven't mentioned D minor yet - and that's because D minor is somewhat exceptional. Canonically, D minor consists of D, F and A.
D to F gives us (4/3) / (9/8) = (4*8) / (3*9) = 32/27; 32/27 just cannot be rewritten as 6/5. Further, A is D's fifth, and we can also see a similar problem there: (5/3) / (9/8) = 40/27. That is about a tenth of a tone flat of a regular fifth, and thus it's a wolf. 'Correcting' A by 20 cents would make [FAC] somewhat odd, with a near neutral third.

We can look at one final thing, the chord starting at B; [BD] is obviously 6/5 (because [GBD] is 4:5:6). [DF] we have already had a look at and found wanting, er found to be 32/27. 32/27 is very close to the equal tempered minor third we often use, so it's not all that impossibly bad, and the way the chord we'd build on top of B normally is used anyway is expected to sound dissonant - it's basically that horror-movie sonority.

If we used 6/6: 6/5 : 6/4 as our building block, obtaining
F Ab C
          C Eb G
                    G Bb D
A similar problem would occur for our Bb major chord; we would have good Ab major and Eb major. If we build scales in this manner, we cannot have three perfect major and three perfect minor chords in the same scale.

How could we make the scale more 'general'? One way, of course, is equal temperaments. Another is extended just intonation - which simply means we keep adding notes so that we have notes for each chord we might want to use. Illustrating the notes of such a scale can easily be done by various geometrical means, consider for instance upwards = 3, downwards = 1/3; leftwards = 1/5, rightwards = 5
... A (27/16)
... Bb 9/5 D (9/8) F# (45/32) A# (225/128) ...
Eb (6/5) G (3/2) B (15/8)  D# (75/64) F## (375/256) A## (...)
Bbbb Dbb (128/125) Fb (32/25) Ab (8/5) C (1/1) E (5/4) G# (25/16) B# (125/64) D## (625/512)
C# 16/15 F (4/3) A (5/3) ...
... Bb (16/9) ...
Eb ...
... Ab

A type of chord, a melody or a type of scale would all have a 'shape' in this system, and moving the shape around would transpose it - thus marking all tones currently slightly to the left and up from the currently bolded ones would give Eb minor. Notice, however, that we have two A of rather similar pitch, but with dissimilar function - one the fifth of D, the other the third of F.

For, say, small percussive instruments that are struck, a layout along a matrix like this makes sense. Keyboard layouts along these lines have been successfully tested, and in some sense, the layout on some accordeons is a tempered version of the same idea, although with other intervals as dimensions.

Friday, March 13, 2015

Tuning Theory for Conworlders: Meantone Temperament and MOSes

We previously noted that (3/2)4 ≃ 80/16 (a.k.a. 5/1, a.k.a. 5). Written in mixed form, it is 5 + 81/80. A solution we can do to remove this difference is to remove some amount r from 81/16: (81-r)/16. This means ((3-r¼)/2)4 = (81-r)/16. By adjusting the size of r, we can now decide how in tune 5/4 is, and consequently, how in tune 3/2 is. Since 5/4 is a compound interval from several 3/2s, adjusting our 3/2 slightly produces a bigger difference on 5/4.

We can also notice that (3/2)2 = 9/4, and due to octave equivalence (3/2)2 = 9/8. Secondarily, we notice that (5/4) / (9/8) = 10/9. 9/8 and 10/9 are fairly similar. We could similarly do a thing whereby we represent the two of them by the same interval, and this interval is some form of weighted average between the two of them. Thus, we have an 'average' tone between the two tones that add up to (something along the lines of) 5/4!

We can go on and notice that (5/4)3 is (125/64), which is not particularly far off from 128/64 = 2. So, we can represent our 5/4 by something that is really (5+s)/4, where s = (128/125)1/3. Since each third is a stack of four fifths, we then will need four fifths per such third, and end up with 12 fifths.

We could, however, do other things as well. We may notice, for instance, that 125/64 is a bit flat of an octave - about 0.4 semitones, and that (5/4)2 = 25/16, 25/16 > 3/2 by a slight bit (about 0.7 semitones). 7.7 + 11.6 = 19.3. If we were to lower 5/4 a bit more - which we obtain by lowering 3/2 just a slight bit, we could potentially get this snake to bite its own tail.

25/16 is obviously two thirds, four fifths each. 125/64 is three thirds, four fifths each. And we've planned that combining these we'd obtain a fifth - thus 2*4 + 3*4 = 1 → a stack of 20 fifths gives us a fifth. Thus the nineteenth fifth has to be wrap back on an octave! It turns out that 19-tone equal temperament has a rather low major third (1200/19 ≃ 63, 6*63 = 378), although it is closer to the just intonation ideal than 12-tone equal temperament achieves. It has way worse fifths, however.

The result we see above is a rather fascinating thing - it means if you were to do something along the lines of C → E → G# → C → E → G#, and you stuck to major thirds, you'd end up rather doing C → E  → G#  → Cb → Eb → G instead - in both cases stacking what sounds like and functions as the very same interval, viz. the major third, 5/4.

We can now introduce a concept that has been sort of kicking around in the background for a while - Moments of Symmetry. Although not all scales that occur in human cultures are moments of symmetry, they are surprisingly common.

Remember how I have used strings of L and s to describe scale structures? A Moment of Symmetry (from now on MOS) can be described using only two letters - if you need mid-sized or supersized or subsized intervals, it's not a MOS. However, there is a second requirement: if we were to look at the distances from any tone to the tone after the next tone after it, we would also only find two sizes for that interval. Similarly, we would always find that any interval - except the period (which for us mostly will be the octave), will come in two sizes.

This does happen for 19tet with regards to our regular major scale:
C c#  db D d#  eb E e#/fb F f# gb G g#  ab A a#  bb B b#/cb C
Finding that the bold letters in fact form a MOS is left to the reader [small appendix at the end, though, explaining in detail]. In 19-edo, there is a reason why c| < dd (etc), but this rule does not apply to all temperaments. (Hint: it's basically because meantone is the naming-scheme that we use: as you ascend the circle of fifths, you add #s, as you descend it, you add bs. There are circumstances where c# > db, and there may be circumstances where it's not even consistent.) Tasks for diligent students:

  1. What tones are in D major in 19-tet? 
  2. Does C D E G A - the major pentatonic - have the MOS property in 12tet? Does it have it in 19tet?
  3. Can you find a six-tone scale in 12-tet that has the MOS property?
  4. Instead of using the C-G interval to build your scale, consider using the CE or CE𝄳 intervals. (So, e.g. CEG𝄲B...) Can you find scales that have the MOS property? Can you find such for any other interval? (Notice how I've already laid out the start for one such series above, viz.  
       C → E  → G# → Cb → Eb → G. Is that a MOS? If you need to, how many notes do you need to add to turn C Eb E G Gcbc into a MOS?)
There is one obvious set of MOSes in any temperament: those generated by any length of single steps are always MOSes: C C# D D# E [gap ] c, C C# D D# E F [gap] c.

However, in 19edo, we also get rather many examples of LLL...s and sss...L, i.e. one single type of step that goes almost all the way to the octave, and then a single step of another kind wrapping it up at the end. I mark L by an underline, and s by absence of space at all in the following:
ssssL = CDEF#A#_C,
LLLLLs = C_D_E_F#_A#_B#C
ssssssssL = CDbD#EFGbG#ABb_ C
LLLLLLs = C_Db_D#_E_F_Gb_G#_A_Bb_CbC
The Pythagorean chromatic scale also has this property - which has the interesting property of making some of the major and minor scales available in it lack this property. However, using a MOS that divides the octave into a large number of steps (something like ten or greater) and pretending it is an equal temperament - especially when the difference is subtle - and embedding a MOS in it -- seems to enable some pretty neat effects.

Turns out some Japanese scales actually is the pentatonic MOS (small-small-large-small-large) embedded in a seven-tone MOS (large-large-small-large-large-large-small). Thus wherever in the seven-tone MOS you start, you include the next tone if the five-MOS interval is small, and you skip it if it's large. So you get a large number of scales derived from what essentially is very similar to our major and minor scales by pretending it's an equal temperament and picking subsets out of it.

APPENDIX: Is the major scale a 19-TET MOS? (Note: non-member notes are written out to show how the member notes, in bold large fonts, relate to the temperament)
C c#  db D d#  eb E e#/fb F f# gb G g#  ab A a#  bb B b#/cb C
We notice there are two sizes of second:
C c#  db DD d#  eb EF f# gb GG g#  ab AA a#  bb Bvs.
B b#/cb CE e#/fb F
 A size of a second clearly is either 'two intervening elements (e.g. c# db)', or 'one intervening element' (e.g. b#/cb). Since sevenths are inverses of seconds, the same will apply.

As for fifths, due to the way this thing was generated F → C → G → D → A → E → B, they all come in one size except the one counting from B, which is slightly smaller. The same applies, inversely, for fourths. (There, F will be the end of the line, and the distance from it to B is sharpened.)

We have the thirds and sixths left, then. We could count them individually - and find that some come with something along the lines of [c# db D d# eb] intervening, some come with something slightly smaller - [d# eb E e#], i.e. 5 vs 4.

We could do another trick here: since sixths are fifths + seconds, and all but one fifth are of uniform size, we can tell that all the regular fifths produce sixths of two sizes - due to there only being seconds of two sizes. In that case, we only need to look at the exceptional fifth - B→F, and we find that there are [b# C c# db D d# eb E e#] intervening. This is one less than the regular fifth. To get the sixth, we add [F f# gb], which gives us the same length as e.g. A→F (basically, all we have to do at that point is notice that regular fifth + small second = small fifth + large second, and that the small fifth is surrounded by large seconds, making it impossible to generate an exceptional sixth using it.

APPENDIX: Another MOS, now in 11-edo
Consider [0,2,3,5,6,8,9,(11)]
K k# L M m# N O o# P Q q# K
1) Identify the generator
2) Show that this is a MOS.

Yet another MOS, that should be trivial to show is a MOS:
K k# L l# M m# N O o# P p# K
1) Identify the generator
2) Show that this is a MOS

Notice that in both these scales, note names have now been given so that each member has a name that lacks accidentals, and the complement - the 11 tet note names missing in the MOS itself are given accidentals. With regards to the second MOS, it's been rotated a little bit - this is not a scale you will obtain by just stacking the generator - you have to move some intervals from one end of the line to the other to obtain it.

Is this a MOS?
C C# D D# E f F# G G# A bb B C
How about this:
C C# D D# E F F# G G# A bb B C 

Tuesday, March 10, 2015

Music Theory for Conworlders: The Pythagorean Scale

[mylisten.com is having problems, so the stuff I was going to upload today still sits on my harddrive]

We have seen a few ways of constructing scales this far, and we'll now look at a rather specific example. It goes back to antiquity, and was quite predominant in European ecclesiastical music in medieval times, and also in late medieval and early renaissance art music. (I am not too sure on the exact times with regards to art music - we don't really have any art music separate from ecclesiastical ditto until late medieval times.) Other scales were in use in antiquity, and probably in medieval times as well, but the pythagorean scale has a certain reputation.

First of all, the perfect untempered fifth is, on most instruments with natural overtone series, the easiest interval to tune, except for the octave. Thus repeatedly tuning strings by jumping by fifths (C-G-D-A-E-...) will introduce little error, compared to what tuning by some less easily tuned interval will do. Tuning repeatedly by fifths therefore seems a rather natural approach. You can be pretty sure you've heard perfect untempered fifths at some rock concert, since several rock guitarists actually tune the E-A-D strings to a perfect untempered fifth + octave.

It is closely related, conceptually, to the modern western tuning as well, and is an important step in the historical development that lead up to the modern temperament. For a more mathematical look at the idea of repeatedly tuning by fifths, consider a 'period', a distance that basically is the 'space' within which we build our scale. We go with the octave for now, so either 2/1 or 1200 cents. Since we use fifths, we have the ratio 3/2, or 701.955000865 cents. We then build an octave-reduced stack of these. This can be done in two ways, giving the same result:
(3/2)0, 3/2,  (3/2)/ 2, (3/2)/ 2, (3/2)/ 4 ...
or
0,  701.96..., 701.96... * 2 mod 1200, 701.96... * 3 mod 1200,  701.96... * 4 mod 1200, ...
We repeat this for a while, and once we hit ^6 or *6, we reach a point where our scale looks like this:
8/8,  9/8, 81/64, 729/512, 3/2, 27/16, 243/128, 2/1
However, traditionally we divide each by 3/2, thus in effect rotating the cycle so what formerly was 3/2 now is 1/1. We have
8/8,  9/8, 81/64, 4/3, 3/2, 27/16, 243/128, 2/1
This is not particularly far off from our previous scale - the one built from stacking 4:5:6 in a similar fashion
8/8, 9/8, 80/64, 4/3, 3/2, 25/15, 240/128
our previous just intonation scale, rotated by dividing by 3/2, analogously to how our current scale's been rotated
We can see we hit pretty close -  81/64 and 80/64 differ by the syntonic comma 81/80 (about 21 cents or so), 9/8, 4/3, 3/2 are exactly the same, 240/128 and 243/128 differ by 243/240 = 81/80 too. 25/15 and 27/16 are a bit more cumbersome to work with, but differ by a comparable amount. It sounds fairly similar to the just intonation scale previously introduced, as well as to the twelve-tone equal temperament. Personally, I find the chords a bit more restless than just intonation, but the restlessness can give an appealing shimmer to the sound of it - depends a bit on the instrument used to play the song.
The familiar song, now in pythagorean intonation
So, our 4:5:6 ( = 64:80:96) chords are now instead represented by 64:81:96. A slight mistuning, but not all that terrible - a tenth of a wholetone.

This scale is the 'canonical' pythagorean scale. It has a structure of LLsLLLs (or in the form we first obtain, LLLsLLs). Most rotations of it - LsLLLsL, LLsLLsL - were in use as tonalities in their own right in medieval times. (With the exception of sLLsLLL, which very few compositions exist in, even today.) To 'rotate' a scale given in the L,s-notation, just take a symbol from either end and move it to the other end - repeat until the rotation you want is obtained.

There is a problem, however - a chain of 3/2s never, ever, will reach an octave of its starting point. We can easily prove it along these lines (only a sketch of the proof is given):
The last digit of successive powers of 2 form a repeating series of 2, 4, 8, 6, 2 ... and only the last digit affects the last digit of the next member in the series.
The last digit of successive powers of 3 form a repeating series of 3, 9, 7, 1, 3 ... and thus never form even numbers.
Thus 3^n/2^m never will equal 2^p, for integers n,m,p > 0.
Thus, by continuing up the series we get an infinite number of tones. However, we can decide to just terminate it at some point - such as building the scale above and being content at that point. Some cultures have used the same method and been content two steps earlier - 1/1 9/8 81/64 3/2 27/16 2/1 forms a very nice pentatonic scale, as does the rotation corresponding to the minor pentatonic 1/1 32/27 4/3 3/2 16/9.

The musicians of several cultures that used this scale went to 12 steps, because they found that the twelfth iteration is fairly close to an octave of the starting point. (About an eight of a wholetone off.) (3/2)12 ≃ 27. Thus, the eleven first fifths were perfectly in tune, but the twelfth got reduced by the amount of the error. Using the twelfth fifth was therefore avoided, and keys that included it were not used all that much. Of course, that particular fifth could be avoided or used sparingly in compositions in keys that contained it.

The scale that is obtained thus is fairly evenly spaced - should be something like, given in cents ~ 113, 91, 113, 91, 113, 91, 91, 113, 91, 113, 91, 91 if I count correctly - LsLsLssLsLss. L is the large Pythagorean semitone of 2187/2048 , s the small Pythagorean semitone of 256/243. This means different keys will sound slightly differently when playing the same composition in them - let's introduce a meta-notation: L, s. These are the steps of a scale that is a subset of the above cromatic scale. Now, some L will consist of Ls, some will consist of ss. Some s will consist of L, some of s.
Thus, when we make a scale that is LLsLLLs, the first rotation gives [Ls, Ls, L, ss, Ls, Ls, s]; if we start from the second note and build the same scale, we get [Ls, Ls, s, Ls, Ls, ss, L]. From the third tone, we get [Ls, Ls, s, Ls, Ls, Ls, s], etc. This will lend the scale some variation, of course - each key will now have a slightly unique sound with regards to some interval. However, providing examples of this requires some work. I will probably do it some weekend.

Both of the facts given above kind of might give a musician reason to think that hey, why not take the average of seven 91-cent steps and five 113 cent steps or alternatively 'hey, why not average out the error of the last fifth on all twelve of them - not a single one would be all that badly damaged, and the bad one would be greatly improved'. (Other solutions could also have occurred to him if he used some form of extended pythagorean, where the gamut goes past 12 fifths.)

 [Historically, we actually have some reason to think Pythagoras may have used a period of 4/3 instead of the octave, but for some mathematical reasons, the scale you get by adding two fifths into the frame of a fourth gives [9/8, 81/64, 4/3]. This was then placed on top of 3/2 as well, giving the exact same scale as the stacking method (after rotating it back one step).]

Now, what could a culture have done differently? It could possibly use a different interval, say 5/4, to generate its tuning - a thing even late renaissance and early baroque European music did! It could go further than twelve iterations to find a tuning with smaller granularity. It could use this method over part of its gamut, and some other method elsewhere. It could potentially use a different period.

We will look at using multiple generators next, after which we'll start looking at tempering things.

Monday, March 9, 2015

Music Theory for Conworlders: Chords as Building Blocks for Scales, Temperaments pt 1

So, we recently saw how a major chord is built, and looked at some other chords as well. Let us build a scale from these chords!

We could stack them in some way - i.e. we build a chord, let's call it M. We index its notes M1, M2, M3. Once we reach M3, we also call that note N1, and build a new chord N1, N2, N3. So, using the major chord outlined earlier and arbitrary 1/1, we have 4/4, 5/4, 6/4. We stack a new similar series on top of 6/4, giving us 6/4, 15/8, 9/4. If we assume we have octave equivalence, we can replace 9/4 by 9/8, getting us this scale: 4/4 9/8 5/4 3/2 15/8. We now repeat this one last time on top of 9/8 - getting us 45/32 and 27/16. So, our full set now is
FGABCDE
8/89/8 10/8 45/32 12/8 27/1615/8
If we were to further remap the composition to this set (so that the starting tone is remapped to C, rather than F, instead of the previously used approaches), we get this result:

If we further approach it, mostly without any clearly thought-out approach, but adding backing chords basically by picking a chord for which the melody over some span shares a significant number of notes with that chord, we get this, which already has turned our rather weird overtone thing into a rather pleasant, albeit not very complicated thing:
The distribution of step-sizes here is:
FG
ABCDE
9/810/99/816/159/810/916/15
204c182c204c111c204c182c111c
[Note: I've rounded the cents values to integers.]
The underlined ones form the first triplet, the italic ones form the second triplet, the bolded ones form the third triplet. Notice that there are tones that belong to two triplets. If we instead of stacking twice, instead had stacked 'downwards' as well as 'upwards', we'd have in front of us the major scale. Now we have a rotation of the major scale instead. (By 'stacking downwards', I mean building a triplet L1,L2,L3 such that its L3 = M1, where M1 is our starting point; had we started at M1, built M1,2,3, L1,2,3 and N1,2,3, we'd have the regular major scale.) We're currently looking at the same thing, but starting at the wrong tone in it - the thing in front of us right now is called a lydian scale. This is why I opted to call the first tone F instead of C. We could go about similarly with the minor chords as well, and build the natural minor scale by stacking [6/6,6/5,6/4] the same way. If we replace the last of them with a major triad, we get the harmonic minor, and if we replace the triad we build 'downwards' with a major triad, we get melodic minor ascending.

We could of course go and add 7/4 to the major triad too - so we would have chords of 4/4 - 5/4 - 6/4 - 7/4, but stack them at 6/4. (or at 7/4 if we'd like, but I'm not going to do that right now)








1/19/8     7/65/421/16
45/32

6/427/16 7/415/8


204c 266c 386c470cc586c
702c906c  966c 1090c

This scale would be a bit of a curiosity, although who knows, it might be possible to compose nice music it in. Here's a really shoddy attempt:

We are not restricted to 4:5:6(:7:...) either. We could pick, say, 3:4:5, 5:6:7 or 6:7:8 or something that has a different number of notes, or gaps in it. 4:5:7 gives an interesting scale - one that obviously is a subset of the one given above. Nothing stops us at two iterations either - but we probably want a manageable number of notes. And of course, we can alternate what kinds of sets we stack on top of something, just to see what happens.

We'll go back to the one presented above that just had seven distinct notes. We might notice that there's basically three sizes of steps in it - and that two of these sizes are fairly close together, whereas the third is a bit further off. Could we perhaps utilize that somehow? Actually, one thing we could do is call the 204 cent intervals 'L', the 182 cent intervals 'M' (for middle), and the 111c intervals 's', for small. This, in fact, is a useful notation: when we describe a scales shape, we sometimes actually benefit from ignoring the exact sizes we have to deal with, and instead just consider the scale as having the form LMsLMLs. We will later on encounter scales (and parts of scales) that are only described as strings of L:s, M:s, s:s, and possibly other letters, and possibly only a framing interval given explicitly or even implicitly.

For now, our framing interval is the octave. Our plan is to 'equalize' the intervals in some sense, to drop some of the exact tuning in favour of the convenience of a more 'simple' system.
We then have the following thing to solve: 3L + 2M + 2s = 1200 (since there's three L, two M, and two s in the scale). This can be solved in several ways; we can go to extremes, and conflate them all, L=M=s, in which case we get L=M=s=171 cents. It is useful, however, if M,L and s all are multiples of some shared unit - so e.g.

3L + 2M + 2s = 1200 cents | our basic setup
 L = M | we decide to conflate 'large' and 'middle' steps→ 5M + 2s = 1200 cents
 M = 2s | we decide we want the small steps to be half of the large steps → 12s = 1200
→ M = 200 cents, s = 100 cents
We now end up with
Overtune, now in 12-tone equal temperament.
Another thing we could do is:
3L + 2M + 2s = 1200 cents | ...
L = M | we decide to conflate large and middle againM = 3/2s | we decide we want the large only to exceed the small by half the size of the small→ u = 1/2 s (u for 'unit') | we decide to introduce the 'unit' that corresponds to the smallest necessary division for this to work out→ 5M + 2s = 1200 c
→ 5*(3/2)s + 4s = 1200 c
→ 15u + 4u = 1200 c
→ u = 1200c/19
This would give us a tuning that sounds like this:
That same tune in 19 tones to the octave.
The first example is one way of ending up at modern equal temperament. However, the same mathematical approach coupled with some different decisions will give other nice temperaments that have many similar properties - but may have other, dissimilar properties as well. The second example gave 19-tone equal temperament, a temperament which very well could be a dead-ringer for 12-tone equal temperament, especially with regards to most of the repertoire that doesn't modulate wildly. Why this is the case, we will look at a bit later when we get into meantone. (There are more in tune meantones than 19, but 19 is conveniently small - basically, 12, 19 and 31 are pretty good meantones - but 31 is rather big).

We will look how this same method can be used to find other temperaments with similar properties - or temperaments that give us 'twisted' tunings - tunings where things from 12-tone equal temperament get turned on their heads. (One hint, though: imagine what happens if we substitutes M→s, s→M, and solved for that? 5s + 2M, distributed as ssMsssM actually produces a weird yet attested in real life cultures scale. The same type of inversion can be done for any scale!)

We'll also see how this can be used more generally to consider the results of other building blocks than 4:5:6. But before that, we'll go and look at Pythagorean tuning, the Meantone tuning it gave way to, and our modern very moderate meantone tuning, viz. 12-tone equal temperament. We'll see a few other approaches that we may take to reach 12-tone equal temperament as well (but also other points to which those approaches could have taken us).

Sunday, March 8, 2015

Music Theory for Conworlders: Chords

In most European/Western music since some point in the baroque onwards, chords have been a rather central concept. The chords provide a background harmony, which it is easy to write melodies over. Chord progressions provides the song with a sense of things advancing, and chord-based approaches make it easy to change a key by a variety of methods.

Chords are compound tones - they are several tones played at once. Depending on your experience with music, you may know that, i.e. C#major is C#,F,G#, and that Fmajor is F,A,C. Now, some hobbyists may be under the impression that chords are labels for essentially arbitrary groups of tones, but they are in fact a systematic terminology for groups of tones that have certain relations.

The most basic chord in western music is the major chord. Each tone in the 12-tone temperament can be root for one. The major chord has a rather interesting structure - in just-intonation (where intervals are basically tuned like intervals between members of the overtones series), the major chord would be 4:5:6. That is, [4/4, 5/4, 6/4] times a shared fundamental frequency. If we were to pick A=440hz as our starting point, we get [440hz, 550hz, 660hz]. A similar structure is present at [3/3, 4/3, 5/3], which gives [330hz, 440hz, 550hz]. We notice that 330hz is an octave below 660hz, so we can consider them the same structure. [5/5,6/5,8/5] too gives a similar structure with two of its members offset by an octave. Structures where a member is offset by an octave are referred to as 'inversions' of the same chord, as the same equivalence classes of tones are present (i.e. the classes C,E,G are present regardless if it's or C3, E3, Gor E3, G3, C4.) Some experiments indicate that musicians hear inversions as the same chords, whereas people who don't play instruments tend to hear them as distinct chords. This may be worth being aware of when considering the music of your culture - apparently, it's a thing western musicians learn to hear them as, and thus it is entirely conceivable that some culture would have musicians that maintain the distinction.

We could write a song where we just stick to one chord throughout it, and the melody is the main source of motion, tension and interest. Such songs exist. However, it is more usual once we start using chords to create motion, tension and interest by changing the chords - and letting the melody create further motion, tension and interest against the backdrop of the chords.

So, we may want to build new similar structures from other tones in the scale, say we pick the topmost member of our first chord as the root of the new one; we could also pick the bottom-most member of it as the topmost member of a later one, obtaining:
440*(6/4) * [4/4, 5/4, 6/4] = 660, 825, 990
440*(4/6) * [4/4, 5/4, 6/4] = 293,333..., 366,666..., 440
gives us all of these, when reduced to the same octave: 440, 495, 550, 586,666..., 660, 733,333..., 825, 880
The same procedure can be applied to any frequency to obtain the frequencies of the major chord rooted on that frequency. For reasons I will get into soon, having chords tuned exactly to these ratios causes certain problems, and this is solved by only approximating them - this benefits from our hearing not being all that exact.

Now, I mentioned earlier that multiplication is to a number what addition is to its logarithm. So, if we take logarithms of [4/4, 5/4, 6/4], we can now add things instead, by using cents:
[0, 386, 702] + [702, 702, 702] : same thing as multiplying [4/4, 5/4, 6/4] each by 6/4.
[0, 386, 702] - [702, 702, 702] : ... dividing by 6/4
Although hertz numbers are easy to understand, they're less general than cents are. Cents are easier to work with than ratios though, because a) it's easier to compare sizes - which one's bigger out of 19/16 and 6/5? How about 298c and 316c? - b) it's easier to add than to multiply. Octave reduction is done by subtracting or adding 1200 (repeatedly, if so needed), c) since the cents-value basically is based off the twelve-tone tuning of western music anyway, an interval measured in cents tells us something about what familiar musical intervals it is close to - i.e. 25/16 and 8/5 might not spontaneously tell us much - but 772c and 813c tell us they're both in the vicinity of 800c, so fairly close to the interval you get by stacking eight minor seconds - C to Ab, D to Bb, etc.

Chords need not be 4:5:6, though - we have minor, diminished, extended chords and sus chords in western music, and there are other possibilities as well.

Minor turns the order of the intervals upside down: from [4/4, 5/4, 6/4] we go to [6/6, 6/5, 6/4].
 ((6/4) / (5/4) = 6/5). The minor chord famously is 'sadder' than the major chord, and is the other main staple of chords. If you use some specific type of triad, you should probably try and see if its ~inverse sounds appealing to you as well. For [3/3, 5/3, 7/3] this would mean [7/7, 7/5, 7/3]. They can be recalculated to have a uniform denominator, i.e. [6/6, 6/5, 6/4] can be rendered as [10/10, 12/10, 15/10,] and [7/7, 7/5, 7/3] as [15/15, 21/15, 35/15].


Sus2 are [8/8, 9/8, 12/8], sus4 are [6/6. 8/6. 9/6] (or in the other notation 8:9:12, 6:8:9). Diminished and augmented chords are slightly less clearly any one thing and can stand for several possible interpretations. The diminished chord can easily be seen as [5/5, 6/5, 7/5] or [7/7, 7/6, 7/5] or [6/6, 6/5, 36/25]. A different musical tradition may have a more specific idea of what a dim chord is, or even have several different dim chords.

Extended chords sometimes are understood as going further up the overtone series, so a seventh-chord adds one tone higher (depending on type, you usually get something close to [8/8, 10/8, 12/8, 16/9], [8/8, 10/8, 12/8, 15/8] or [4/4, 5/4, 6/4, 7/4]. The first is roughly or dom7 chord, the second the maj7 chord, and the third is common as dom7 in Barbershop and some blues. Again, by sheer luck, 9-chords too generally add a 9-like number: [4/4, 5/4,6/4,(whichever seventh the chord name specifies),9/4] (although b9 may add things like 17/8 or 32/15, #9 may add 12/5 or 19/8 or somesuch, and so on).

Chords with the extensions 11 and 13 are further off from the corresponding overtone when played in equal temperament, however. Using extended chords as "proper" chords has some roots in Baroque times (where some 9-chords were definitely used in a chordlike manner, e.g. dom7b9, which for E would spell out E-G#-B-d-f, a strong dissonance that goes well in minor keys, so e.g. Edom7b9 would appear in A minor compositions, Cdom7b9 in F minor, etc. In the 19th century, especially major seventh chords became increasingly considered consonances, and in the twentieth century especially jazz has made some quite wild chords acceptable as 'chords proper'.

Other series could well be used - Bohlen-Pierce-scale composers draw a lot of mileage out of 3:5:7 and 5:7:9, and some microtonal composers utilize things far up the overtone series, such as 14:17:21, 12:17:23 or things like that.

It is possible to build your chords from a subset of the scale used for melodies; the opposite is possible as well - lots of western popular music take its chords from all seven notes of the diatonic scale - or even more than that - yet restrict the melody to the pentatonic scale that is a subset of the seven notes. Some music, however, restricts its chords to a smaller set than it restricts the melodies to. So both approaches are apparently fertile ground for melodic/harmonic interaction.

Not all music classifies simultaneously played notes as any kind of chord; even in the baroque era, such a classification system was not all that widely used. Renaissance polyphony definitely does not use the same kind of chords as we do, but would have considered all three-note chords except root-fifth-octave as dissonances that should be resolved (yet did use combinations of three or more tones as a device for tension). Polyphony in general can use tone-combinations without giving names to them - there are lots of possible combinations, and naming them all may seem rather tedious and pointless.

[note: I will add some samples of chords of various kinds later]

Friday, March 6, 2015

Music Theory for Conworlders: How to Test These Scales

If you happen to play a fretless instrument such as the violin or cello, playing unfamiliar intervals is possible, but may take some practice. With woodwinds, I hear it is possible, but challenging. With brass, the overtone series comes naturally, but is of course slightly challenging once you get sufficiently high up. The slide trombone is of course a very convenient instrument insofar as that goes.

Several synths support .scl files these days. .scl files are a convenient format for storing tunings, and for using them with hardware and software that supports them. Midi keyboards can of course be retuned on the fly - try Manuel op de Coul's Scala.

For people lacking instruments, but who want to try out microtonal music, most freeware trackers permit pitch bends. The small tunes I've made here I've made using sunvox - which can do a lot more than just sound like ass the way those tunes do. Pitch bends upward have the code '11' in the effect column. However, pitch bends in sunvox require some maths - sunvox doesn't use cents, but 64th:s of semitones. Thus, the pitch bend necessary for an interval P (given as a ratio), is rendered as 768*log2P mod 64 rewritten in hexadecimal, and the number of semitones is naturally (768*log2P - (768*log2P mod 64)) / 64. I have made a gnumeric file that calculates this stuff for any equal temperament (I will explain what those are soon enough), and used this to compose, among other things, these compositions. It is basically very much a cheap hack, so no guarantees. I might improve a bit on it in the near future. In order to get overtone scales and other ratio-based tunings, you basically have to set the period to be that ratio, and the number of subdivisions to be one (well, you can set it to anything, but then only every anything:th element will correspond to that ratio or its integer powers, i.e. for 5/4 divided in three steps, you'll get 5/4, 25/16, 125/64, etc every few steps.)

The temperament names given below the pieces are in a way for future reference, as I will get into the kinds of structures I've used in these pieces and what other structures exist that can give equally weird or weirder results:

11-tone equal temperament attempt at Arabic-sounding stuff.


11-tone equal temperament attempt at I dunno, some kind of electronic thingy.

19-tone equal temperament thingy in a somewhat out-there temperament.

An octave-less thingy in "88 cent equal temperament".

A thingy in Bohlen-Pierce temperament.


A fanfare that attempts to do some weird things.

Music Theory for Conworlders: What's Better than One Overtone Series?!?

Western - as well as eastern - musical scales have developed along a somewhat different path than I'm now going for, but let's try a small experiment. We take a slightly restricted overtone series, 8:9:10:12. We notice that 8:12 was a nice interval - C to G, essentially - and maybe G would be a nice place to restart the entire thing? We'd get
8/8     9/8     10/8   11/8  12/8    
12/8*8/8      12/8*9/8      12/8*10/8      
(...9/4) 3/2 27/16 15/8
The previous composition I've used - slightly adjusted to fit the currently slightly smaller scale (7 notes instead of 8) - I've decided to maintain movement rather than keeping the notes close to where they originally were - that is, if the original composition makes a move of four notes in a space where this scale only has three, I did some workaround so instead of going g ab a b c you get g a g b c or somesuch.
We could pick some other place to add the other scale - we could start from a tone for which C is an overtone instead. What C is to G, F is to C, and we can construct the scale that way as well, now getting:



8/8    9/8    10/8    12/8    
4/34/3*9/8     4/3*10/8     4/3*11/8      


3/25/311/6
For future purposes, we may now notice that 9/8 and 10/9 - the distance from 9/8 to 10/8, that is - are fairly similarly sized; we also can tell that there's one place in the scale where there are spaces that are quite a bit tighter - 15/8 to 2 as well as 5/4 to 4/3 leave a space of 16/15. From 5/4 to 3/2 we have a slightly larger gap - 6/5. In cents, these would be ~204, ~182, ~114 and ~316. There are two intermediate sizes here as well, that divide the 6/5 gap in two bits. It also happens to be that 204+114 get pretty close to dividing the 6/5 gap in two, which are observations that might come in handy at some point? The similarity between 204 and 180 permits us to use G-based melodies even though we're tuning from C and F. We could maybe even permit going about it the other way and use overtones from G, but pretend we're using overtones from G, giving us the final scale I'll list here below:

We get scales like these:
First, overtones 8-12, where 8=C, overtones 8-10 from C's 12th overtone:
C: 0 cents, 1/1
D: 204 cents, 9/8
E: 386 cents, 5/4
F: 551 cents, 11/8
G: 702 cents, 3/2
A: 906 cents, 27/16
B: 1088 cents, 15/8
Second, overtones 8-12, where 12=C, overtones 8-10 from C.
C: 0
D: 204
E: 386
F: 498, 4/3
G: 702
A: 884, 5/3
B: 1051, 11/6
Third, a 'compromise' between these would be:
C: 0
D: 204, 9/8
E: 386, 5/4
F: 498, 4/3
G: 702, 3/2
A: 906, 27/16
B: 1088, 15/8
Compare to the usual, modern western major scale:
C 0
D 200
E 400
F 500
G 700
A 900
B 1100
We now have unequal-sized steps, dispersed in slightly quirky patterns - but for a couple of tones we hit very close to overtones for several steps - the second and third scales, especially, make C, F and G all reasonably stable as some kind of tonal centres of the scales. Here are a few chord progressions comparing and contrasting the four scales:

An important point: the modern scale gives good approximations of the lower overtones. They also approximate them well in a pretty 'linear' way, i.e. whichever starting point within the scale you pick, it approximates the overtones equally well.
 This does not hold true for the scales I presented previously - try and see how well the pitch set matches overtones for E, for instance - you're quite far off, with the exception of E-B.