<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>blog.sokay.net &#187; Robot Music</title>
	<atom:link href="http://blog.sokay.net/category/robot-music/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sokay.net</link>
	<description>flash game development discussion</description>
	<lastBuildDate>Thu, 19 Aug 2010 16:00:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Robot Music IV: Scales of the World</title>
		<link>http://blog.sokay.net/2008/04/08/robot-music-iv-scales-of-the-world/</link>
		<comments>http://blog.sokay.net/2008/04/08/robot-music-iv-scales-of-the-world/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 08:07:03 +0000</pubDate>
		<dc:creator>Christopher J. Rock</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Robot Music]]></category>
		<category><![CDATA[Sokay Development]]></category>
		<category><![CDATA[augmentation]]></category>
		<category><![CDATA[augmented]]></category>
		<category><![CDATA[chord]]></category>
		<category><![CDATA[diminished]]></category>
		<category><![CDATA[diminuition]]></category>
		<category><![CDATA[dominant]]></category>
		<category><![CDATA[modes]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[musical theory]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[procedural]]></category>
		<category><![CDATA[scales]]></category>
		<category><![CDATA[symmetrical]]></category>
		<category><![CDATA[tone]]></category>
		<category><![CDATA[triad]]></category>
		<category><![CDATA[world]]></category>

		<guid isPermaLink="false">http://blog.sokay.net/?p=174</guid>
		<description><![CDATA[Series: Robot Music I, Robot Music II: Modes, Robot Music III: The Circle of Fifths, Robot Music IV: Scales of the World So far everything has been derived from the Major Scale, but now I have some new scales to introduce. These are foreign and exotic scales with fascinating new sounds! After RM1 as a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><em>Series: <a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_self">Robot Music I</a>, <a title="Robot Music II" href="http://blog.sokay.net/2008/03/01/robot-music-ii-modes/" target="_self">Robot Music II: Modes</a>, <a title="Robot Music III" href="http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/" target="_blank">Robot Music III: The Circle of Fifths</a>, Robot Music IV: Scales of the World<a title="Robot Music III" href="http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/" target="_blank"> </a></em></p>
<p align="center"><img src="http://blog.sokay.net/wp-content/uploads/2008/03/robot-music-logo-circle-of-fifths.jpg" alt="Robot Music Logo - Circle of Fifths" /></p>
<p style="text-align: left;">So far everything has been derived from the Major Scale, but now I have some new scales to introduce. These are foreign and exotic scales with fascinating new sounds!</p>
<p>After RM1 as a proof of concept, RM2 introduced the Major modes and RM3 explained how they work. Now RM4 will introduce new scales and&#8211;guess what?&#8211;RM5 will explain how they work. This episode also includes a bit more information on chords.</p>
<p><em>TO THE SCALES!</em></p>
<p align="left"><span id="more-174"></span></p>
<p align="left">(They have been right justified for easy comparison)</p>
<p align="left"><strong>Symmetrical Scales:</strong></p>
<p align="left">These scales are not generally pleasing, but can be very cool to play with. They are called symmetrical because the scale formulas allow multiple degrees to be identified as the root.</p>
<p style="text-align: right;">Chromatic: x x x x x x x x x x x x</p>
<p style="text-align: right;">Whole Tone: x &#8211; x &#8211; x &#8211; x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Diminished: x &#8211; x x &#8211; x x &#8211; x x &#8211; x</p>
<p style="text-align: right;">Six Tone Symmetrical: x x &#8211; - x x &#8211; - x x &#8211; -</p>
<p style="text-align: right;">
<p style="text-align: left;"><em>Modified Symmetrical Scales:</em></p>
<p style="text-align: right;">Altered: x x &#8211; x x &#8211; x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Leading Whole Tone: x &#8211; x &#8211; x &#8211; x &#8211; x x x -</p>
<p align="left">
<p align="left"><strong>Common Scales:</strong></p>
<p align="left">These are some popular western scales that make up most music nowadays.</p>
<p style="text-align: right;">Major: x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x</p>
<p style="text-align: right;">Major Pentatonic: x &#8211; x &#8211; x &#8211; - x &#8211; x &#8211; -</p>
<p style="text-align: right;">Blues: x &#8211; - x x x x x &#8211; - x -</p>
<p style="text-align: right;">Minor Pentatonic: x &#8211; - x &#8211; x &#8211; x &#8211; - x -</p>
<p style="text-align: right;">Natural Minor (Aeolian): x &#8211; x x &#8211; x &#8211; x x &#8211; x -</p>
<p style="text-align: right;">Melodic Minor: x &#8211; x x &#8211; x &#8211; x &#8211; x &#8211; x</p>
<p style="text-align: right;">Harmonic Minor: x &#8211; x x &#8211; x &#8211; x x &#8211; - x</p>
<p align="left">
<p align="left"><em>Modified Common Scales:</em></p>
<p style="text-align: right;">Lydian Flat-Seven: x &#8211; x &#8211; x &#8211; x x &#8211; x x -</p>
<p style="text-align: right;">Lydian Minor: x &#8211; x &#8211; x &#8211; x x x &#8211; x -</p>
<p style="text-align: right;">Lydian Diminished: x &#8211; x x &#8211; - x x x &#8211; x -</p>
<p style="text-align: right;">Overtone (Lydian Dominant): x &#8211; x &#8211; x &#8211; x x &#8211; x x -</p>
<p style="text-align: right;">Major Locrian: x &#8211; x &#8211; x x x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Super Locrian: x x &#8211; x x &#8211; x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Double Harmonic: x x &#8211; - x x &#8211; x x &#8211; - x</p>
<p style="text-align: right;">Nine Tone: x &#8211; x x x &#8211; x x x x &#8211; x</p>
<p style="text-align: right;">Auxiliary Diminished: x &#8211; x x &#8211; x x &#8211; x x &#8211; x</p>
<p style="text-align: right;">Auxiliary Augmented: x &#8211; x &#8211; x &#8211; x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Auxiliary Diminished Blues: x x &#8211; x x &#8211; x x &#8211; x x -</p>
<p align="left">
<p align="left"><strong>Ethnic Scales:</strong></p>
<p align="left">These scales are a bit more rare. They tend to be tonally powerful and emphasize some interesting notes. Play in these scales and, like magic, you sound like you&#8217;re playing music from their countries of origin (more or less&#8211;mimicking the ethnic rhythm helps).</p>
<p style="text-align: right;">Roumanian: x &#8211; x x &#8211; - x x &#8211; x x -</p>
<p style="text-align: right;">Spanish Gypsy: x x &#8211; - x x &#8211; x x &#8211; x -</p>
<p style="text-align: right;">Eight Tone Spanish: x x &#8211; - x &#8211; x &#8211; x &#8211; x x</p>
<p style="text-align: right;">Neopolitan Major: x x &#8211; x &#8211; x &#8211; x &#8211; x &#8211; x</p>
<p style="text-align: right;">Prometheus: x &#8211; x &#8211; x &#8211; x &#8211; - x x -</p>
<p style="text-align: right;">Prometheus Neopolitan: x x &#8211; - x &#8211; x &#8211; - x x &#8211; -</p>
<p style="text-align: right;">Pelog: x x &#8211; x &#8211; - x &#8211; - &#8211; x x</p>
<p style="text-align: right;">Oriental: x x &#8211; x x x x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Hungarian Major: x &#8211; - x x &#8211; x x &#8211; x x -</p>
<p style="text-align: right;">Iwato: x &#8211; - &#8211; x x &#8211; - &#8211; x &#8211; x</p>
<p style="text-align: right;">Hirajoshi: x &#8211; x x &#8211; - &#8211; x x &#8211; - -</p>
<p style="text-align: right;">Hindu: x &#8211; x &#8211; x x &#8211; x x &#8211; x -</p>
<p style="text-align: right;">Arabian: x &#8211; x &#8211; x x x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Gypsy: x x &#8211; - x x &#8211; x x &#8211; - x</p>
<p style="text-align: right;">Mohammedan: x &#8211; x x &#8211; x &#8211; x x &#8211; - x</p>
<p style="text-align: right;">Javanese: x x &#8211; x &#8211; x &#8211; x &#8211; x &#8211; x</p>
<p style="text-align: right;">Persian: x x &#8211; - x x x &#8211; x &#8211; - x</p>
<p style="text-align: right;">Byzantine: x x &#8211; - x x &#8211; x x &#8211; - x</p>
<p style="text-align: right;">Hawaiian: x &#8211; x x &#8211; - &#8211; x &#8211; x &#8211; x</p>
<p style="text-align: right;">Mongolian: x &#8211; x &#8211; x &#8211; - x &#8211; x &#8211; -</p>
<p style="text-align: right;">Egyptian: x &#8211; x &#8211; - x &#8211; x &#8211; - x -</p>
<p style="text-align: right;">Chinese: x &#8211; - &#8211; x &#8211; x x &#8211; - &#8211; x</p>
<p style="text-align: left;"><strong>Scale Names and Relativity</strong></p>
<p style="text-align: left;">Many scales have names that describe them relative to other scales. For example, compare the Locrian and the Major Locrian.</p>
<p style="text-align: right;">Locrian: x <strong><span style="color: #0000ff;">x</span></strong> <strong><span style="color: #ff0000;">-</span></strong> <strong><span style="color: #0000ff;">x</span></strong> <strong><span style="color: #ff0000;">-</span></strong> x x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Major Locrian: x <strong><span style="color: #0000ff;">-</span></strong> <strong><span style="color: #ff0000;">x</span></strong> <strong><span style="color: #0000ff;">-</span></strong> <strong><span style="color: #ff0000;">x</span></strong> x x &#8211; x &#8211; x -</p>
<p style="text-align: left;">The Locrian is transformed into a Major Locrian by sharpening the 2nd and 3rd degrees (raising them 1 half-step). That change results in a scale that seems to combine the Locrian and the Unison. It combines the Locrian sound with a very &#8220;Major&#8221; sound, hence it is called the Major Locrian.</p>
<p style="text-align: left;">A similar modification of the Locrian mode generates the Super Locrian.</p>
<p style="text-align: right;">Locrian: x x &#8211; x <span style="color: #ff0000;"><strong>-</strong></span> <strong><span style="color: #0000ff;">x</span></strong> x &#8211; x &#8211; x -</p>
<p style="text-align: right;">Super Locrian: x x &#8211; x <strong><span style="color: #ff0000;">x</span></strong> <strong><span style="color: #0000ff;">-</span></strong> x &#8211; x &#8211; x -</p>
<p style="text-align: left;">Every note in the Locrian mode is 1 half-step off of the Major scale (Unison mode) except for the 1st and 4th degrees which remain. By flattening the 4th, the scale is then considered <em>Super</em> Locrian. As you can see, the names themselves are unimportant, but help to convey the design of the scale. The Super Locrian can also be seen as equal to the Melodic Minor scale from the 7th degree.</p>
<p style="text-align: right;">Melodic Minor: <span style="color: #0000ff;"><strong>x</strong></span> &#8211; x x &#8211; x &#8211; x &#8211; x &#8211; <strong><span style="color: #ff0000;">x</span></strong></p>
<p style="text-align: right;">Super Locrian: <span style="color: #ff0000;"><strong>x</strong></span> <span style="color: #0000ff;"><strong>x</strong></span> &#8211; x x &#8211; x &#8211; x &#8211; x -</p>
<p style="text-align: left;"><strong>Robot Implementation</strong></p>
<p style="text-align: left;">Just as we replaced the Major Pentatonic in RM1 with the full Major scale in RM2, we can replace the Major scale with any of these others and apply the same logic.</p>
<p>Where modes of the Major scale explored different sensations within that scale, these scales can explore brand new areas that don&#8217;t exist within the limitations of the Major formula. Furthermore, each of these scales has its own set of modes that emphasizes its different facets.</p>
<p>It&#8217;s not hard to find other scales out in the wild, but you&#8217;ll probably see that most of them are not much different from some that are already on this list. In the next installment we can go into generating our own scales so having a long list will be unnecessary. However, it&#8217;s worth playing with these scales so you have a better feel for what&#8217;s coming up. You&#8217;ll also want to be comfortable with the terminology of scales.</p>
<p style="text-align: left;"><strong>Scale and Chord Terminology</strong></p>
<p style="text-align: left;">(Chords are described according to the scales they encompass, so this section applies to both subjects)</p>
<p style="text-align: left;">You&#8217;ve probably picked up on some of the terminology being thrown around.  If you understand these terms, you can decipher scales and chords based on their names very easily. You can also begin describing scales and chords more accurately, including those you invent yourself.</p>
<p style="text-align: left;">Here are some common terms:</p>
<p style="text-align: left;"><em>Triad:</em> A chord made up of the 1st, 3rd, and 5th degrees. Generally this refers to the Major Triad (a triad in the Major Scale).</p>
<p style="text-align: left;"><em>Flat:</em> If a degree is flattened, it is lowered by 1 half-step. An example of this is the Lydian Flat-Seven Scale, which is the same as the Lydian mode, but with a flattened 7th degree.</p>
<p style="text-align: left;"><em>Diminished:</em> This refers to a degree being lowered (flattened) by 1 half-step. Generally this is in regards to the 5th degree. In other cases, the degree being diminished will be stated (e.g. Diminished 7th). In a diminished triad, the 3rd and 5th degrees are both flattened.</p>
<p style="text-align: right;">Major Triad: x &#8211; - <strong><span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span></strong> &#8211; <strong><span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span></strong> &#8211; - &#8211; -</p>
<p style="text-align: right;">Diminished Triad: x &#8211; - <strong><span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span></strong> <strong>- <span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span></strong> &#8211; - &#8211; -</p>
<p style="text-align: left;"><em>Augmented:</em> An augmented interval is the opposite of a diminished one; it has been raised (sharpened) by 1 half-step. An augmented triad is the same as a Major triad but with a sharpened 5th.</p>
<p style="text-align: right;">Major Triad: x &#8211; - &#8211; x &#8211; - <strong><span style="color: #0000ff;">x</span> <span style="color: #ff0000;">-</span></strong> &#8211; - -</p>
<p style="text-align: right;">Augmented Triad: x &#8211; - &#8211; x &#8211; - <strong><span style="color: #0000ff;">-</span> <span style="color: #ff0000;">x</span></strong> &#8211; - -</p>
<p style="text-align: left;"><em>Major:</em> Major tends to mean &#8220;like the Major scale.&#8221; As mentioned above, the Major Locrian is basically a combination of the Major and Locrian scales.</p>
<p style="text-align: left;"><em>Minor:</em> Minor is usually synonymous with &#8220;flattened.&#8221; This is true in the case of the minor 2nd interval (m2, as in Cm2) where the interval is actually composed of a flattened 2nd degree (AKA a semitone). Other times it may mean &#8220;like the Minor Scale&#8221; as in the Lydian Minor Scale which is a combination of the Lydian and Minor scales. Generally the &#8220;Minor&#8221; sound is associated with a minor 3rd interval (as contained in the Minor scale). The Minor scale is sometimes called the Natural Minor to differentiate it from the Melodic Minor and Harmonic Minor, which are also characterized by a flattened 3rd degree.</p>
<p style="text-align: left;"><em>Dominant:</em> The dominant is the 5th degree. A scale or chord with the word dominant in its name may contain the 5th degree and/or be based upon the Myxolydian mode (the 5th mode) as in the case of the Lydian Dominant.</p>
<p style="text-align: left;"><em>Seventh, 7, or vii:</em> The 7th degree is an exception to some rules because when a scale or chord has a 7, that usually means it has a flat 7 (AKA minor 7). However, if a scale or chord is meant to contain the 7th degree as in the Major Scale (Unison), it will be called a Major 7. These two triads demonstrate the difference between the C7 (Cm7, Cmin7) and the C Major 7 (CM7, Cmaj7) chords:</p>
<p style="text-align: right;">C7: C &#8211; - &#8211; E &#8211; - G &#8211; - <span style="color: #0000ff;"><strong>Bâ™­</strong></span> <strong><span style="color: #ff0000;">-</span></strong></p>
<p style="text-align: right;">C Major 7: C &#8211; - &#8211; E &#8211; - G &#8211; - <strong><span style="color: #0000ff;">-</span></strong> <strong><span style="color: #ff0000;">B<span style="color: #000080;">_</span></span></strong></p>
<p>The minor 7 is characteristic of the Myxolydian mode. Therefore, another name for the minor 7th interval is the Dominant 7th. Since the plain old 7th usually refers to a flat 7, saying Diminished 7th is really saying &#8220;Diminished flat 7th&#8221; which equals a double-flat 7 or the 6th interval. Yes, it&#8217;s all very confusing and stupid.</p>
<p style="text-align: left;"><em>Leading:</em> A leading tone is 1 half-step lower than the note it &#8220;leads&#8221; to (the Major 7th interval). The Leading Whole Tone Scale adds a leading note between the augmented 5th and 6th degrees. Apparently the major and minor 3rds also have &#8220;<a title="Wiki: Leading-Tone" href="http://en.wikipedia.org/wiki/Leading-tone" target="_blank">latent tendencies</a>.&#8221;</p>
<p style="text-align: left;"><em>Pentatonic, Hexatonic, etc:</em> Names like these are often using latin to describe the number of notes in the scale. Penta means 5, so a Pentatonic scale contains 5 notes. Hex means 6 so the Hexatonic contains 6 notes. This is not true in the case of the Diatonic which actually means &#8220;Progressing tones&#8221; (another name for the Major Scale).</p>
<p style="text-align: left;">No experiment this time around, but look forward to one in Robot Music 5, when we&#8217;ll finally start breaking some rules. We gotta teach our Robot to <a title="Wiki: Musical Improvisation" href="http://en.wikipedia.org/wiki/Musical_improvisation" target="_blank"><em>improvise!</em></a></p>
<p style="text-align: left;">-Christopher J. Rock</p>
<p style="text-align: left;"><strong><span style="color: #ffcc00;">Notes:</span></strong></p>
<p style="text-align: left;"><span style="color: #ffcc00;"><em><a title="Scale and Chord Generator" href="http://www.musisindo.com/e107/guitarchord.htm" target="_blank">http://www.musisindo.com/e107/guitarchord.htm</a></em>: This is a great website for examining chords and scales on piano keys. Just enter in the chord or scale you want to see and it highlights the right keys. You can even enter in formulas for your own custom scales.</span></p>
<p align="left">
<p style="text-align: left;"><em><span style="color: #ffcc00;">Naming Scale Degrees</span></em></p>
<p style="text-align: left;"><span style="color: #ffcc00;">As discussed in previous chapters, the names of notes are not relevant to our Robots. For that reason, I haven&#8217;t bothered to name the &#8220;accidentals&#8221; properly.</span></p>
<p style="text-align: left;"><span style="color: #ffcc00;">Accidentals are all the sharps and flats not included in the C Major scale. When these came up I started out using only the sharp symbol (â™¯) and then switched to flat (b) for scale degrees. I&#8217;ll quote <a title="Wiki: Musical Scales" href="http://en.wikipedia.org/wiki/Musical_scale" target="_blank">wikipedia</a> for the correct way to name scale degrees:</span></p>
<blockquote>
<p style="text-align: left;"><span style="color: #ffcc00;">In naming the notes of a scale, it is customary that each scale degree be assigned its own letter name: for example, the A diatonic scale is written A &#8211; B &#8211; Câ™¯ &#8211; D &#8211; E &#8211; Fâ™¯ &#8211; Gâ™¯ rather than A &#8211; B &#8211; Dâ™­ &#8211; D &#8211; Fâ™­ &#8211; Eâ™¯â™¯ &#8211; Gâ™¯. However, it is impossible to do this with scales containing more than seven notes.</span></p>
</blockquote>
<p style="text-align: left;"><span style="color: #ffcc00;">That&#8217;s all well n&#8217; good for some old European guy, but if you ask me it&#8217;s just making things look more complicated than they need to be. That&#8217;s why I prefer to stick to degree numbers with flats when necessary.</span></p>
<p style="text-align: left;"><span style="color: #ffcc00;">Accidentals, pfft. . . . Who says they were an accident?</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sokay.net/2008/04/08/robot-music-iv-scales-of-the-world/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Robot Music III: The Circle of Fifths</title>
		<link>http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/</link>
		<comments>http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 08:25:16 +0000</pubDate>
		<dc:creator>Christopher J. Rock</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Robot Music]]></category>
		<category><![CDATA[Sokay Development]]></category>
		<category><![CDATA[circle of fifths]]></category>
		<category><![CDATA[consonance]]></category>
		<category><![CDATA[dissonance]]></category>
		<category><![CDATA[modes]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[musical theory]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[perception]]></category>
		<category><![CDATA[procedural]]></category>
		<category><![CDATA[scales]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[spectrum]]></category>
		<category><![CDATA[tone]]></category>

		<guid isPermaLink="false">http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/</guid>
		<description><![CDATA[Series: Robot Music I, Robot Music II: Modes, Robot Music III: The Circle of Fifths, Robot Music IV: Scales of the World New logo baby. Robot Music I proved that a pleasing song can be randomly generated under the right guidelines. Those guidelines stuck to a 4/4 rhythm and the C Major Pentatonic Scale. Robot [...]]]></description>
			<content:encoded><![CDATA[<p><em>Series: </em><em><a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_self">Robot Music I</a>, <a title="Robot Music II" href="http://blog.sokay.net/2008/03/01/robot-music-ii-modes/" target="_self">Robot Music II: Modes</a>, Robot Music III: The Circle of Fifths, <a title="Robot Music IV" href="http://blog.sokay.net/2008/04/08/robot-music-iv-scales-of-the-world/" target="_self">Robot Music IV: Scales of the World</a></em></p>
<p align="center"><a href="http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/"><img src="http://blog.sokay.net/wp-content/uploads/2008/03/robot-music-logo-circle-of-fifths.jpg" alt="Robot Music Logo - Circle of Fifths" /></a></p>
<blockquote>
<p align="center">New logo baby.</p>
</blockquote>
<p><a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_blank">Robot Music I</a> proved that a pleasing song <em>can</em> be randomly generated under the right guidelines.  Those guidelines stuck to a 4/4 rhythm and the C Major Pentatonic Scale.</p>
<p><a title="Robot Music II" href="http://blog.sokay.net/2008/03/01/robot-music-ii-modes/" target="_blank">Robot Music II</a> proved that the C key could be replaced with any other (changing the root).  It also showed that the Major Pentatonic Scale (5 notes) could be expanded to the Major Scale (7 notes) without harming our method.  And most importantly, this section covered modes and demonstrated that shifting a song&#8217;s mode can significantly change its tone.  Knowing that the tone can be changed, how can we control it?</p>
<p>Robot Music III introduces the Circle of Fifths.  It is a basic musical tool that will help us predict the impact of a mode of the Major Scale.  With it, our Robot can place notes along 2 dimensions (Consonance vs. Dissonance, Dominance vs. Sub-Dominance) and estimate the emotional impact of a note according to an arbitrary algorithm based on personal tastes.</p>
<p>This installment is the first to go into the perception of music.  To begin, we must discuss aural perception and some musical fundamentals.  That technical information will be related to our previous musical concepts by the use of the Circle of Fifths. And finally, a demonstration of mode relationships and some discussion of their popular uses.</p>
<p>You probably already know some of this, so I&#8217;ll try to move fast.</p>
<p><span id="more-102"></span></p>
<p>_</p>
<p><strong>How Sound is Felt</strong></p>
<p>The sensation of sound is created by waves of varying pressure in the air.  When a guitar string is plucked, it smacks against air molecules, smashing them together on one side while pulling them apart on the other.  Then the string swings back the other way, pulling apart the air on the first side and smashing it on the second.  That vibration continues, creating a pattern of high and low pressure ripples in the air that flow out from the string, just like if you splash in water, you see ripples spreading out from your hand.  The more quickly the string vibrates, or the hand splashes, the more ripples are created in a short time.  That raises the frequency of the ripples.  The ripples in the air hit your ear and vibrate your ear drum, just like the ribbon in a microphone.  Your inner-ear converts that to an electrical signal (just like a microphone does) and transmits it to the brain.  The brain then interprets that data, filtering it and deciphering its meaning.</p>
<p>_</p>
<p><strong>Technical Terms</strong><em><br />
</em></p>
<p>A sound is characterized by the shape of its wave. To better understand waves and a couple other musical concepts, you&#8217;ll have to understand these terms:</p>
<p><em>Pitch</em> and <em>Frequency</em>: The frequency of a wave is interpreted as pitch, or how &#8220;high&#8221; or &#8220;low&#8221; a note is. Higher frequencies create a higher pitched sound and lower frequencies, a lower one.</p>
<p><em>Wavelength</em>: The length of a ripple (1 cycle) is the wavelength. Waves with high frequencies are made of ripples that are very close together so they have shorter wavelengths.</p>
<p><em>Period</em>: The period is the time it takes for 1 cycle to pass.  In regards to sound waves, a shorter period is related to a shorter wavelength.</p>
<p><em>Amplitude</em>: The height of a wave is its amplitude.  It is the &#8220;loudness.&#8221;</p>
<p><em>Interval</em>: 2 notes played at the same time.</p>
<p><em>Chord</em>: 3 or more notes played at the same time.</p>
<p><em>Beat</em>: When an interval is played, the two waves combine, and they interfere with each other.  Sometimes the waves amplify each other (become louder), sometimes they cancel out and become quieter.  Most of the time, the waves go back and forth between loud and quiet.  The &#8220;going back and forth&#8221; is a beat. When you hear a guitar or piano chord ring out, listen for the beat going &#8220;woOowoOowoOowoOowoOow.&#8221;</p>
<p><a title="Wiki: Consonance and Dissonance" href="http://en.wikipedia.org/wiki/Consonance_and_dissonance" target="_blank"><em>Consonance</em> and <em>Dissonance</em></a>: Wave combinations that create an extremely tiny or very long beat are considered consonant while waves that create a short beat are called dissonant.*  Consonance is generally considered beautiful, if not boring, and dissonance can be interesting, but very harsh.</p>
<p>_</p>
<p><strong>Creating Consonance or Dissonance</strong></p>
<p>To be consonant, waves must be able to &#8220;fit together&#8221; neatly.  This means, that if you tried to fill the space of one wave with another wave, you could do it with as few remainders as possible.  Yes, I mean remainders like in math; division.  If you have a remainder, the beat will be equal to the number of cycles necessary for the remainder to add up to 1 (more or less).</p>
<p align="center"><a title="Waves and Beats" href="http://blog.sokay.net/wp-content/uploads/2008/03/waves-and-beats.jpg" target="_blank"><img src="http://blog.sokay.net/wp-content/uploads/2008/03/waves-and-beats.jpg" alt="Waves and Beats" /></a></p>
<blockquote>
<p align="center">Illustration of Waves A, B, and C</p>
</blockquote>
<p>For example, if Wave B has 3/2 the frequency of Wave A, they share a lot of qualities.  Waves A and B will both loop at the same points.  Wave B will loop 3 times for every 2 loops of A, but every time that A&#8217;s cycle ends and begins again, so does B&#8217;s.  These two waves are extremely consonant and will amplify each other.  Wave C, however, has 11/10 the frequency of Wave A.  If both waves start at the same time, the ending/beginning point of their cycles won&#8217;t meet again until Wave A has looped 10 times and Wave C has looped 11 times.</p>
<p>The time it takes for the two waves to begin and meet again is the length of their beat.  The beat created by Waves A and B is so short (equal to twice the period of Wave A) it cannot be heard.** The beat created by Waves A and C would be much more distinct, it would sound very rough.</p>
<p>_</p>
<p><em>Note Ratios </em></p>
<p>These are the ratios of the popular 12 notes (multiply a note&#8217;s ratio by the frequency of C to discover the frequency of that note&#8211;Or look at <a title="Note Frequency Chart" href="http://thinkzone.wlonk.com/Music/12Tone.htm" target="_blank">this chart</a>):</p>
<p style="text-align: center"><img src="http://blog.sokay.net/wp-content/uploads/2008/03/note-ratios.jpg" alt="Note Ratios" /></p>
<p align="center">
<blockquote><p><em>Note: These are the ratios according to Just Intonation.  In fact, modern instruments are generally tuned to Equal Temperament.  Equal Temperament involves a different set of ratios that were developed to allow musicians to easily change keys, but to come as close to Just Intonation as possible. </em></p></blockquote>
<p>You can probably tell that some of these ratios will fit together better than others (3/2 creates a beat of 2 cycles; 16/15 is 15 cycles). In <a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_blank">Robot Music I</a>, we used the half-step as a basic unit of measure for notes.  It places them in order of frequency from lowest to highest.  Now, by comparing the consonance and dissonance of different intervals, we can create a new sequence of notes; the Circle of Fifths.</p>
<p>_</p>
<p><strong>The Circle of Fifths</strong></p>
<p>This is the circle of fifths:</p>
<p align="center"><img src="http://blog.sokay.net/wp-content/uploads/2008/03/circle-of-fifths-notes.jpg" alt="Circle of Fifths - Notes" width="224" height="224" /><img src="http://blog.sokay.net/wp-content/uploads/2008/03/circle-of-fifths-degrees.jpg" alt="Circle of Fifths - Degrees" width="224" height="224" /><img src="http://blog.sokay.net/wp-content/uploads/2008/03/circle-of-fifths-ratios.jpg" alt="Circle of Fifths - Ratios" width="224" height="224" /></p>
<blockquote><p>Here it is written in notes, then again in degree numbers and in ratios.***</p>
<p align="left"><em>Note: I&#8217;ve begun using &#8220;b&#8221; to mean flat instead of &#8220;#&#8221; to mean sharp. You should know that an A# is equal to a Bb; they are the same note. # means &#8220;+1 half-step&#8221; and b means &#8220;-1 half-step.&#8221; In the case of degrees using b is more common.</em></p>
</blockquote>
<p>Each note is the 5th degree (the <em>dominant</em>) of the note before it and the 4th degree (the <em>sub-dominant</em>) of the note after it in the sequence.  In other words, G is the 5th of C and F is the 4th of C.  Or if you look at the E note, you know that B is the 5th of E and A is the 4th of E.</p>
<p><span style="color: #0000ff;"><strong>C</strong></span> &#8211; D &#8211; <span style="color: #000080;">_</span>E <span style="color: #000080;">_</span><span style="color: #ff0000;"><strong>F</strong></span> &#8211; <span style="color: #ff0000;"><strong>G</strong></span> &#8211; A &#8211; <span style="color: #000080;">_</span>B</p>
<p><span style="color: #0000ff;"><strong>E</strong></span> &#8211; F# &#8211; G# <span style="color: #ff0000;"><strong>A</strong></span> &#8211; <span style="color: #ff0000;"><strong>B</strong></span> &#8211; C# &#8211; D#</p>
<p><span style="color: #0000ff;"><strong>1 </strong></span>- 2 &#8211; <span style="color: #000080;">_</span>3 <span style="color: #000080;">_</span><span style="color: #ff0000;"><strong>4</strong></span> &#8211; <span style="color: #ff0000;"><strong>5</strong></span> &#8211; 6 &#8211; <span style="color: #000080;">_</span>7</p>
<p>The greater the distance between any two notes in the sequence; the more dissonant they are as an interval.  Therefore 2 intervals of equal distance from the root are equally consonant or dissonant.  Furthermore, 2 notes of <em>nearly</em> equal distance in the sequence have a <em>nearly</em> equal consonance or dissonance.</p>
<p>In addition to consonance and dissonance, the circle of fifths illustrates dominance and sub-dominance.</p>
<p>_</p>
<p><em>Dominance and Sub-Dominance</em></p>
<p><em>Disclaimer: I am making these comments on dominance and sub-dominance not because I have learned of it elsewhere, but because I have felt them to be accurate and useful.  Elsewhere, the term dominant is used synonymously with the 5th degree and the sub-dominant with the 4th degree. This concept will be readdressed later.<br />
</em></p>
<p>Dominance and Sub-Dominance involve which note is established as the root in a chord or riff.  If you don&#8217;t know which note is the root, you don&#8217;t know what perspective your scale is being played from so you can&#8217;t control its effects. Here the circle is divided into dominant and sub-dominant halves.</p>
<p align="center"><img src="http://blog.sokay.net/wp-content/uploads/2008/03/circle-of-fifths-degrees-dominance.jpg" alt="Circle of Fifths - Dominance" /><strong><span style="color: #00ff00;"> </span></strong></p>
<p>You can consider everything on the left side to be dominant, everything on the right to be sub-dominant, and the blue <span style="color: #0000ff;"><strong>5b</strong></span> to be completely neutral.  I find that playing the intervals on the dominant side clearly establishes the interval&#8217;s 1st degree as the root of your riff or chord.  The sub-dominant intervals may be less clear or even establish themselves as the root.</p>
<p>For example, in rock songs you often hear a 5th interval (1 and 5) like the C and G notes being strummed at the same time.  The 4th interval is equally popular (1 and 4), like C and F strummed at the same time.   The difference between the two is that between C and G, C will be established as the root note, but between C and F, F will take control.**** Often sub-dominant notes can obscure your root.  That&#8217;s not necessarily bad, but it must be known.  The closer the interval gets to the neutral <strong><span style="color: #0000ff;">5b</span></strong>, the less dominant or sub-dominant effects they have and the more neutral they become.</p>
<p>The first note played and the lowest note played also are more likely to be established as the root, but the dominance/sub-dominance effects won&#8217;t really come in until chords and inverses are being used. We won&#8217;t get into that yet.</p>
<p>_</p>
<p><strong>A Spectrum</strong></p>
<p>As you can see, the general effects or what you might call the &#8220;meanings&#8221; of notes are accurately mapped out by the Circle of Fifths.  It presents notes on a continuous spectrum according to their similarity as  the ear and brain perceive them.</p>
<p style="text-align: center"><img src="http://blog.sokay.net/wp-content/uploads/2008/03/circle-of-fifths-degrees-hues.jpg" alt="Circle of Fifths - Degrees - Hues" /></p>
<p>The Circle of Fifths is often compared to the color spectrum and remarkably similar to it.  Coincidence?  I don&#8217;t know, but I doubt it (<a title="Leonardo Music Journal - Chromatic Notation of Music" href="http://links.jstor.org/sici?sici=0961-1215%281995%295%3C5%3ACNOMTB%3E2.0.CO%3B2-N&amp;size=LARGE&amp;origin=JSTOR-enlargePage" target="_blank">there <em>are </em>theories</a>).  The important thing is that you recognize the sound of the 1st degree as very similar to the 4 and 5.  Somewhat less similar to 2 and 7b.  Less similar to 6 and 3b.  And so on down the list.</p>
<p>_</p>
<p><strong>Modes Over the Circle</strong></p>
<p>You should remember modes from <a title="Robot Music II" href="http://blog.sokay.net/2008/03/01/robot-music-ii-modes/" target="_blank">Robot Music II</a>.  Now we can marry those ideas to the Circle of Fifths.</p>
<p>A mode of the Major Scale is defined by its root degree. Each one has a unique tone about it, but we haven&#8217;t yet discussed the relationships of the different tones.  In fact, just as the Circle of Fifths maps out perceived similarities in notes, it also maps out similarities in the modes of those notes in the Major Scale.</p>
<p>For example, the 1st Degree&#8217;s mode (Unison) is almost identical to the mode of the 5th degree (Myxolydian):</p>
<p align="center"><em>1st Mode/Unison:</em><br />
x &#8211; x &#8211; x x &#8211; x &#8211; x <strong><span style="color: #ff0000;">-</span></strong> <span style="color: #0000ff;"><strong>x</strong></span></p>
<p align="center"><em>5th Mode/Myxolydian:</em><br />
x &#8211; x &#8211; x x &#8211; x &#8211; x <strong><span style="color: #ff0000;">x</span></strong> <span style="color: #0000ff;"><strong>-</strong></span></p>
<p>The only difference is the placement of a single note.  The same goes when you compare the Unison to the mode of the 4th Degree (Lydian):</p>
<p align="center"><em>1st Mode/Unison:</em><br />
x &#8211; x &#8211; x <strong><span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span></strong> x &#8211; x &#8211; x</p>
<p align="center"><em>4th Mode/Lydian:</em><br />
x &#8211; x &#8211; x <strong><span style="color: #ff0000;">-</span></strong> <span style="color: #0000ff;"><strong>x</strong></span> x &#8211; x &#8211; x</p>
<p align="left">However, the Unison is very different from the mode of the 7th Degree (Locrian):</p>
<p align="center"><em>1st Mode/Unison:</em><br />
x<strong> <span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span> <span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span></strong> x<strong> </strong><strong><span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span> <span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span> <span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span></strong></p>
<p align="center"><em>7th Mode/Locrian:</em><br />
x<strong> </strong><strong><span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span> <span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span> </strong>x <strong><span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span> <span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span> <span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span></strong></p>
<p align="left">The Unison and the Locrian only share 2 notes.  That&#8217;s still 1 more note than is shared between the Lydian and Locrian which are complete opposites (as they are on the circle):</p>
<p align="center"><em>4th Mode/Lydian:</em><br />
x <strong><span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span> <span style="color: #ff0000;">-</span> <span style="color: #0000ff;">x</span> <span style="color: #ff0000;">- </span><span style="color: #ff0000;"><span style="color: #0000ff;">x</span> </span><span style="color: #ff0000;">x </span><span style="color: #ff0000;"><span style="color: #0000ff;">-</span> </span><span style="color: #ff0000;">x </span><span style="color: #ff0000;"><span style="color: #0000ff;">-</span> </span><span style="color: #ff0000;">x</span></strong><strong><span style="color: #0000ff;"><br />
</span></strong></p>
<p align="center"><em>7th Mode/Locrian:</em><br />
x<strong> </strong><strong><span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span> <span style="color: #ff0000;">x</span> <span style="color: #0000ff;">-</span> <span style="color: #ff0000;">x </span><span style="color: #ff0000;"><span style="color: #0000ff;">x</span> </span><span style="color: #ff0000;">- </span><span style="color: #ff0000;"><span style="color: #0000ff;">x</span> </span><span style="color: #ff0000;">- </span><span style="color: #ff0000;"><span style="color: #0000ff;">x</span> </span><span style="color: #ff0000;">-</span></strong></p>
<p align="left">The relationship between the mode of each degree is analogous to the relationship between the placement of each degree on the Circle of Fifths. Since the modes themselves are related in this way, the tones they generate are related as well.  This is how the Circle of Fifths can allow our robot to control mood changes by shifting modes.</p>
<p>_</p>
<p align="left"><strong>A Tone Spectrum</strong></p>
<p align="left">Often the words used to describe the tones of the opposing ends of the modal spectrum are &#8220;Light&#8221; and &#8220;Dark.&#8221;  You can also say &#8220;Consonant&#8221; and &#8220;Dissonant&#8221; which would be somewhat more accurate.  Or you can use the chromatic analogy of &#8220;Warm&#8221; and &#8220;Cool.&#8221; Regardless of semantics, the effects are the same.  There is a general feeling produced by modes in the direction of the Lydian, Unison, and Myxolydian that is significantly different from that of the Locrian, Phrygian, and Aeolian. Your job is to listen to each mode and learn those differences, then you can provide your Robot with an algorithm that selects and changes modes according to your tastes.</p>
<p align="left">Ideally you would listen to each mode in a variety of uses, but it would be a bit too much work for me to record several songs for each mode. If you have access to an instrument, try improvising in the different modes to get a better feel for them. Here are the modes themselves, played in C (try to play different modes back to back):</p>
<p align="center"><em><a title="Lydian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_001-lydian.MP3" target="_blank">4th Mode/Lydian:</a></em><a title="Lydian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_001-lydian.MP3" target="_blank"><br />
x &#8211; x &#8211; x &#8211; x x &#8211; x &#8211; x</a></p>
<blockquote><p>I always found it odd that this mode was considered &#8220;Bright&#8221; because it&#8217;s only 1 of 2 modes with the highly dissonant Devil&#8217;s Interval (1 + 5b).  Still, it shows up often in upbeat music.</p></blockquote>
<p align="center"><em><a title="Unison Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_002-unison.MP3" target="_blank">1st Mode/Unison:</a></em><a title="Unison Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_002-unison.MP3" target="_blank"><br />
x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x</a></p>
<blockquote><p>Your standard Major Scale.  This winds up in all kinds of music these days.  You can bet that anything poppy is in the Unison Mode.</p></blockquote>
<p align="center"><em><a title="Myxolydian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_003-myxolydian.MP3" target="_blank">5th Mode/Myxolydian:</a></em><a title="Myxolydian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_003-myxolydian.MP3" target="_blank"><br />
x &#8211; x &#8211; x x &#8211; x &#8211; x x -</a></p>
<blockquote><p>The Myxolydian is popular because it&#8217;s the same as the Unison, but with a distinctive flat 7 interval (1 &#8211; 7b). The flat seven is big in Blues, Jazz and much of Rock.</p></blockquote>
<p align="center"><em><a title="Dorian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_004-dorian.MP3" target="_blank">2nd Mode/Dorian:</a></em><a title="Dorian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_004-dorian.MP3" target="_blank"><br />
x &#8211; x x &#8211; x &#8211; x &#8211; x x -</a></p>
<blockquote><p>The Dorian seems to be the least popular of modes, though it contains an interesting mixture of the Major and Minor sounds. I&#8217;ve heard it played by some recent Rock bands (maybe Post-Rock).</p></blockquote>
<p align="center"><em><a title="Aeolian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_005-aeolian.MP3" target="_blank">6th Mode/Aeolian:</a></em><a title="Aeolian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_005-aeolian.MP3" target="_blank"><br />
x &#8211; x x &#8211; x &#8211; x x &#8211; x -</a></p>
<blockquote><p>The Aeolian is best known as the famous Minor Scale. You&#8217;ll find it in any song that means to take a somber tone.</p></blockquote>
<p align="center"><em><a title="Phrygian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_006-phrygian.MP3" target="_blank">3rd Mode/Phrygian:</a></em><a title="Phrygian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_006-phrygian.MP3" target="_blank"><br />
x x &#8211; x &#8211; x &#8211; x x &#8211; x -</a></p>
<blockquote><p>I&#8217;ve always liked the Phrygian. It&#8217;s rarely used, but it has an interesting sound.</p></blockquote>
<p align="center"><em><a title="Locrian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_007-locrian.MP3" target="_blank">7th Mode/Locrian:</a></em><a title="Locrian Mode" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_007-locrian.MP3" target="_blank"><br />
x x &#8211; x &#8211; x x &#8211; x &#8211; x -</a></p>
<blockquote><p>The Locrian shows up in a lot of what you would expect to be &#8220;darker&#8221; music: Death Metal, Hardcore, etc.</p></blockquote>
<p align="center">
<blockquote><p>Jazz musicians after Bebop explored all of these. Of particular note is <a title="Wiki: Miles Davis" href="http://en.wikipedia.org/wiki/Miles_Davis" target="_blank">Miles Davis&#8217;</a> experimentation with <a title="Wiki: Modal Jazz" href="http://en.wikipedia.org/wiki/Modal_jazz" target="_blank">Modal Jazz</a>.</p></blockquote>
<p>_</p>
<p>That sums up the 3rd session of Robot Music.  Next we&#8217;ll go over brand new scales, some exotic, and completely different from the Major Scale. Our Robot will have much to choose from.</p>
<p>-Christopher J. Rock</p>
<p>_</p>
<p>_</p>
<p><span style="color: #eec006;">*Waves that are exactly the same have an infinitely long beat, they are perfectly consonant and create perfect amplification. Waves that are extremely close in frequency have a beat so small it cannot be heard, but they also have a very long beat that <em>can</em> be heard. Waves with a small difference in frequency have an audible and short beat; a lot of dissonance. Waves with more distant frequencies can have varying beats or none at all.</span></p>
<p><span style="color: #eec006;">**If Waves A and B were slightly out of tune, they might generate a very long beat that would also qualify as consonant.</span></p>
<p><span style="color: #eec006;">***Another term to know is <em>Inverse</em>. As you move from the 1st degree left or right on the circle of fifths, you&#8217;ll find the numbers to the left to be twice the inverse of the numbers to the right (except for the 5b in the middle with a ratio of 7/5).  That is because the intervals to the left are the inverse of the intervals to the right.  Playing a 4th interval is the same as playing a 5th interval, but from the perspective of the opposite note (a different root).  Besides that, the intervals are equal.</span></p>
<p><span style="color: #eec006;">****Resulting in an inversed 5th interval.</span><br />
_</p>
<p><span style="color: #eec006;"><em><strong>Notes </strong></em></span></p>
<p><span style="color: #eec006;"><em>Relativity and Proportion in Perception</em></span></p>
<p><span style="color: #eec006;">Most of our judgment is based on relativity. It&#8217;s difficult to judge a person&#8217;s height, but you can always tell how tall they were <em>compared to you</em>. It&#8217;s bright outside because you&#8217;ve been in the dark all day. I can&#8217;t see you because the sun is in my eyes. How old is she? I don&#8217;t know, but she&#8217;s older than I am.</span></p>
<p><span style="color: #eec006;">Part of using relativity in our judgment is recognizing proportions. I&#8217;m just as big to my little brother as he is to our little sister. How fast was the red car going? I don&#8217;t know, about twice as fast as the blue car. A mouse is to a cat as a cat is to a dog. The Moon has 1/3 the gravity of the Earth.</span></p>
<p><span style="color: #eec006;">How do these apply to music? When a tenor sings a song and a baritone sings the same song, the difference in pitches is obvious, but it&#8217;s also obvious that the songs are identical. Your mind recognizes the relationships of the notes sung by the tenor as <em>proportionate</em> to the relationships of the notes sung by the baritone, even when the notes themselves are completely different. Perception of notes is then <em>contextual</em> (dependent on surrounding notes).</span></p>
<p><span style="color: #eec006;">Context is the reason we pay attention to scales. The scale is the general context of a note. The mode (defined by the starting point; the root) modifies the meaning of that context.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_007-locrian.MP3" length="26983" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_002-unison.MP3" length="26774" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_003-myxolydian.MP3" length="25938" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_004-dorian.MP3" length="26356" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_005-aeolian.MP3" length="25103" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_006-phrygian.MP3" length="28655" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0317_001-lydian.MP3" length="26356" type="audio/mpeg" />
		</item>
		<item>
		<title>Robot Music II: Modes</title>
		<link>http://blog.sokay.net/2008/03/01/robot-music-ii-modes/</link>
		<comments>http://blog.sokay.net/2008/03/01/robot-music-ii-modes/#comments</comments>
		<pubDate>Sun, 02 Mar 2008 07:43:24 +0000</pubDate>
		<dc:creator>Christopher J. Rock</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Robot Music]]></category>
		<category><![CDATA[Sokay Development]]></category>
		<category><![CDATA[aeolian]]></category>
		<category><![CDATA[dorian]]></category>
		<category><![CDATA[locrian]]></category>
		<category><![CDATA[lydian]]></category>
		<category><![CDATA[modes]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[musical theory]]></category>
		<category><![CDATA[myxolydian]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[phrygian]]></category>
		<category><![CDATA[procedural]]></category>
		<category><![CDATA[scales]]></category>
		<category><![CDATA[unison]]></category>

		<guid isPermaLink="false">http://blog.sokay.net/2008/03/01/robot-music-ii-modes/</guid>
		<description><![CDATA[Series: Robot Music I, Robot Music II: Modes, Robot Music III: The Circle of Fifths, Robot Music IV: Scales of the World It&#8217;s been a long while, but response to the last music post was enough to get me revved up again. Now it&#8217;s time to continue with the Robot Music series on procedurally written [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Close Up Die" href="http://blog.sokay.net/wp-content/uploads/2007/07/making-robot-music-2.jpg" target="_blank"><img src="http://blog.sokay.net/wp-content/uploads/2007/07/making-robot-music-2.thumbnail.jpg" alt="Close Up Die" align="right" /></a></p>
<p><em>Series: <a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_self">Robot Music I</a>, Robot Music II: Modes, <a title="Robot Music III" href="http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/" target="_self">Robot Music III: The Circle of Fifths</a></em><em>, </em><a title="Robot Music III" href="http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/" target="_self"><em></em></a><em><a title="Robot Music IV" href="http://blog.sokay.net/2008/04/08/robot-music-iv-scales-of-the-world/" target="_self">Robot Music IV: Scales of the World</a></em></p>
<p>It&#8217;s been a long while, but response to the last music post was enough to get me revved up again. Now it&#8217;s time to continue with the Robot Music series on procedurally written music.</p>
<p>I wanted this tutorial to be simple, but educational enough that if you wanted to study more, you would know where to look.  For that reason, there is a lot of music vocabulary in here.  I&#8217;ve done my best to explain each term as it comes up, but if any remain confusing, don&#8217;t hesitate to look them up <a title="Wikipedia.org" href="http://www.wikipedia.org/" target="_blank">elsewhere</a> or even skip them. You can probably forget all of the fancy words and still understand the important concepts being discussed.</p>
<p>In <a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_blank">the last session</a> we rolled a die to generate riffs in a Major Pentatonic Scale. Sticking to that one scale limits the sound of your music a lot, so now we&#8217;ll mix up our technique by exploring modes. We&#8217;ll be replacing the Major Pentatonic Scale with the full Major Scale. The pentatonic only has 5 notes, while the entire Major Scale has 7.  Those last two notes can be seen as bothersome* which is why they were left out last time.</p>
<p>Most people&#8217;s first musical revelation is the amazing power of switching between a Major scale and a Minor scale. It&#8217;s often generalized that when a song is in the Major scale it sounds happy and when it&#8217;s in a Minor scale it sounds sad. That is the effect we will be looking into to change the emotional impact of robot songs.</p>
<p><span id="more-99"></span></p>
<p>As mentioned in the last post, popular music is limited to 12 notes (C, C#, D, D#, E, F, F#, G, G#, A, B &#8212; then loop to the next octave; C&#8217;, etc). Each of these letters is an arbitrary name for an arbitrary frequency of air waves. The only thing that is <em>not</em> arbitrary about each note is its relationship to all of the other notes. The relationships between notes are really what is important; and that&#8217;s where scales come in.</p>
<p>A scale is a list of notes used for part or all of a composition.  However, to grasp the significance of a scale, you are better off ignoring the &#8220;notes&#8221; within it and focusing on its form; the <em>pattern</em> of the scale or the kind of note relationships it involves.</p>
<p>To discuss relationships, we&#8217;ll use the <em>&#8220;half-step&#8221;</em> as one basic unit. A half-step is the difference in pitch between two adjacent keys on a piano or a difference of 1 fret on a guitar. It is the distance between any one note and its neighbor (C and C# or E and F). The 12 notes of common music span 12 half-steps.</p>
<p>Let&#8217;s use half-steps to create a method for describing note <em>relationships</em> without specifying note <em>names </em>(because all we want is the scale&#8217;s <em>pattern</em>)<em>.</em> First we&#8217;ll look at the relationships between notes in the Major Scale:</p>
<p>-We&#8217;ll represent all of our possible notes with 12 dashes:</p>
<p align="center">C, C#, D, D#, E, F, F#, G, G#, A, A#, B</p>
<p align="center">- &#8211; - &#8211; - &#8211; - &#8211; - &#8211; - -</p>
<p>-Now we can describe the C Major Scale by representing each of its notes with an x:</p>
<p align="center"><strong>C</strong>, <span style="color: #c0c0c0;">C#,</span> <strong>D</strong>, <span style="color: #c0c0c0;">D#,</span> <strong>E</strong>, <strong>F</strong>, <span style="color: #c0c0c0;">F#,</span> <strong>G</strong>, <span style="color: #c0c0c0;">G#,</span> <strong>A</strong>, <span style="color: #c0c0c0;">A#,</span> <strong>B</strong></p>
<p align="center">x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x</p>
<p align="center"><em>Notice that the dashes between each x represent a note that is not included in the Major Scale.</em></p>
<p align="left">-With this pattern, we can figure out which notes exist in keys other than C, such as D Major, E Major, G# Major or any other:</p>
<p align="center"><em>Pattern:</em></p>
<p align="center">x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x</p>
<p align="center"><em>C Major: </em></p>
<p align="center"><strong>C</strong>, <span style="color: #c0c0c0;">C#,</span> <strong>D</strong>, <span style="color: #c0c0c0;">D#,</span> <strong>E</strong>, <strong>F</strong>, <span style="color: #c0c0c0;">F#,</span> <strong>G</strong>, <span style="color: #c0c0c0;">G#,</span> <strong>A</strong>, <span style="color: #c0c0c0;">A#,</span> <strong>B</strong></p>
<p align="center"><em>D Major: </em></p>
<p align="center"><strong>D,</strong> <span style="color: #c0c0c0;">D#,</span> <strong>E,</strong> <span style="color: #c0c0c0;">F,</span> <strong>F#,</strong> <strong>G,</strong> <span style="color: #c0c0c0;">G#,</span> <strong>A,</strong> <span style="color: #c0c0c0;">A#,</span> <strong>B, </strong><span style="color: #c0c0c0;">C, </span><strong>C#</strong></p>
<p align="center"><em>E Major: </em></p>
<p align="center"><strong>E,</strong> <span style="color: #c0c0c0;">F,</span> <strong>F#,</strong> <span style="color: #c0c0c0;">G,</span> <strong>G#,</strong> <strong>A,</strong> <span style="color: #c0c0c0;">A#,</span> <strong>B, </strong><span style="color: #c0c0c0;">C, </span><strong>C#, </strong><span style="color: #c0c0c0;">D, </span><strong>D#</strong></p>
<p align="center">~</p>
<p align="center"><em>G# Major: </em></p>
<p align="center"><strong>G#,</strong> <span style="color: #c0c0c0;">A,</span> <strong>A#,</strong> <span style="color: #c0c0c0;">B,</span><strong> C,</strong> <strong>C#, </strong><span style="color: #c0c0c0;">D,</span> <strong>D#, </strong><span style="color: #c0c0c0;">E, </span><strong>F, </strong><span style="color: #c0c0c0;">F#,</span> <strong>G</strong></p>
<p align="center"><em>Etc.</em></p>
<p align="left">As you can see, the names of the notes are irrelevant if you know the pattern. Memorize that pattern and visualize it transposed over the keys of a piano or the frets of guitar (the pattern can begin on any key or fret). Play only those keys or frets where the x&#8217;s go and you will be playing a Major Scale. Most pop music is completely limited to this one scale.  You&#8217;d be surprised at how easy it is to play along with many songs once you&#8217;ve learned this pattern.</p>
<p align="left">Each x in a scale is called a <em>degree</em>.  The Major Scale has 7 degrees (e.g. the 2nd Degree of the C Major Scale is the D note).</p>
<p align="left">The difference between the 1st degree and the 2nd degree in the Major Scale is 2 half-steps.  You can also describe the distance between them as 1 <em>scale step</em>.  The distance between each degree in a scale and the next highest degree is 1 scale step, but it can be any number of half-steps!  For example, C is the 1st degree of the C Major Scale and F is the 4th degree.  They are separated by 3 scale steps, but they are also separated by 5 half-steps (<strong>C</strong>-D-E<strong>F</strong>-G-A-B).</p>
<p align="left">Now that you know the pattern in the Major Scale, you must have realized there can be tons of others too.  You&#8217;re right!</p>
<p align="left">
<p align="left"><strong>The Minor Scale and Modes<br />
</strong></p>
<p align="left">The pattern you use is the scale you are in, and changing scales can completely change the emotional charge of your music. So now let&#8217;s look at the Minor Scale.</p>
<p align="left">The most common Minor Scale uses this pattern:</p>
<p align="center"><em>Pattern: </em></p>
<p align="center">x &#8211; x x &#8211; x &#8211; x &#8211; x x -</p>
<p align="center"><em>C Minor: </em></p>
<p align="center"><strong>C</strong>, <span style="color: #c0c0c0;">C#,</span> <strong>D</strong>, <strong>D#</strong>, <span style="color: #c0c0c0;">E,</span> <strong>F</strong>, <span style="color: #c0c0c0;">F#,</span> <strong>G</strong>, <span style="color: #c0c0c0;">G#,</span> <strong>A</strong>, <strong>A#,</strong> <span style="color: #c0c0c0;">B</span></p>
<p align="left">Look at the differences between the Major Scale and Minor Scale:</p>
<p align="center"><em>Major:</em> <span style="color: #c0c0c0;">x &#8211; x</span> <span style="color: #0000ff;"><strong>- x</strong></span> <span style="color: #c0c0c0;">x &#8211; x &#8211; x</span> <span style="color: #0000ff;"><strong>- x</strong></span></p>
<p align="center"><em>Minor:</em> <span style="color: #c0c0c0;">x &#8211; x</span> <span style="color: #ff0000;"><strong>x -</strong></span> <span style="color: #c0c0c0;">x &#8211; x &#8211; x</span> <span style="color: #ff0000;"><strong>x -</strong></span></p>
<p align="center"><em>Notice that the 3rd and 7th x&#8217;s of the Major Scale are lowered by 1 half-step (or flattened) in the Minor Scale.</em></p>
<p align="left">You have to wonder, what led some age old musical wizard to discover such a slight modification to the Major Scale that could completely shift its emotional meaning? Maybe we can figure that out. . . . (This might get tricky, so go slowly if you must.)</p>
<p align="left">-Let&#8217;s look at the Major Scale in 1 octave:</p>
<p align="center">x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x</p>
<p align="left">-There are obviously more than 12 keys on a piano and that is because there are multiple octaves. Octaves are created because the pattern of a scale loops every 12 half-steps. If we extend the Major Scale over 2 octaves, it looks like this:</p>
<p align="center">x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x|x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x</p>
<p align="left">-Now, let&#8217;s start from the 1st x and count our way to the 6th x in the 1st octave, then highlight it:</p>
<p align="center"><span style="color: #999999;"><span style="color: #c0c0c0;">x &#8211; x &#8211; x x &#8211; x -</span> </span><span style="color: #0000ff;"><strong>x</strong></span><span style="color: #999999;"> <span style="color: #c0c0c0;">- x|x &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; x</span></span></p>
<p align="left">-Do the same thing to the 6th x in the 2nd octave:</p>
<p align="center"><span style="color: #999999;"><span style="color: #c0c0c0;">x &#8211; x &#8211; x x &#8211; x -</span> </span><span style="color: #0000ff;"><strong>x</strong></span><span style="color: #999999;"> <span style="color: #c0c0c0;">- x|x &#8211; x &#8211; x x &#8211; x &#8211; <span style="color: #ff0000;"><strong>x</strong></span> &#8211; x</span></span></p>
<p align="left">-What if we took <em>all the notes</em> starting with that 6th <span style="color: #0000ff;"><strong>x</strong></span> and ending before the 6th <span style="color: #ff0000;"><strong>x</strong></span> of the next octave? Here they are all highlighted:</p>
<p align="center"><span style="color: #999999;"><span style="color: #c0c0c0;">x &#8211; x &#8211; x x &#8211; x -</span> </span><strong><span style="color: #ffff00;">x &#8211; x|x &#8211; x &#8211; x x &#8211; x -</span></strong><span style="color: #999999;"><strong><span style="color: #ffff00;"> </span></strong><span style="color: #c0c0c0;">x &#8211; x</span></span></p>
<p align="left">-Let&#8217;s clean it up by getting rid of all the other notes:</p>
<p align="center">x &#8211; x|x &#8211; x &#8211; x x &#8211; x -</p>
<p align="left">-Remove the octave separator and, look at that, it&#8217;s the Minor Scale:</p>
<p align="center">x &#8211; x x &#8211; x &#8211; x x &#8211; x -</p>
<p align="left">In other words, the Minor Scale is equal to the Major Scale from the <em>perspective</em> of the 6th x, or the <em>6th Degree</em>. That&#8217;s what a Mode is. A mode of a scale is its pattern when described from the &#8220;perspective&#8221; of one of the degrees in a scale (a degree = an x). In music lingo, no one says perspective though; you would call it the <em>root</em>.  The 6th Mode of the Major Scale is also called the Aeolian, but most of us just call it the Minor Scale.</p>
<p align="center">
<p align="left">Here is a list of all the modes of the Major Scale (the first and last degrees of the 1st mode have been highlighted to emphasize the differences between each subsequent mode):</p>
<p align="center"><em>1st Mode/Unison:</em><br />
<span style="color: #0000ff;"><strong> x</strong></span> &#8211; x &#8211; x x &#8211; x &#8211; x &#8211; <span style="color: #ff0000;"><strong>x</strong></span></p>
<p align="center"><em>2nd Mode/Dorian:</em><br />
x &#8211; x x &#8211; x &#8211; x &#8211; <span style="color: #ff0000;"><strong>x</strong></span> <span style="color: #0000ff;"><strong>x</strong></span> -</p>
<p align="center"><em>3rd Mode/Phrygian:</em><br />
x x &#8211; x &#8211; x &#8211; <span style="color: #ff0000;"><strong>x</strong></span> <span style="color: #0000ff;"><strong>x</strong></span> &#8211; x -</p>
<p align="center"><em>4th Mode/Lydian:</em><br />
x &#8211; x &#8211; x &#8211; <span style="color: #ff0000;"><strong>x</strong></span> <span style="color: #0000ff;"><strong>x</strong></span> &#8211; x &#8211; x</p>
<p align="center"><em>5th Mode/Myxolydian:</em><br />
x &#8211; x &#8211; <strong><span style="color: #ff0000;">x</span></strong> <span style="color: #0000ff;"><strong>x</strong></span> &#8211; x &#8211; x x -</p>
<p align="center"><em>6th Mode/Aeolian:</em><br />
x &#8211; <strong><span style="color: #ff0000;">x</span></strong> <span style="color: #0000ff;"><strong>x</strong></span> &#8211; x &#8211; x x &#8211; x -</p>
<p align="center"><em>7th Mode/Locrian:</em><br />
<strong><span style="color: #ff0000;"> x</span></strong> <span style="color: #0000ff;"><strong>x</strong></span> &#8211; x &#8211; x x &#8211; x &#8211; x -</p>
<p align="center"><em>Notice that the 1st mode is just the normal Major Scale. The 2nd mode is the same as the 1st one, but all the x&#8217;s are bumped to the left by 2 half-steps (1 scale step). The third mode is bumped by a total of 4 half-steps (2 scale steps) and the 4th mode is bumped by 5 half-steps (3 scale steps). They are all the same basic pattern as the Major Scale, but slid over to one side. The difference between each one is how far they are slid.</em></p>
<p align="left">Each mode has a distinctly different feeling; some more radical than others.</p>
<p align="center">
<p><strong>Defining Your Mode</strong></p>
<p>So the question remains, when you&#8217;re writing a song using the Major Scale, how do you define your mode?  This is actually a complicated question, but for now I&#8217;ll keep it simple.  Generally, the first note played is the root.  All the notes after that determine your scale and mode depending on how they forge a pattern.</p>
<p>Let&#8217;s say you make a riff out of this sequence of notes: C, E, G.  C is the root note because you played it first, then the scale and mode are determined by E and G&#8217;s relationship with C.  Let&#8217;s look at that relationship compared to the pattern of the Major Scale (1st Mode):</p>
<p><span style="color: #0000ff;"><strong>C</strong></span> <span style="color: #c0c0c0;">C# <strong>D</strong> D#</span> <span style="color: #0000ff;"><strong>E</strong></span> <span style="color: #c0c0c0;"><strong>F</strong> F#</span> <span style="color: #0000ff;"><strong>G</strong></span> <span style="color: #c0c0c0;">G# <strong>A</strong> A# <strong>B C&#8217;</strong> </span></p>
<p><strong><span style="color: #0000ff;">x</span></strong> &#8211;   x   &#8211;   <strong><span style="color: #0000ff;">x</span></strong> x  &#8211;   <strong><span style="color: #0000ff;">x</span></strong> &#8211;    x   &#8211;   x x&#8217;</p>
<p>Those notes are a perfect match for the Major Scale in the 1st Mode!  What&#8217;s more, is that those notes are very <em>characteristic</em> of the Major Scale&#8217;s 1st Mode; they are a strong part its distinctive feeling.</p>
<p>What if you played a slightly different sequence of notes?</p>
<p><span style="color: #0000ff;"><strong>C</strong></span><span style="color: #c0c0c0;"> C# <strong>D</strong> <strong><span style="color: #0000ff;">D#</span></strong></span> <span style="color: #c0c0c0;">E </span><span style="color: #c0c0c0;"><strong>F</strong> F#</span> <span style="color: #0000ff;"><strong>G</strong></span> <span style="color: #c0c0c0;">G# <strong>A</strong> <strong>A#</strong> B <strong>C&#8217;</strong> </span></p>
<p><strong><span style="color: #0000ff;">x</span></strong> &#8211;   x   <span style="color: #0000ff;"><strong>x</strong></span> <span style="color: #000000;">-</span> x  &#8211;   <strong><span style="color: #0000ff;">x</span></strong> &#8211;    x   x  &#8211; x&#8217;</p>
<p>Now your notes describe the Major Scale&#8217;s 6th Mode, also known as the Minor Scale.  Play the first sequence and you get a happy tune, play the second and it&#8217;s sad.</p>
<p align="center">
<p><strong>Overview</strong></p>
<p>First, scales showed us that a note&#8217;s impact is dependent on its context (the pattern of other notes played near it). Modes showed us that the impact of a pattern depends on the <em>root</em>, the &#8220;starting point.&#8221;  When you start with the 1st degree in the Major scale, you get the &#8220;happy&#8221; sound.  When you start with the 6th degree in the Major scale, you get the &#8220;sad&#8221; sound. In many cases the root is the first note played in a riff.</p>
<p align="center">
<p><strong>Experiment</strong></p>
<p>Let&#8217;s try using the same randomly generated song (with the help of a di) of <a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_blank">Robot Music I</a>, played in different modes.</p>
<p>This is <a title="Randomly Generated Song in C Major Pentatonic" href="http://blog.sokay.net/wp-content/uploads/2007/07/voice0725_007-loop-and-finish.MP3" target="_blank">the original song (click to listen)</a>:</p>
<p align="left">C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G</p>
<p align="left">C, E, D, G &#8211;  C, E, D, G &#8211; <span style="color: #ffffff;">_</span>C, E, D, G &#8211; C, E, D, G</p>
<p align="left">&#8211;</p>
<p align="left">C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G</p>
<p align="left">C, E, D, G &#8211;  C, E, D, G &#8211;  <span style="color: #ffffff;">_</span>C, E, D, G &#8211; C, E, D, G</p>
<p align="left">&#8211;</p>
<p align="left">C, C, C, C &#8211; G, G, G, G &#8211;  E, E, E, E<span style="color: #ffffff;">_</span> &#8211; C, C, C, C</p>
<p align="left">C, C, C, C &#8211; G, G, G, G &#8211;  E, E, E, E<span style="color: #ffffff;">_</span> &#8211; C, C, C, C</p>
<p align="left">
<p align="left">Now we want to play the same song, but we will replace the Major Pentatonic Scale of <a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_blank">Robot Music I</a> with one of our modes of the Major Scale.  Here it is, the same song, in <a title="Randomly Generated Song in C Minor" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0301_004-robot1-minor.MP3" target="_blank">the 6th Mode or the Minor Scale</a>:</p>
<p align="left">C, C, <span style="color: #ffffff;">_</span>G, G &#8211; C, C, <span style="color: #ffffff;">_</span>G, G &#8211; C, C, <span style="color: #ffffff;">__</span>G, G &#8211; C, C, <span style="color: #ffffff;">_</span>G, G</p>
<p align="left">C, D#, D, G &#8211; C, D#, D, G &#8211; C, D#, D, G &#8211; C, D#, D, G</p>
<p align="left">&#8211;</p>
<p align="left">C, C, <span style="color: #ffffff;">_</span>G, G &#8211; C, C, <span style="color: #ffffff;">_</span>G, G &#8211; C, C, <span style="color: #ffffff;">__</span>G, G &#8211; C, C, <span style="color: #ffffff;">_</span>G, G</p>
<p align="left">C, D#, D, G &#8211; C, D#, D, G &#8211; C, D#, D, G &#8211; C, D#, D, G</p>
<p align="left">&#8211;</p>
<p align="left">C, C, C, C &#8211; G, G, G, G &#8211; D#, D#, D#, D# &#8211; C, C, C, C</p>
<p align="left">C, C, C, C &#8211; G, G, G, G &#8211; D#, D#, D#, D# &#8211; C, C, C, C</p>
<p align="left">It&#8217;s darker than the original, somber.</p>
<p align="left">
<p align="left">How about something stranger?  This is the same thing in <a title="Randomly Generated Song in C Major Locrian" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0301_009-robot1-locrian.MP3" target="_blank">the 7th Mode</a>:</p>
<p align="left">C, C, <span style="color: #ffffff;">_</span>A#, A# &#8211; C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>A#, A# &#8211; C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>A#, A# &#8211; C, C, <span style="color: #ffffff;">_</span>A#, A#</p>
<p align="left">C, D#, C#, A# &#8211; C, <span style="color: #ffffff;">_</span>D#, C#, A# &#8211; C, D#, C#, A# &#8211; C, D#, C#, A#</p>
<p align="left">&#8211;</p>
<p align="left">C, C, <span style="color: #ffffff;">_</span>A#, A# &#8211; C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>A#, A# &#8211; C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>A#, A# &#8211; C, C, <span style="color: #ffffff;">_</span>A#, A#</p>
<p align="left">C, D#, C#, A# &#8211; C, <span style="color: #ffffff;">_</span>D#, C#, A# &#8211; C, D#, C#, A# &#8211; C, D#, C#, A#</p>
<p align="left">&#8211;</p>
<p align="left">C, C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>C <span style="color: #ffffff;">_</span>- A#, A#, A#, A# &#8211; D#, D#, D#, D# &#8211; C, C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>C</p>
<p align="left">C, C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>C <span style="color: #ffffff;">_</span>- A#, A#, A#, A# &#8211; D#, D#, D#, D# &#8211; C, C, <span style="color: #ffffff;">_</span>C, <span style="color: #ffffff;">_</span>C</p>
<p align="left">This one is very dark, somewhat distressing.  Such is the Locrian Mode!  <em>A mysterious she-devil!</em></p>
<p align="left">
<p align="left">
<p>Now you know how modes can change the emotional impact of your music, but we haven&#8217;t yet discussed how you <em>control</em> that impact.  How can you predict the feeling that will be created by a given mode? What is the meaning of a given note? That will be the topic of the next episode of Robot Music: The Circle of Fifths.  Finally, we will begin quantizing music!   (And I&#8217;ll get it up sooner this time)</p>
<p>-Christopher J. Rock</p>
<p><span style="color: #ffcc00;">*This is the pattern of the <em>Major Pentatonic</em> Scale:</span> <span style="color: #999999;">x-x-x</span><span style="color: #ff0000;"><strong>-</strong></span><span style="color: #999999;">-x-x-</span><span style="color: #ff0000;"><strong>-</strong></span><span style="color: #ffcc00;">. This is the pattern of the <em>entire Major</em></span> Scale: <span style="color: #ffcc00;">x-x-x</span><span style="color: #ffcc00;"><strong>x</strong></span><span style="color: #ffcc00;">-x-x-</span><span style="color: #ffcc00;"><strong>x</strong></span><span style="color: #ffcc00;">. As you can see, the 4th and 7th degrees used in the entire major scale are not included in the major pentatonic scale. Those two notes can be very beautiful, but when played together or in sequence they form what is called <em>&#8220;The Devil&#8217;s Interval.&#8221;</em> This interval is equal to 6 half-steps (C and F#) and earned its name in classical music because it was found to be so grotesquely dissonant that it was forbidden. Use of this interval was later popularized in Jazz, especially Bebop and later experimental forms. In more recent musical trends it can be found in much of hardcore and other genres that aim to inspire a sense of darkness, anger or anxiety. You can say that in modern times, we have lowered the status of the Devil&#8217;s interval from &#8220;sinful&#8221; to &#8220;ill-advised.&#8221; The point of all this is to say that in <a title="Robot Music I" href="http://blog.sokay.net/2007/07/25/robot-music/" target="_blank">Robot Music I</a>, I chose to use the Pentatonic Scale to raise the chances that you would be happy with the music generated by that system. However, it&#8217;s about time you face the real world and realize that a little dissonance never hurt anyone. If you prefer the major pentatonic scale, you can easily apply all of the concepts herein to that instead of the entire major scale. However, the emotional variation between modes of the pentatonic scale will not be nearly as radical as those of the entire major scale.  That being said, Blues and Rock are generally played in the pentatonic so if you prefer that sound, you may find it beneficial. The 7th Mode (Locrian) of the Major Scale includes a Devil&#8217;s Interval between the 1st and 5th degrees.  In fact, you can hear it in the recording of our generated song in <a title="Randomly Generated Song in C Major Locrian" href="http://blog.sokay.net/wp-content/uploads/2008/03/voice0301_009-robot1-locrian.MP3" target="_blank">the 7th Mode (as linked above)</a>.</span></p>
<p><span style="color: #ffcc00;"><strong>Other Song Information</strong></span></p>
<p align="left"><span style="color: #ffcc00;">In case you&#8217;re curious, here is the original song written in the form of half-steps from the root:</span></p>
<p align="left"><span style="color: #ffcc00;">0, 0, 7, 7 &#8211; 0, 0, 7, 7 &#8211; 0, 0, 7, 7 &#8211; 0, 0, 7, 7</span></p>
<p align="left"><span style="color: #ffcc00;">0, 4, 2, 7 &#8211; 0, 4, 2, 7 &#8211; 0, 4, 2, 7 &#8211; 0, 4, 2, 7</span></p>
<p align="left"><span style="color: #ffcc00;">&#8211;</span></p>
<p align="left"><span style="color: #ffcc00;">0, 0, 7, 7 &#8211; 0, 0, 7, 7 &#8211; 0, 0, 7, 7 &#8211; 0, 0, 7, 7</span></p>
<p align="left"><span style="color: #ffcc00;">0, 4, 2, 7 &#8211; 0, 4, 2, 7 &#8211; 0, 4, 2, 7 &#8211; 0, 4, 2, 7</span></p>
<p align="left"><span style="color: #ffcc00;">&#8211;</span></p>
<p align="left"><span style="color: #ffcc00;">0, 0, 0, 0 &#8211; 7, 7, 7, 7 &#8211; 4, 4, 4, 4 &#8211; 0, 0, 0, 0</span></p>
<p align="left"><span style="color: #ffcc00;">0, 0, 0, 0 &#8211; 7, 7, 7, 7 &#8211; 4, 4, 4, 4 &#8211; 0, 0, 0, 0</span></p>
<p align="left"><span style="color: #ffcc00;">You can use these numbers as fret distances on a guitar or key distances on a piano if you include the black keys.</span></p>
<p align="left"><span style="color: #ffcc00;">And here is the original song written in the form of degree numbers:</span></p>
<p align="left"><span style="color: #ffcc00;">1, 1, 5, 5 &#8211; 1, 1, 5, 5  &#8211; 1, 1, 5, 5  &#8211; 1, 1, 5, 5</span></p>
<p align="left"><span style="color: #ffcc00;">1, 3, 2, 5 &#8211; 1, 3, 2, 5 &#8211; 1, 3, 2, 5 &#8211; 1, 3, 2, 5</span></p>
<p align="left"><span style="color: #ffcc00;">&#8211;</span></p>
<p align="left"><span style="color: #ffcc00;">1, 1, 5, 5 &#8211; 1, 1, 5, 5  &#8211; 1, 1, 5, 5  &#8211; 1, 1, 5, 5</span></p>
<p align="left"><span style="color: #ffcc00;">1, 3, 2, 5 &#8211; 1, 3, 2, 5 &#8211; 1, 3, 2, 5 &#8211; 1, 3, 2, 5</span></p>
<p align="left"><span style="color: #ffcc00;">&#8211;</span></p>
<p align="left"><span style="color: #ffcc00;">1, 1, 1, 1 &#8211; 5, 5, 5, 5 &#8211; 3, 3, 3, 3 &#8211; 1, 1, 1, 1</span></p>
<p align="left"><span style="color: #ffcc00;">1, 1, 1, 1 &#8211; 5, 5, 5, 5 &#8211; 3, 3, 3, 3 &#8211; 1, 1, 1, 1</span></p>
<p align="left"><span style="color: #ffcc00;">You can use these to number the white keys on a piano, starting from the C key. This sequence of numbers is the essence of the song. Knowing these numbers, you can play in any key or mode with ease.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sokay.net/2008/03/01/robot-music-ii-modes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://blog.sokay.net/wp-content/uploads/2007/07/voice0725_007-loop-and-finish.MP3" length="463872" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0301_004-robot1-minor.MP3" length="278016" type="audio/mpeg" />
<enclosure url="http://blog.sokay.net/wp-content/uploads/2008/03/voice0301_009-robot1-locrian.MP3" length="266752" type="audio/mpeg" />
		</item>
		<item>
		<title>Robot Music</title>
		<link>http://blog.sokay.net/2007/07/25/robot-music/</link>
		<comments>http://blog.sokay.net/2007/07/25/robot-music/#comments</comments>
		<pubDate>Thu, 26 Jul 2007 06:45:12 +0000</pubDate>
		<dc:creator>Christopher J. Rock</dc:creator>
				<category><![CDATA[Everything]]></category>
		<category><![CDATA[Robot Music]]></category>
		<category><![CDATA[Sokay Development]]></category>
		<category><![CDATA[di]]></category>
		<category><![CDATA[dice]]></category>
		<category><![CDATA[guitar]]></category>
		<category><![CDATA[major scale]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[musical theory]]></category>
		<category><![CDATA[pentatonic]]></category>
		<category><![CDATA[piano]]></category>
		<category><![CDATA[procedural]]></category>
		<category><![CDATA[randomly generated]]></category>
		<category><![CDATA[scales]]></category>

		<guid isPermaLink="false">http://blog.sokay.net/?p=66</guid>
		<description><![CDATA[Series: Robot Music I, Robot Music II: Modes, Robot Music III: The Circle of Fifths, Robot Music IV: Scales of the World (This post features the hip guitar stylings of none other than ME! I&#8217;ll play some real life, randomly generated, Robot Music! The link is at the end.) I&#8217;ve wanted to see more procedural [...]]]></description>
			<content:encoded><![CDATA[<p><em>Series: Robot Music I, <a title="Robot Music II" href="http://blog.sokay.net/2008/03/01/robot-music-ii-modes/" target="_self">Robot Music II: Modes</a></em><em>, </em><em><a title="Robot Music III" href="http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/" target="_self">Robot Music III: The Circle of Fifths</a></em><em>, </em><a title="Robot Music III" href="http://blog.sokay.net/2008/03/18/robot-music-iii-the-circle-of-fifths/" target="_self"><em></em></a><em><a title="Robot Music IV" href="http://blog.sokay.net/2008/04/08/robot-music-iv-scales-of-the-world/" target="_self">Robot Music IV: Scales of the World</a></em></p>
<p align="left">(This post features the hip guitar stylings of none other than <em>ME!</em> I&#8217;ll play some real life, randomly generated, <strong>Robot Music!</strong> The link is at the end.)</p>
<p align="left"><a title="Close Up Die" href="http://blog.sokay.net/wp-content/uploads/2007/07/making-robot-music-2.jpg" target="_blank"><img src="http://blog.sokay.net/wp-content/uploads/2007/07/making-robot-music-2.thumbnail.jpg" alt="Close Up Die" align="right" /></a>I&#8217;ve wanted to see more procedural music in games for a long time, but the most we see are pretty sorry attempts.  I&#8217;m not just talking about &#8220;shifting volume on pre-recorded riffs&#8221; procedural, I mean &#8220;the game is writing its own live soundtrack&#8221; procedural.</p>
<p align="left">&#8220;But Chris, that doesn&#8217;t even happen on consoles!  We can&#8217;t do it in flash, no way!&#8221; Sounds difficult or even impossible, but it isn&#8217;t.  The only problem is it takes an understanding of tricky programming concepts and tricky musical concepts. Without programmers that also study music theory, we just don&#8217;t see procedurally written music.</p>
<p align="left">Well, I&#8217;d like to help change that.  I know a thing or two about music and a thing or two about programming so in this article I&#8217;m going to do my best to tip off any programmers interested in putting together a simple music generator. Today&#8217;s generator won&#8217;t be truly procedural, but it&#8217;ll start things off in that direction.</p>
<p align="left">And if you play a little music, but don&#8217;t know how to write a song, maybe this article can help you out too.</p>
<p align="left"><span id="more-66"></span></p>
<p align="left">For the sake of this exercise, let&#8217;s limit our music to looping riffs.  Let&#8217;s also limit ourselves to a 4/4 time (4 quarter notes per measure, 1, 2, 3, 4 &#8211; 1, 2, 3, 4 &#8211; 1, 2, 3, 4).  We&#8217;ll be using random note selection, so there won&#8217;t be any regard for tone, but don&#8217;t worry, it&#8217;ll all work out.  There will still <em>be</em> a tone, we just won&#8217;t be manipulating it in this experiment. Later we can get into controlling tone, but not all in one post.</p>
<p align="left"><a title="Guitar Frets" href="http://blog.sokay.net/wp-content/uploads/2007/07/guitar-frets.jpg" target="_blank"><img src="http://blog.sokay.net/wp-content/uploads/2007/07/guitar-frets.thumbnail.jpg" alt="Guitar Frets" /></a></p>
<p align="left">Any common instrument uses a grand total of 12 notes: C, C#, D, D#, E, F, F#, G, G#, A, A#, B.  You can play those notes randomly and no one can tell you you&#8217;re not playing music, but most people won&#8217;t want to listen to it.  If you want to make something a little prettier, I suggest you limit yourself to a Pentatonic scale (5 note scale).  C Major Pentatonic looks like this: C, D, E, G, A.  In my opinion, any of those notes can be played in sequence or together to produce what anyone can call a pleasing sound.  We can limit ourselves further by only playing in a single octave so that our root note, C, is the lowest note we play.</p>
<p align="left"><a title="Piano Keys" href="http://blog.sokay.net/wp-content/uploads/2007/07/piano-keys.jpg" target="_blank"><img src="http://blog.sokay.net/wp-content/uploads/2007/07/piano-keys.thumbnail.jpg" alt="Piano Keys" align="right" /></a></p>
<p align="left">
<p align="left">Now let&#8217;s generate a riff.</p>
<p align="left">In 4/4 we need to generate a minimum of 4 notes for our riff. We&#8217;ll make our first note in the riff equal to the key we&#8217;re playing in (in this case, C). That leaves 3 more notes to generate. So we take 3 random numbers from 1 to 5 where each number equals a note; 1 = C, 2 = D, 3 = E, 4=G, and 5 = A.</p>
<p align="left">I just rolled a die and wrote down the first set of numbers that fulfilled our requirements.  I got 1, 5, 5 as our sequence. We add 1 to beginning to get 1, 1, 5, 5.  Those numbers correspond with the notes C, C, G, G.</p>
<p align="left">I&#8217;ve gone ahead and generated a second riff so we can switch back and forth between the two for some variety, to sound a little more &#8220;song-like.&#8221;  The second one came out to 1, 3, 2, 5 or C, E, D, G.  Now we try playing them.  We can play the first riff 4 times, then play the second one 4 times and start over (4 measures each).</p>
<p align="left">I&#8217;m playing along on my guitar;</p>
<p align="left">C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G</p>
<p align="left">C, E, D, G &#8211; C, E, D, G &#8211; C, E, D, G &#8211; C, E, D, G</p>
<p align="left">This is an interesting pair of riffs because the first one has a really simple rock feel, but the second one bounces around kinda funny.  It&#8217;s a unique little tune, especially for one written by a die (or was it? Must discuss later . . .).</p>
<p align="left">Let&#8217;s go one more step to make it a full song. I&#8217;ll generate another set of notes: 1, 5, 3, 1 or C, G, E, C</p>
<p align="left">We&#8217;re going to play this last one slower to break up the other two.  We play each note 4 times before moving to the next one:</p>
<p align="left">C, C, C, C &#8211; G, G, G, G &#8211; E, E, E, E &#8211; C, C, C, C</p>
<p align="left">Now we have 3 pieces to our song that we can arrange however we want.  Let&#8217;s stick to simplicity.  We play the first riff 4 times, the second riff 4 times, do the first and second 4 times again, then play the third riff 2 times and start over (Our song can loop.  Why not?).</p>
<p align="left">This is the final product:</p>
<p align="left">C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G</p>
<p align="left">C, E, D, G &#8211; C, E, D, G &#8211; C, E, D, G &#8211; C, E, D, G</p>
<p align="left">&#8211;</p>
<p align="left">C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G &#8211; C, C, G, G</p>
<p align="left">C, E, D, G &#8211; C, E, D, G &#8211; C, E, D, G &#8211; C, E, D, G</p>
<p align="left">&#8211;</p>
<p align="left">C, C, C, C &#8211; G, G, G, G &#8211; E, E, E, E &#8211; C, C, C, C</p>
<p align="left">C, C, C, C &#8211; G, G, G, G &#8211; E, E, E, E &#8211; C, C, C, C</p>
<p align="left">
<p align="left">And start over.  But those letters don&#8217;t mean much, so you should probably take a listen: <a title="Robot Music - Song 1" href="http://blog.sokay.net/wp-content/uploads/2007/07/voice0725_007-loop-and-finish.MP3">Robot Music &#8211; Song 1</a></p>
<p align="left">Pretty simple right?</p>
<p align="left">1. Pentatonic Scale (C, D, E, G, A) in 4/4.</p>
<p align="left">2.  The root note is the first note of the riff.</p>
<p align="left">3. The last 3 notes are randomly generated, where numbers correspond with notes (1 = C, 2 = D, 3 = E, 4=G, and 5 = A)</p>
<p align="left">4. Arrange multiple riffs for some variety.</p>
<p align="left">5. End on the same note that you started with (C).</p>
<p align="left">Of course, you can make your own modifications to this logic.  For example, I find that it&#8217;s usually a bad idea to make the end of a riff blur too much with the beginning of the next riff.  This is a small problem when we play the slow part of our song and all the C notes just mash together into one long sequence.  You can fix your algorithm so that the last note will always be different from the first one, or so that no note will ever be played right after itself.</p>
<p align="left">If you&#8217;re using this method to help you write your own music, you can modify the notes yourself.  I think the slow part of our song sounds a lot better as C, G, E, D instead of C, G, E, C, but you can switch any of them out however you want.  And don&#8217;t be afraid to ignore the rules we set up today.</p>
<p align="left">You can also add in chords, like exchanging each single note for a power chord (C+G, D+A, E+A#, etc).  Many other chords can be used, but they may not be so easy to just slap in (and still sound nice all the time).</p>
<p align="left">The point is, you&#8217;ll have to experiment.  Try a lot of stuff.  There are no real rules to music and if anyone tells you you&#8217;re doing it wrong, slap them in the face and tell them they don&#8217;t know a damn thing about it.  Music is whatever you say it is and if they don&#8217;t like it, then tough!</p>
<p align="left">Next time, we&#8217;ll modify the logic to recognize different modes of the pentatonic scale, so that we have better control over our song&#8217;s tone, but this will do for now.</p>
<p align="left">Hope you enjoyed the subject.</p>
<p align="left">-Christopher J. Rock</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sokay.net/2007/07/25/robot-music/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
<enclosure url="http://blog.sokay.net/wp-content/uploads/2007/07/voice0725_007-loop-and-finish.MP3" length="463872" type="audio/mpeg" />
		</item>
	</channel>
</rss>
