links for 2009-09-18

September 19, 2009
  • <blockquote>
    <p>So let’s get going. SuperCollider is my tool of choice here. I start with a simple waveform. I want to use a sawtooth wave as the oscillator source, it has a rich and harmonic spectrum consisting of even and odd partials. I’ll want to filter the upper partials later on. Here is some beginning code:</p>
    <pre>
    //30 oscillators together, distributed across the stereo field
    (
    {
    var numVoices = 30;
    //generating initial random fundamentals:
    var fundamentals = {rrand(200.0, 400.0)}!numVoices;
    Mix
    ({|numTone|
    var freq = fundamentals[numTone];
    Pan2.ar
    (
    Saw.ar(freq),
    rrand(-0.5, 0.5), //stereo placement of voices
    numVoices.reciprocal //scale the amplitude of each voice
    )
    }!numVoices);
    }.play;
    )
    </pre>
    </blockquote>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: