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.

Monday, March 2, 2015

Music Theory for Conworlders: Simple Scales from the Overtone Series

Previously I described the overtone series. Let's use it to build our first scale!

For ease of calculation, we'll start at 50hz: 
We notice that for each octave we go up, the number of tones increases:

50 100 ← first octave
100 150 200 ← second octave
200 250 300 350 400 ← third octave
400 450 500 550 600 650 700 750 800 ← fourth octave
the overtones of a 50hz tone, given in hertz, presented in successive octaves
1 2
2 3 4
4 5 6 7 8
8 9 10 11 12 13 14 15 16 
 the multiples that give the overtones, presented as successive octaves 

We pick the 400-800 (or 8-16) octave simply because it's the first octave in which there's 'enough' tones for a reasonable scale (four-note scales for some reason generally aren't considered much in scale design - it seems most scales you find in human cultures consist of five or more). We use that as a model for every octave from now on, so we end up having this:
50 56.25 62.5 ...
100 112.5 125 ...
200 225 250 ...

Since the difference now actually is a constant number of hertz, we get a scale represented by adding a constant to the enumerator of a ratio:
8/8 9/8 10/8 11/8 12/8 13/8 14/8 15/8 16/8
overtones from the eighth to the sixteenth, tuned down until they're in the first octave 

And the intervals between subsequent notes will shrink:
9/8, 10/9, 11/10, 12/11, 13/12 ...

In fact, the first step is almost twice the size of the last step. Here's a short two-voice composition in this scale, although from C to C rather than G400 to G800, 'Overtone ditty':


So, how would this kind of scale appear in real life? Consider the string or the tube of air in organs, flutes etc. If we construct frets linearly, so that there's one fret at roughly half the string, and the rest of the frets are equidistantly along the neck, you'll approximate overtone tuning fairly well. With tubes of air, the same roughly applies: half the length gives an octave, then make pipes that are equal divisions of that length. Overtone singers also easily can produce overtone scales, and overtone-instruments such as overtone flutes.

Of course, we needn't use 1/1 as our 'root', we can use some other pitch as our 'root': we might start from, say, 550 - and get 550 600 700 750 800 900 1000 ... in which case the 'steps' will not just shrink - we get a large step between 800 and 900, from which a new sequence of shrinkage appears for a while. The scale will start out as a series along the lines of 11/11 12/11 13/11 14/11 15/11 16/11 18/11 20/11 22/11.

Here we go on using Overtone Ditty, but I tune down the fundamental so that the root for the melody keeps being C. However, the starting point - the 8/8 - from which the overtone series is calculated is reduced by one each iteration (except the last that returns us to C as both the root and fundamental):
The first iteration was the same piece as previously; in the second part, whenever the first part went 8/8 9/8 10/8 ... the new one went 9/9 10/9 11/9; in the third you got 10/10 11/10 12/10; the fourth even went as far as 11/11, 12/11, 13/11 ...; It was a bit tedious to retune the parts, so I didn't go any further than that, I hope the different sounds of the four parts illustrate pretty well what's going on.

I might later compose a short ditty illustrating some of the next few ideas.

We could of course build a similar rational scale using any denominator, and not be restricted to exactly 8 (or even 2n, n ∈ Z) pitches - any number, really, could work. Let's look at the set we get with the series from 7 to 7*2:
7/7 8/7 9/7 10/7 11/7 12/7 13/7 14/7
This would correspond to starting out by halving the length of a string or pipe, and then placing frets or producing new pipes (or adding holes) at equal distances between the full length and the half-length.

For each such scale, we can also investigate and use the scales we get from using some other tone than the original N/N as our starting point and introducing a slight "discontinuity" in the sizes of the intervals, such as:
8/7  → (1/1)' (i.e. 8/7 is now the new 'standard' for the previously given scale; 'new' is marked by an apostrophe in the ad hoc notation I now am using)
... 7/8) 8/8 9/8 5/4 11/8 3/2 13/8 7/4 2/1
(You can see how the interval size consecutively shrinks until you hit the distance from 7/4 to 2/1. Repeated shifting along this procedure will of course move the discontinuity rightwards.)

A few examples then, would be 7/7 to 14/7, 5/5 to 10/5, 6/6 to 12/6. I've thrown in 16/16 to 32/16 as well to give an example of a rather crowded scale.


To understand what happens with our scale (given as a series of numbers), it's simply that we multiply each interval by the inverse of the number we want as our new root (so, if in the series from 7/7 to 14/7, we now want 8/7 as our root, we multiple each with 7/8), and those that now are less than 1/1, those that drop 'under' our new root, will reappear from an upper octave. Mathematically the same result is obtained by multiplying by two any interval that is now lower than one - 7/8 becomes 7/4, 8/9 becomes 16/9, and thus remains in the scale. We could do the same for 5/4 and the whole 7/7-to-14/7 series:
5/4  → (1/1)'
... 4/5 9/10) 5/5 11/10 6/5 13/10 7/5 8/5 18/10 10/5 

Another thing we can do is the omission of some notes. We could take our eight tones:
1/1 9/8 5/4 11/8 3/2 13/8 7/4 15/8 2/1
and pick some way of removing a few. Maybe we want to have a highest 'factor', i.e. any ratio involving larger primes is omitted. Omitting 11 and upwards would give
1/1 9/8 5/4 3/2 7/4 15/8 2/1
Which is almost our pentatonic scale - it has a somewhat sharp sixth, and a major seventh to boot that extend it, though. (Why I call those intervals by those names, I'll explain later).

We could of course do some other approach too: only pick primes and composite numbers which are square and composite numbers where at least one factor is 2:
1/1 9/8 5/4 11/8 3/2 13/8 14/8 2/1
This is a weird variety of mixolydian (and I'll get to that later). We needn't even be particularly logical about this - we can just exclude some intervals because we think they sound bad in combination with the others.

"Proper" overtone scales appear in throat singing, and part of the overtone series is close to parts of the western diatonic scale. Intervals do recur - if you go high enough up. But for each recurrence of an interval, there'll be twice as many new intervals appearing if you ascend the scale one note at a time.

Although scales based on the overtone series aren't necessarily what you'll want to use in your conculture, overtone series are a good thing to be familiar with. A lot of what we'll be doing with scales that are much more like the diatonic scale will be based on the overtone series in one way or another.

Music Theory for Conworlders: A Short Survey of Western Music

Western music has certain properties that western listeners tend to take for granted:

  • harmony
  • functional harmony
To a lesser extent, we can add
  • modulation
A few features that are probably somewhat more universal are:
  • repetition
  • structured compositions
  • some kind of 'tuning practice' of some form
  • rhythm
What are these things?

Harmony is the use of multiple distinct notes simultaneously. Functional harmony is a bit more specific - most western music from the baroque to now has some variety of functional harmony. Essentially, the use of chords as 'functional entities'. In a song where the chords go something like 
C - F - G7 - C
the different chords have different levels of tension, and this 'tension' depends on a few factors. We perceive the first chord as fairly consonant. The second is in some type of relation to the first that makes us hear it as slightly less consonant, and the third one is really even less consonant. The dissonance of the final chord is resolved as the first chord reappears.

Functional harmony is not necessary for music with harmony - some early blues, modal jazz, some funk, renaissance and medieval music, and lots of folk and ethnic music have modal harmony instead. In fact, functional harmony seems to be unique to music that has been influenced by European common practice music, whereas harmony does not have any such restriction.

Not all music has harmony at all - there are pieces where only one tone is ever heard at a time. Some cultures only have such music. Tuning is relevant to such cultures as well, since it influences what kinds of melodic options exist. However, the tuning will be less restricted by the requirements of harmony in such a culture.

In most human music, it does seem as though there is a 'tonal center' to most pieces - a tone, that simply speaking, feels like 'home'. A tone - or set of tones - that does not or do not impart any tension when heard. This will depend on the key you're playing in and the way your melody and harmony are used, so it's not like there's necessarily one particular tone that functions as the 'tonal center'. Modulation is a thing in western music where one actually shifts the tonal center during the duration of a piece. Such a thing also brings with it some technical requirements for the scales that would be used with that music - i.e. there must be more than one tone from a which a relatively full, sufficiently well-in-tune scale can be found.

We will soon account for several of these things.

Music Theory for Conworlders: Modular Arithmetics and Some Tricks

We will do a slight diversion into a relevant topic to prepare ourselves for a thing that I'll soon get into here. The topic is modular arithmetics.

You all probably know how the minutes wrap around at 60, and the hours at 12. These are examples of modular arithmetics. We can do modular arithmetics with any number, not just 12 and 60.
5 + 5 mod 8= 2, because 5+5 = 10, 10/8 leaves a remainder of 2.
Modulo twelve is worth considering as a first example, however, since it has certain properties that help illustrate some of the properties of modular arithmetics. I will map the tones of western tuning to the twelve numbers of modulo twelve:
01234567891011
AA#BCC#DD#EFF#GG#
Note that we could just as well have picked A# or D or Db or whichever other tone as 0. Now, as it happens, these numbers encode two things. 1) They encode individual pitches. '5' = 'D'. However, we can also consider them to be representations of intervals - i.e. 5 also is the distance from 0 to 5. In such a notation, we can start combining intervals. If we call '2' the 'second', A to B forms a second, but so does C to D, or C# to D#. G# to A# as well, due to our resetting the counter at twelve.

Let us consider what happens if we pick a number from (1, 11), and repeatedly add it, i.e. 0, 0+2, 0+2+2, 0+2+2+2. Turns out we get 0,2,4,6,8,10,(12=0,14=2,16=4, ...) and we have a cycle. We'll never break free of that cycle just by repeatingly adding twos. What happens with 3? 0, 0+3, 0+3+3, ...= 0,3,6,9,12=0,... and with 4? 0,4,8,(12). 6? 0,6(,12). How about 8? (0,8,16=4,12), And 9? 0,9,18=6, 15=3, 12. Finally, 10 gives us the same result as 2, only 'backwards': 10, 8, 6, 4, 2, 0.

Turns out only numbers that are coprime with the period (i.e. the 'size' of the set) will crank out each possible number if you keep iteratively adding it. Obviously, 1 will do that for any size. But that gives a boring structure. In 12, the only other options are 11 (which gives 1 in reverse), or 5 or 7 (which are each other's reverses as well - this due, in fact to 5+7=12). This has some further consequences: for prime-number-sized sets, any integer will generate the whole set, for composite-number-sized sets, there will be smaller 'cycles' in them. The cycles are subgroups - one can in fact do modular arithmetic on them as well, i.e. the {0,2,4,6,8,10} set basically behaves exactly like a {0,1,2,3,4,5}, mod 6 set - i.e. we map each integer in the first to its halved version in the second, and cut the period in half as well.

When we iterate over the set using such a coprime 'generator', we may get some interesting structures, as we can see for arithmetic modulo twelve. We see something that is slightly regular, slightly irregular appear:

0 ∪ (0+7) = 7
0, 7 ∪ (7+7) = 14, mod 12→2
0, 2, 7 ∪ (2+7) = 9, mod 12→9
0, 2, 7, 9 ∪ (9+7) = 16, mod 12→4
0, 2, 4, 7, 9 ∪ (4 + 7) = 11, mod 12→11
0, 2, 4, 7, 9, 11 ∪ (11+7) = 18, ... 6
... 0, 2, 4, 6, 7, 9, 11, (12)
(We can go on, obtaining along our way things like 0,1,2,4,6,7,9,11; 0,1,2,4,6,7,8,9,11; 0,1,2,3,4,6,7,9,11; 0,1,2,3,4,6,7,8,9,10,11; and finally the full set)

We can see how the first part, 0,2,4,6 in fact is common with what we'd get if we went and took '2' as our generator. This is somewhat natural: from the vantage point of, say, 0, adding two sevens in succession will obtain a '2'; repeating it twice more will add a '2' to the previously obtained '2'. In some sense, 7 is half of 2! We also notice how 7, 9, 11 form a similar - albeit shorter structure, that is 'offset' by one from the 0,2,... series; if we were to start at 7 and do the 'add two' operation, we'd obtain exactly those values first. By adding sevens, we create two 'slighly offset' two-series. However, we could have stopped at another time: we could have stopped when we had 0, 2, 4, 7, 9. At this point, we have differences of two and three; Both two-series are now one member shorter, and they are separated at both ends by a larger gap.

We could of course consider something like '4' or '3'; these divide twelve, but they can have their own internal structures that we simply repeat in the octave
0, 2, (3). → 0,2, 3, 5, 6, 8, 9, 10, 11, 12
0, 3, 4 → 0, 3, 4, 7, 8, 11, 12 
Since the period is 3, what we really have is 0, 2,3. We could fill these out all the way to twelve: 0, 2,3 5,6 8,9 11,12. In essence, we make a stencil: x-x, where x=in the set, - = not in the set, and we line these stencils up one after the other, getting x-xx-xx-xx-x. We can do the same for four, although now we have two options: x--x, x-xx. (I omit the full options xxx, xxxx since they're not all that interesting.)



Now, these are methods for scale building that more or less actually happen in western art music (the x-x scale is the dim scale much used in some styles of jazz, the x-xx scale is somewhat more difficult to find examples of, but Messiaen probably has some works. However, the stack of sevens that I elaborated a bit on above, that actually gives the lydian mode, and starting from the fifth tone of that (the one at index '7'), we obtain the regular ionian major scale, i.e. the vanilla major scale.

If the number of tones in our octave is not twelve, we may find other patterns that can be constructed like this, and we may even find that several different 'generators' generate multiple sets of interesting patterns. More of that later, however.