
This is a work in progress...
Trimmed the algorithm down to fit in 60 seconds. I still need to work on showing the drift from sub-minor, minor, major, supermajor.
Microtonal Music is music using more than 12 tones per octave. I compose music using Csound and a preprocessor I wrote in Turbo Pascal. I post small updates as the compositions are being created, and a few final versions once I'm done. I strive towards music that could be played if we had the instruments capable of playing the notes. Think of it as "fake but accurate".

This is a work in progress...
@ play them
@
&all-t23min-48-*. &all-t23min-48-*. &all-t23min-48-*. &all-t23min-48-*.
.vel-vel a235
&all-t23min-48-*. &all-t23min-48-*. &all-t23min-48-*. &all-t23min-48-*.
.vel-vel a200
&all-t26sub-48-*. &all-t26sub-48-*. &all-t26sub-48-*. &all-t26sub-48-*.
.vel-vel a100
&all-t26sub-48-*. &all-t26sub-48-*. &all-t26sub-48-*. &all-t26sub-48-*.
.vel-vel a230
&all-t23min-48-*. &all-t23min-48-*. &all-t23min-48-*. &all-t23min-48-*.
.vel-vel a255

This is the last version for now, I think. I slow the piece down by a small amount every 40 seconds until it is running around 11% slower at the end. Each of the 12 tempo reductions are done by the ratio of 2^(1/72), which is the 72nd root of two (1.0096735332). The beats per minute are divided by that number 12 times. Coincidentally, that's the same as the ratio of one note to the next in 72-EDO, the tuning the piece is realized in. I can't figure out how that happened, but there it is.
Csound takes care of tempo with the t tempo statement.
t0 1200 800 1200 896 1188 1592 1188 1688 1176 2376 1176 2472 1164 3152 1164 3248 1152 3920 1152 4016 1140 4680 1140 4776 1129 5432 1129 5528
1118 6177 1118 6273 1107 6915 1107 7011 1096 7645 1096 7741 1085 8368 1085 8464 1074 9084 1074 9180 1063 9792 1063 9888 1052 10493 1052 10589
The t0 makes it a tempo statement. The next number is the beats per minute, in this case 1200. A quarter note is about 8 beats when there are 1200 beats a minute. The next number after beats per minute is the number of beats where the next tempo marker is found, in this case 1200. So it stays at 1200 beats a minute for 800 beats, about 100 eighth notes. The next number 896 is the beat marker, and 1188 is the beats per minute. 1200 / 1.0096735332 is 1188, approximately. Over the next 96 beats or 12 eighth notes, it slows down from 1200 to 1188 beats per minute. Then at beat 1592 it starts to slow down to 1176 beats per minute, arriving at that speed at beat 1688. The overall effect is a gradual slowing down, sometimes noticably, sometimes imperceptively, until it stops.


This is another take on the same piece I've been working on for a while. This version includes adjustments to the tuning of the samples. There were some intonation problems with the marimba, harp, vibes, flute, and balloon drum. To determine pitch I used Cooledit (now called Adobe Audition) and its FFT option. You basically load a sample file and select Analyze-FFT and it puts up a Fast Fourier Transfer window showing the most prominent frequencies, with the pitch in note/cents from 12-EDO for the most prominent frequency. For most non-bass notes that is the fundamental. Here's one for the harp D#6, 4 cents flat at a point about half a second into the harp sample. 
My Csound preprocessor allows me to put -4 into a list of samples, and Csound adjusts the sample when it's used in the synthesis instrument. Four cents is not noticiable, for the most part. Anything over 10 is not good.
Most of these samples, from the McGill University Master Samples CDROM library, are not very in tune, and they don't necessarily hold the same pitch for the whole note. Many go up and down by a few cents from the start to finish.
This is the first time I have systematically used the Cooledit frequency analysis to fine tune the samples. I previously tuned them by ear to a reference sine wave. It was a time consuming process, and error prone. The harp sample was particularly out tune, with one note 43 cents off, and others 10-20 off. The flute was also way out of tune, with the highest note 31 cents sharp. Here's C6 31 cents sharp one second into the sample. Typical flute player getting excited that he can hit such a high note. I back that sample down by 31 cents and we are good to go.


This is a version of the finished work. It is scored for flutes, marimba, vibe, finger piano, harp, balloon drums, and a percussion board with a contact microphone. The latter instrument includes several rocks, toothbrushes, and pieces of wood, glass, and rocks glued to the surface of a piece of sitka spruce. If you hear something that sounds like a monkey chant, it's probably the percussion board.
The intonation is 72-equal divisions of the octave (72-EDO) approximating the Partch tonality diamond to the 15 limit. There are many glissandi and trills employed. The marimba and vibe are given many opportunities to trill and slide around their pitches. The triad is the basic melodic element, either 4:5:6 or 7:9:11 or their inversions in the major scale, and comparable chords in the sub-minor and minor modes.
The piece starts out in B 16/9, with a scale based on the overtone series. As shown on the chart below, it modulates around the tonality diamond from there. Click on the chart for a larger version. The yellow colored blocks are the B 16/9 major scale. The subminor D 12/11 is in orange, the subminor G 3/2 is in pink, the C 1/1 minor is green, and the F 4/3 major is in blue. I use glissandi to slide from one chord to another.
As with all my works, there is a great deal of indeterminacy. Each instrument has many choices to make, subject to constraints about repeatability and change. Imagine a band improvising from a set of approved riffs.

This is a work in progress...
Each chord can have a variety of alterations: straight, trill, or slide. The trills and slides move each note in a triad up or down by a step in the otonality scale. Bb 16/9 can go up a 9:8 to C 1/1 or down a 7:8 to Ab 14/9. The D 10/9, which is a 5:4 above the Bb 16/9 can go up an 11:10 to Eb 11/9 or down a 9:10 to C 1/1. And the F 4/3 a 3:2 above Bb 16/9 can go up a 7:6 to Gb 13/9 or down a 11:12 to an Eb 11/9. The slides are nice and sweet. Here is the glissando up a 12:11 in Csound:
f 323 0 256 -7 1 64 1 128 1.0905077 64 1.0905077 ; 12:11 22 up 9
And here it is graphically, as rendered by Csound to a PDF file:


This is a work in progress...
As with all overtone series, a cluster of notes above a certain pitch will always generate a difference tone. But even though the scale designed to favor the root at C, the difference tone will always be F. I will have to take that into consideration when I add low notes. They will have to resolve that F to C, and choose notes carefully to minimize the difference tone prominence.


This is a work in progress...
Listen to the difference tones move around in this set of changes.
In this case, major is an otonality based 4:5:6 triad. Sub minor is otonality based also, but on the 6:7:9 overtones. Think of a G minor using G Bbb D. Minor is utonality minor 6/6:5:4. When I slide from one chord to another, the difference tones go in strange directions. They will probably disappear as I add more instruments to the mix. Today is sounds like a nice barbershop harmony tune that could have been taken from a hymnal.

Subscribe here: 
This version includes several mirror functions. Where earlier sections used predominantly the utonality triad 5/(4:5:6), which is a standard just minor chord in A, there are now complementary sections that use 10/(7:9:11), higher up the utonality diamond.
The overtone series can be thought of as overtones 4:5:6 making up a major chord, and higher up overtones 7:9:11 extending that out. The undertone series is the opposite of overtone series. Other mirror functions have the choice of notes to play proceed sequentially, then backwards.
The piece is scored for sine waves. This is the first time I haven't used orchestral samples in a piece. No more jokes about fake but accurate. The intonation is 53 tone equal divisions of the octave approximating just.


This is a work in progress...

This is a work in progress...
I have an idea for a brief informal contest. Given a simple,
one-oscillator orchestra, provide a score which produces the
most beautiful piece.
I offer an orchestra that I crafted for the purpose
of this event. One can make use of very limited
envelope an pan controls. Obviously, the craft will
be in the score generation program (although one is
welcome to hand edit her entry!).
If there is interest, I suggest a seven day window
for this challenge. Only the scores should be
submitted at first. We can look at source code
later. For large scores, a URL might be best. I can host
scores if you send them to me in an archive format.
Thanks,
Toby
sr = 44100
ksmps = 1
nchnls = 2
giSineFunc ftgen 1, 0, 65536, 10, 1
instr 1
;***** INIT SECTION *****
iDur init p3
iVol init p4
iStartPitch init p5
iEndPitch init p6
iAttack init p7
iDecay init iDur - iAttack
iPanStart init p8
iPanEnd init p9
;***** SYNTH SECTION *****
kEnv linseg 0, iAttack, iVol, iDecay, 0
kPitch expseg iStartPitch, iDur, iEndPitch
aSig oscili kEnv, kPitch, giSineFunc
kPan linseg iPanStart, iDur, iPanEnd
aLeft = aSig * kPan
aRight = aSig * (1 - kPan)
outs aLeft, aRight
endin
giSineFunc ftgen 1, 0, 65536, 10, 1 with an equivalent ftable entry f1 0 65536 10 1 .My version of Csound is 4.19, which is many levels back from the current version. It doesn't support giSineFunc. But since I wrote the preprocessor in Turbo Pascal, which is still running today with a last touched date of May 2, 1989, I can't complain. Software currency is for losers.