Online music education courseware for non-musicians who want to learn how to write their own rock songs.
About Me
Name: Jim Plamondon
Location: Austin, Texas, United States
This blog documents the development of JIMS iGetIt! Music System (JIMS). JIMS' goal is to help you Understand Music in 24 Hours™, if you are (a) a non-musician (b) who wants to learn how to write your own rock songs. Requiring no instrument other than your own computer, and without using traditional notation, JIMS is being designed to deliver a deep understanding of tonal structure...in just 24 hours.
Here's my first draft of Lesson 3 (source code here):
Like the first two lessons, it uses a gross-looking and non-intuitive button-bar (along the bottom) to move from state to state. I need to replace that with a simpler/better "Next" button that only appears when one can proceed, and along with "Quit" and "Previous" buttons. The button bar is better for my development purposes, though, because it allows me to jump around non-sequentially.
Musically, this lesson shows JIMS starting to diverge from traditional representations of musical information. There is no international standard way of indicating the octave to which a note belongs. Some musicians indicate the octave of the piano keyboard; some musicians use MIDI numbers; some musicians use apostrophes -- it varies across the globe. So one more variation can't hurt, and might help.
In JIMS, octaves are numbered relative to the octave of the "origin note." In Lesson 3, Fred takes the note Bob sings as his origin, and numbers all octaves from it. Octaves are numbered along a number line, with higher octaves being positive and lower octaves being negative, as described in Lesson 3.
This system is entirely relative. The note Xx0 is in the same octave as the origin note, irrespective of the frequency associated with the origin note. As my father used to say, "Everything is relative (but relatives aren't everything)."
Develping Lesson 3 took much longer than it should have, in part because I spent a week (or more) rewriting my QWERTY/Wicki keyboard code to Flex 4...which I then decided not to use in this lesson after all. I'll use it soon enough, though.
I hit an annoying bug in Flex 4 Beta 2 today: using stateGroups to set the min/value/max of a slider control SOMETIMES sets those values to NaN instead of the specified values. It can be worked around by not using state groups...which of course makes state groups considerably less useful.
Here's a Flex app that reproduces the bug 100% of the time (source code here):
I've edited the code and walked Flex's source code in the debugger, trying to track down the cause of the failure, and also tried to find a mention of the bug in Adobe's bug database...but it's already eaten up my whole day, and I've got lessons to finish, so I'll just stop using stateGroups. That's life in beta-land.
How does one turn on word wrap in the title of a Flex Panel?
I'm using Panels to present questions, and the question statements can occupy more than one line. However, the Panel clips them to just one line. There must be a way to make the Panel use as many lines as necessary to display the title's text in full, preferably from MXML.
How?
I suspect that the answer involves using "Cascading Style Sheets," which is on my steadily-growing "must-learn" list. That list seems to be growing from the bottom faster than I can scratch newly-learned things off the top, which is a bit worrisome. The problem isn't that cascading style sheets are rocket science; I'm sure that they are not. It's just one more thing on the list.
Here's my first cut at Lesson 2 in JiMS iGetIt! Music System (source code here):
No radical departures from mainstream theory or pedagogy, so far. I'm not super-happy with the state-based architecture that I'm using, and there are some bugs (unimplemented events, actually) in the Flex 4 beta that I had to work around, but...so far, so good.
Interval width changes across the syntonic tuning continuum
If we stack nine tempered major fifths (traditionally called "perfect fifths") above Re, and nine below it, we get the following generated collection: -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 De-Se-Ra-Le-Me-Te-Fa-Do-So-Re-La-Mi-Ti-Fi-Di-Si-Ri-Li-My
(You might want to open this chart into its own window, so that you can look at it, without scrolling, while reading the text below.)
This chart follows the following JIMS conventions:
- Interval names are traditional, except for
+ 4ths and 5ths: wider is "major," narrower is "minor"
+ (that way, 4ths and 5ths follow the same naming-pattern as all of the other non-octave intervals)
- All intervals follow the standard JIMS color-code:
+ major intervals in blue
+ augmented intervals in cyan (an "extreme blue")
+ minor intervals in red
+ diminished intervals in magenta (an "extreme red")
- All chromatic variations of a given diatonic interval share the same note-line symbol. For example,
+ All the unisons (Ra, Re, Ri) are marked with x's.
+ All of the seconds (Me, Mi, My) are marked with squares.
+ All of the thirds (Fa, Fi) are marked with vertical lines.
+ etc.
The legend, at the right of the chart, displays the generated collection of notes, in the same order (bottom to top) as they appear in the list at the top of this blog post. Each note's name is followed, after a colon (':'), by its interval-from-Re. Observe that the follow a pattern: augmented intervals at the top, then major intervals, then unison (Re), then minor intervals, then diminished intervals at the bottom of the list.
The vertical scale, on the left, indicates the width of a given note from Re.
The horizontal scale, on the bottom, indicates the width of the tempered major fifth (M5), that is, of the generator of the generated collection. The scale includes the valid tuning range of the syntonic temperament, which can be thought of an an extended meantone tuning system.
The widths of the intervals between Re and every other (non-octave) note is controlled by the width of the generator, M5. As the width of the M5 increases, from left to right across the chart, the widths of all of the non-octave intervals change:
- The intervals below Re in the legend, representing minor and diminished intervals, slope downwards as the M5 increases, indicating that they narrow.
- The intervals above Re in the legend, representing major and augmented intervals, slope upwards as M5 increases, indicating that they widen.
- The farther a note is from Re in the legend, the steeper its slope.
Consider, for example, the widths of the unisons. As the generator (M5) increases in width:
- Re (unison) is unchanged at 0, because it is the basis from which all other intervals are measured. Its note-line is shown at the very bottom of the chart area, as a series of black x's.
- Ra (diminished unison, d1), shown with magenta x's, decreases in width. It's note-line drops from 0 cents below Re (i.e., 1200 cents above Re), on the left edge of the chart, to 240 cents below Re (i.e., 960 cents above Re) at the right edge.
- Ri (augmented unison, A1), shown width cyan x's, increases in width, from 0 cents above Re on the left to 240 cents above Re on the right.
All of the unisons start, on the left, at 0, and separate as the width of the generator increases.
Likewise, consider the widths of the seconds-from-Re:
- Me (minor second, m2) drops rapidly from 171 cents to 0.
- Mi (major second, M2) rises slowly from 171 cents to 240.
- My (augmented second, A2) rises sharply from 171 cents to 480.
Just as with the unisons, all of the seconds start together (at 171 cents) and separate as the width of the generator increases. Generally, all of the chromatic variations of a given diatonic degree start at the same point on the left-hand edge of the chart, and diverge as the M5's width increases rightwards across the chart. (Note that 1200 and 0 are the same octave-reduced interval, so that Ra, which intersects the left edge at 1200, intersects it at the same interval as Re and Ri, which intersect it at 0.)
7-edo
The seven left-edge-intersection-points divide the octave into 7 equally-wide intervals, forming a 7-note "equal division of the octave," abbreviated "7-edo."
(The phrase "N-tone equal temperament" and its abbreviation "N-TET," used in Wikipedia and elsewhere, is avoided in JIMS, because it confuses the important distinction between tunings and temperaments...an explanation of which is beyond the scope of this blog post.)
5-edo
Likewise, the right-hand edge of the chart, at M5=720, shows that a completely different combination of notes intersect to divide the octave into five equally-wide intervals: 5-edo. (Again, note that 1200 and 0 are the same octave-reduced interval, so Di, intersecting the right edge at 1200, and Me, intersecting the right edge at 0, are intersecting it at the same interval.)
12-edo
Near the middle of the chart, at M5=700, you can see that seven pairs of note-lines cross. From top to bottom, the crossing pairs are:
1100 - Ra and Di (d1 and M7)
900 - De and Ti (d7 and M6)
800 - Te and Li (m6 and A5)
600 - Le and Si (m5 and M4, traditionally named d5 and A4)
400 - Se and Fi (d4 and M3)
300 - Fa and Mi (m3 and A2)
100 - Me and Ri (m2 and A1)
The notes in the crossing pair are always 12 notes apart in the 19-note stack of M5's (check for yourself, using the chart's legend).
The crossing note-pairs are said to be "enharmonic" (i.e., have the same pitch) in 12-edo. This is the "equal temperament" tuning familiar to most modern musicians -- so familiar, in fact, that many such musicians do not realize that other tunings exist, or that there is such a thing as a tuning (let alone a temperament).
17-edo
Slightly to the right of 12-edo, at M5-706 cents, two other note-lines cross:
352 - Se and Mi (d4 and A2)
847 - De and Li (d7 and A5)
All of the note-lines intersect the vertical line labeled "17-edo" at 17 equally-spaced intervals, so M5=706 is 17-edo tuning.
In 17-edo, the major second is subdivided into three equally-wide intervals by the augmented second and minor second. For example, see how the gap between Re (black x's, at the bottom) and Mi (blue squares, near the 200 cent horizontal line) is evenly divided by Ri (A1, cyan x's) an Me (m2, red squares). Note that at this point along the horizontal axis (M5=706), Me is closer to Re (i.e., lower in pitch) than Ri is.
In 17-edo -- and indeed everywhere rightward of 12-edo -- minor/diminished intervals are lower in pitch than the augmented/major intervals with which they are enharmonic in 12-edo.
19-edo
Likewise, the vertical line labeled "19-edo" marks the spot, at M5=695, where the note-lines subdivide the octave into 19 equally-wide intervals: 19-edo tuning. At this tuning, a major second (for example, Re-Mi) is divided into three equally-wide intervals by and augmented unison (Ri) and a minor second (Me).
In 19-edo -- and indeed everywhere leftward of 12-edo -- minor/diminished intervals are higher in pitch than the augmented/major intervals with which they are enharmonic in 12-edo.
Dynamic Tonality
Despite the changes among the relationships between intervals across the syntonic temperament's tuning continuum, the sound of tonal harmony's basic structure survives, as shown in this video (with over-the-top narration, for which I apologize):
This dynamic flexibility of tuning, combined with the consistent fingering of the Wicki/JIMS keyboard, can be used to create musical effects that are truly new, such as the tuning progression in this piece, C to Shining Sea, by William Sethares. We call the result Dynamic Tonality.
First, let's review the construction of the chromatic scale.
Stacking 13 temperedperfect fifths (P5's) one atop the other, centered on Re, produces the following 13-note generated collection: -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 Le-Me-Te-Fa-Do-So-Re-La-Mi-Ti-Fi-Di-Si
The Le-to-Di and Me-to-Si 12-note subsets of this generated collection are both just transposition of each other, so either can be used to represent a 12-note contiguous subset of the above 13-note generated collection. In the following discussion, the Me-to-Si subset will be used.
The Me-Si generated collection's notes can be adjusted so that they all fall within a single octave. We will arbitrarily define the octave to start on Do. The result is a "well-formed scale," in this case the chromatic scale.
The chromatic scale has the following note sequence and interval sequence: note sequence: Do-Di-Re-Me-Mi-Fa-Fi-So-Si-La-Te-Ti-[Do2] interval sequence: A1-m2-m2-A1-m2-A1-m2-A1-m2-m2-A1-m2
In the syntnonic temperament's valid tuning range -- that is, when the width of the P5 is anywhere between 686 and 720 cents wide -- the m2 is wider than the A1. Hence, in the syntonic temperament, the chromatic scale has the following width sequence: width sequence: S L L S L S L S L L S L
That's 7 L's and 5 S's.
With that review, we can now go...
Beyond the Chromatic
In the syntonic temperament, then, the well-formed scale with the next-highest cardinality after the chromatic's 12 will have the cardinality:
Cardinality' = 2L + S = (2 * 7) + 5 = (14) + 5 = 19.
Stacking 19 tempered P5's one atop the other, centered on Re, produces the following generated set: -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 De-Se-Ra-Le-Me-Te-Fa-Do-So-Re-La-Mi-Ti-Fi-Di-Si-Ri-Li-My
...with the extra notes (relative to the chromatic scale) appearing the ends and shown in boldface.
Octave-reducing this generated set, and arbitrarily defining the octave to being on Do, gives the following 19-note note sequence and interval sequence: Do-Di-Ra-Re-Ri-Me-Mi-My-Fa-Fi-Se-So-Si-La-Li-Te-Ti-De-[Do2] A1-d2-A1-A1-d2-A1-A1-d2-A1-d2-A1-A1-d2-A1-d2-A1-d2-A1
...where:
A1: augmented unison
d2: diminished second
Clearly, as we sub-divide the octave into more pieces (i.e., into higher-cardinality scales), those pieces must get smaller. Scale Cardinality Large Small Pentatonic 5 m3 M2 Diatonic 7 M2 m2 Chromatic 12 m2 A1 Enharmonic_19 19 A1 d2
At each successively-higher cardinality, the formerly-small interval width becomes the new large width, and a new small width is introduced.
On a 19-note-per-octave Wicki/JIMS note-layout, and played in 19-tone equal temperament (P5=695, at which the A1 and d2 are both 1200/19=63.16 cents wide), this scale looks/sounds like this (source code here):
Now, let's explore the alternative cardinality-successor to the chromatic scale.
Stacking 17 tempered P5's one atop the other, centered on Re, produces the following generated set: -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 Se-Ra-Le-Me-Te-Fa-Do-So-Re-La-Mi-Ti-Fi-Di-Si-Ri-Li
...with the extra notes, relative to the chromatic, added to either end, and shown in boldface.
Octave-reducing this generated set, and arbitrarily starting defining the octave to being on Do, gives the following 17-note note sequence and interval sequence: Do-Ra-Di-Re-Me-Ri-Mi-Fa-Se-Fi-So-Le-Si-La-Te-Li-Ti-[Do2] m2-d2-m2-m2-d2-m2-m2-m2-d2-m2-m2-d2-m2-m2-d2-m2-m2
On a 17-note-per-octave Wicki/JIMS note-layout, played in 17-tone equal temperament (P5=706), this scale looks/sounds like this (source code here):
And there you have it: the next-higher-cardinality scales after the chromatic are 17 and 19.
In an earlier post, I calculated the cardinalities of successive well-formed scales -- pentatonic (5), diatonic (7), and chromatic (12) -- and animated their interval-patterns on the Wicki/JIMS note-layout.
What we saw -- with some interpretative help from Andy Milne -- was that:
each successive well-formed scale came in two versions: one with X large intervals and Y small intervals, and one that was vice versa (Y large and X small); and that
the sequence of intervals that defined both versions was the same; the only difference between the two versions was the tuning (that is, the width of the tempered perfect fifth, since that is the generator of the generated set that defines a well-formed scale).
For example, the diatonic "generated set" is Fa-Do-So-Re-La-Mi-Ti, which produces the note-sequence (in Do-mode) Do-Re-Mi-Fa-So-La-Ti-[Do2], which has the inter-note interval sequence M2-M2-m2-M2-M2-M2-m2.
In the syntonic temperament's valid tuning range (P5=(686, 720)), the M2 is wider than the m2, so this sequence can be written as the width sequence L-L-S-L-L-L-S, which is 5 large (L) and 2 small (S) intervals.
However, as P5's width shrinks towards 686, the m2 widens and the M2 shrinks, such that they become equal at around P5=686 cents, producing 7-tone equal temperament tuning.
If one narrows the P5 even further, one leaves the syntonic temperament and enters what Erv Wilson called the Mavila temperament, in which the m2 is wider than the M2. There, this same pattern (note sequence: Do-Re-Mi-Fa-So-La-Ti-[Do2] == interval sequence: M2-M2-m2-M2-M2-M2-m2 ) has the width sequence S-S-L-S-S-S-L, because in the Mavila temperament's valid tuning range, m2 > M2.
Alternatively put, the diatonic note note sequence and (hence) interval sequence are unchanged from syntonic to Mavila; the only thing that's changed is the relationships among the interval-widths, in that syntonic's m2 < M2 becomes Mavila's m2 > M2.
The same meta-pattern applies to the chromatic scale (all from Do): note sequence: Do-Di-Re-Me-Mi-Fa-Fi-So-Si-La-Te-Ti-[Do2]. interval sequence: A1-m2-m2-A1-m2-A1-m2-A1-m2-m2-A1-m2
Within the syntonic temperament's valid tuning range, the m2 is wider than the A1 (i.e., m2 > A1), so the above chromatic note/interval sequence produces the following width sequence: width sequence: S L L S L S L S L L S L
However, if the P5's width is narrowed so that it crosses out of the syntonic temperament's valid range into the Mavila temeprament's valid tuning range, then the width-relationship of the m2 and A1 is reversed, such that m2 < A1 -- producing a chromatic width sequence in Mavila that's the opposite of that in the syntonic:
width sequence: L S S L S L S L S S L S
Apparently, Andy's algorithm for calculating the sequence of cardinalities for successive well-formed scales, and the count of large & small intervals in each, produces a single scale, of which there is a syntonic variant and a Mavila variant. Let's see, in my next post, if that pattern continues, as we explore well-formed scales beyond the chromatic.