[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Favourite SuperCollider Demo Patches



don't mean to turn this thread into a nostalgia show 
but these bouncing objects actually got me waiting all day to get back to learning sc code...
timeend timbanalizing   g         g      g   g g  ling

(
SynthDef(\lightbulbs, {
    arg freqs=#[ 4244, 5034, 4929, 2652 ], amps=#[ 0.663, 0.238, 0.675, 0.575 ], rings = #[ 0.108, 0.045, 0.058, 0.0319];
    e = Env.new([1, 1, 0],[3, 0.001]); // 3 second cut off envelope to end sound
    Out.ar(
    0,

    

        Pan2.ar(
            // resonant filter bank simulates resonant modes of bouncing objects
            Klank.ar(
                `[
                    freqs, // resonant freqs
                    amps, // amplitudes
                    rings  // ring times
                ],
                // decays excite filter bank
                Decay.ar( // each impulse triggers a decay
                    Impulse.ar(            // impulses trigger decay envelope
                        XLine.kr(5 + Rand(-2,2), 600, 4), // accellerating frequency
                        0,
                        XLine.kr(0.09, 0.000009, 4)        // decaying impulse amplitude
                    ), 
                    0.001        // decay time - very short
                )
            ),
            Rand(-1, 1) // place each bouncer at a random position in the stereo field
       
        * // multiply by an envelope is necessary to make the sound end
        EnvGen.kr(e, doneAction:2)
    )
}).send(s);
{
    loop {
        Synth(\lightbulbs,[
            \pan, 1.0.rand2
        ]).setn(
            \freqs, Array.fill(4, { 400 + 8000.0.rand }), 
            \amps, Array.fill(4, { 1.0.rand }), 
            \rings, Array.fill(4, { 0.01 + 0.1.rand })
        );
        (0.6+0.6.rand).wait
    }
}.fork
)


On 8 Jun 2006, at 22:31, chris clepper wrote:

The old James McC 'space music' patches always amused me.  Instant Tangerine Dream record.  Do those exist for SCServer?

On 6/8/06, Nick Collins <nikolaicollinsky@xxxxxxxxxxx > wrote:
Dear all,
               I'm presenting SuperCollider at a talk next week and wanted to show various demoes promoting a variety of things you can do with the software. I've enclosed one of my favourite examples below, a patch by James McCartney. I thought I'd ask if anyone else had patches they'd like me to show (I'll fully credit all contributions); they don't have to be by yourself, but just great examples you've come across and admire. Short ones possibly more accessible to an audience but I don't mind running some specialised examples if you want to point me to more involved things. 

I'll put the talk online after the presentation to share everything I've managed to fit in. 

cheers,
Nick