Saturday, December 25, 2004

pink noise melody

Here is a minute-length excerpt (mp3 format) of the result of a program I wrote using ChucK, that audio programming language intended to facilitate "on-the-fly" programming. As should be the case with an on-the-fly language, it's a relatively easy langauge to learn and use and though it's not a full software synthesis behemoth like Csound, it can do quite a lot with just a handful of possible commands.

This piece presents two melodies, each realized with a simple sine wave run through a reverb. The pitches are generated by an algorithm which produces 1/f or "pink" noise (specifically, n1 = (n + (n^2)) mod 1). White noise (which consists of an equal distribution of all possible frequencies) sounds kind of like TV static, whereas pink noise (in which frequencies are distributed more heavily toward the bottom and thin out as one goes higher) sounds something like ocean waves or wind through a forest. Pink noise also has some fractal-like properties -- patterns repeat again and again, but always in a slightly different way, whereas white noise is absolutely random.

At any rate, the numbers spewed out by the algorithm are mapped to the notes of a major scale. The algorithm also determines the duration of each note.

0 Comments:

Post a Comment

<< Home