Most Popular


The EM Poll




CURRENT ISSUE

SUBSCRIBE
$1.84 an issue!

EM DIGITAL EDITION
Try it for free today!

browse back issues


Follow Us On...




Fractals and Music

Oct 1, 1999 12:00 PM, By Gustavo Diaz-Jerez



         Subscribe in NewsGator Online   Subscribe in Bloglines
 

CURRENT NEWSSTAND ISSUE

Read the full Table of Contents for the issue on sale now! Click here

Subscribe for only $1.84 an issue!

Please tell us about yourself so we can better serve you. Click here to take our user survey.

MixBooks Logo
Life in the Fast Lane

This collection of St.CroixÕs columns was assembled during the two years following his death of cancer in May 2006. Included are many of his most-read columns, as well as personal notes, drawings and photographs.

Click for more books
EM Podcasts

Listen to these latest podcasts and more:
Bela Fleck on recording Jingle All the Way.Go

What's New: software and sound products. Go

eDeals Newsletter for Discounts on Gear

Get First Dibs on Hot Gear Discounts, Manufacturer Close-Outs and Job Opportunities when you sign up to receive eDeals E-newsletter, sent twice a month. Check out an issue get advertising info or subscribe

FIG. 1: Fractal images are generated by fairly simple mathematical formulas, yet they are very rich in detail. This is partly due to their use of iterative, or looping, patterns.

FIG. 1: Fractal images are generated by fairly simple mathematical formulas, yet they are very rich in detail. This is partly due to their use of iterative, or looping, patterns.

Most musicians have seen fractal images-those hauntingly beautiful pictures generated through mathematical equations. But how many people are aware that the same equations can be used to create hauntingly beautiful music? This article will explore fractals and discuss how they can be employed in musical composition. The technique is so versatile that you can use it to create music in any style, and it has great potential for adding an exciting new element to your music.

Studying music from a mathematical point of view is nothing new; it dates back to ancient Greece. Around the fifth century B.C., Pythagoras uncovered mathematical relationships in music, in which musical intervals are represented as ratios of whole numbers. For example, the interval of an octave would be represented in the Pythagorean system as a 2:1 ratio because the frequency of the higher pitch is twice that of the lower. By the same system, the interval of a fifth would be 3:2, a fourth 4:3, and so forth. Other systems relating music to math have been developed, mainly in the 20th century. Among the many examples are Joseph Schillinger's System of Musical Composition and a method of composition developed by Olivier Messiaen in the 1940s. The more recent discovery of fractals and particularly their link to music has opened a door to composers, behind which lies immense creative possibility.

WHAT ARE FRACTALS?
Fractals are visual representations of certain mathematical functions, which show increasing detail upon magnification. A very important phenomenon of fractals is that they manifest self-similarity at all scales. Benoit Mandelbrot, one of the fathers of fractal geometry (and the man who coined the term fractal), loosely defines fractals as "shapes that are equally complex in their details as in their overall form. That is, if a piece of a fractal is suitably magnified to become of the same size as the whole, it should look like the whole, either exactly, or perhaps only slightly deformed."

One would expect that the construction of such complex shapes would require complex rules, but in reality, the algorithms (equations) that generate fractals are typically extraordinarily simple. Their visual results, however, show great richness. The seeming paradox is easily demystified: these algorithms involve "loops."

The key to the richness of detail that fractals exhibit is something that mathematicians call iteration. Most equations that we learned in school are linear-that is, the input is proportional to the output. For example, the equation x2 - 1 = 0 is a linear equation. The equations that generate fractals, however, are nonlinear. Nonlinear equations involve iteration, which means that the solution of the equation is repeatedly fed back into itself. It is an arresting thought that something produced from a purely mathematical procedure can be so aesthetically pleasing (see Fig. 1).

FROM FRACTALS TO MUSIC
The secret behind fractal music involves something that mathematicians call mapping. Mapping means creating a direct relationship between the numerical output of an equation and certain parameters that can employ that output. Fractal images, for instance, are produced by mapping the output of equations to colored screen pixels. The parameters in fractal music are sonic rather than visual and can include pitch, rhythmic values, and dynamics. This mapping process is the link between the worlds of numbers and sound.

The mapping of nonmusical material to pitches is another ancient idea. A medieval technique known as soggetto cavato (a theme "carved" from words) maps the individual letters of words to music. For example, Hercules Dux Ferrarie, a mass by Josquin des Prez dedicated to Hercules, Duke of Ferrara, uses a theme based on the vowels in the Duke's name. The sequence of vowels e-u-e-u-e-a-i-e is first mapped to the six solmization syllables (ut, re, mi, fa, sol, la), which generates the following syllables: re, ut, re, ut, re, fa, mi, re. When converted to traditional note names, one gets the pitches, D-C-D-C-D-F-E-D. This technique has been used extensively by composers throughout history, including J. S. Bach.

There is no single way in which to map numerical output to music; in fact, different mappings can be applied to the same numerical output. For instance, the output of fractal equations can be mapped to different note sets, and the resulting melodies will differ accordingly.

To illustrate how this mapping process works, let's analyze one of the most fertile algorithms: the Morse-Thue sequence. This number sequence, although relatively simple to construct from a mathematical standpoint, shows many interesting properties, including self-similarity. It is generated by the nonnegative integers 0, 1, 2, 3, 4, 5, 6, and so on, expressed in binary notation (base 2):

0 1 10 11 100 101 110 111 1000 1001....

Now, add the digits of each term in the sequence, yielding

0 1 1 2 1 2 2 3 1 2....

Notice that if you take out every other number (keeping the underlined ones), you get back the same sequence:

0 1 1 2 1....

FIG. 2: One way to employ fractals in music is to map the numeric output of algorithms to note sequences. ­Figure 2a is the melody that results from a common algorithm called the Morse-Thue sequence; this melody is self-similar. Figure 2b shows the resulting melody if every other note of 2a is removed. Figure 2c shows the result of removing every other note from 2b.

FIG. 2: One way to employ fractals in music is to map the numeric output of algorithms to note sequences. ­Figure 2a is the melody that results from a common algorithm called the Morse-Thue sequence; this melody is self-similar. Figure 2b shows the resulting melody if every other note of 2a is removed. Figure 2c shows the result of removing every other note from 2b.

So how do you turn all this into music? That is where mapping comes into play. One way is to map the numbers to a scale. If C major is to be our scale, then the note C would be mapped to the number 0, D to 1, E to 2, F to 3, G to 4, and so on. This mapping results in the melody shown in Figure 2a. Notice that, if you remove every other note in the melody, what remains is the same melody as the original (see Fig. 2b). If you repeat this procedure with the already truncated melody, the result is no different (see Fig. 2c); the melody is self-similar.

FIG. 3: Using a different mapping process can create an entirely new melody from the Morse-Thue sequence. Multiplying every term in the sequence before converting them to notes produces the melody seen here.

FIG. 3: Using a different mapping process can create an entirely new melody from the Morse-Thue sequence. Multiplying every term in the sequence before converting them to notes produces the melody seen here.

You are not restricted to base 2; using a different base yields different melodies. You can also map the numeric values to other scales or groups of notes to get different results. To make things even more interesting, you can multiply every term in the sequence by a constant value. This can produce curious results, depending upon which combination of base/multiplier you have chosen. A very fruitful combination, for example, is base 2 and multiplier 33. Mapped to a C major scale, this combination produces the melody shown in Figure 3.

The characteristics of these "fractal melodies" are mind-boggling. If you analyze them in detail, you will find all types of self-similarities and interrelationships among the pitches, and because there is an infinite range of numbers to choose from, you have an inexhaustible source of melodic subject matter.

Other algorithms can be mapped to musical parameters in a similar manner. Every algorithm generates a unique set of melodies, but each has its own unique "fingerprint," even when different mappings are applied. Many of the programs mentioned later in this article automatically compute the entire mapping process, making it transparent to the user. This allows musicians to focus their creativity exclusively on musical questions. Little or no math background is needed to learn most fractal software.

Of course, as with any other "system of composition," it is ultimately the composer's musical talent that determines the quality of a piece of music; plugging in some parameters and pushing a few buttons is not going to produce a masterpiece. In the hands of a skilled composer, however, fractal music can serve as a source of inspiration and as a tool for raw musical material, which can later be developed, incorporated, and refined.

Get Copyright ClearanceWant to use this article? Click here for options!
© 2009 Penton Media, Inc.



Acceptable Use Policy
blog comments powered by Disqus

Back to Top