nxInstrument006

Download all code, records and samples
Download nxInstrument006 2009.04.06 2009.09.06

Instrument Code:

// Supercollider Code:
// nxInstrument006.sc
// Date: 2009/04/04 04:43:23 CEST
// Author: Miquel Parera Jaques
// Target: Random Patterns
 
// Init Server:
 
(
p = ProxySpace.push(s.boot);
p.makeTempoClock(2.0);
MIDIIn.connect;
MIDIClient.init;
m = MIDIOut(0);
History.clear.end;
History.start;
)
 
// Record the session:
 
(
s.recHeaderFormat = "WAV";
s.prepareForRecord("/home/neix/nxInstrument006-01.wav");
)
 
// Begin Code:
 
(
SynthDef("nxSynthDef001", { arg out=0, freq=333, cutoff=10000, resz=1, pan= 0,
    sustain_1=0.01, amp_1=0.01,
    sustain_2=0.05, amp_2=0.02, mult_1= 5.88,
    sustain_3=0.09, amp_3=0.04, mult_2= 9.45;
    var a, b, c, d, filter;
    a = EnvGen.kr(Env.perc, sustain_1, doneAction:2) * SinOsc.ar(freq, 0.0, amp_1);
    b = EnvGen.kr(Env.perc, sustain_2, doneAction:2) * SinOsc.ar(freq*mult_1, 0.0, amp_2);
    c = EnvGen.kr(Env.perc, sustain_3, doneAction:2) * SinOsc.ar(freq*mult_2, 0.0, amp_2);
    d = a+b+c;
    filter = RLPF.ar(d, cutoff, resz);
    Out.ar(out, Pan2.ar(filter, pan));
}).send(s);
)
 
t = Task({
    s.record;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(10,90), exprand(20, 60)),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(10,90), exprand(20, 60), 2, inf),
        \amp_1, exprand(33.3, 66.6),
        \amp_2, exprand(33.3, 66.6),
        \amp_3, exprand(33.3, 66.6),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x).stop;
    exprand(5, 12).wait;
    Pdef(\y).stop;
    exprand(5, 12).wait;
    Pdef(\z).stop;
    3.wait;
    s.stopRecording;
});
 
t.play;    
 
// End Code:
 
History.end;
History.saveStory("/home/neix/nxInstrument-Story-006-01.scd");
"killall jackd & killall java".unixCmd;p.pop; s.quit;

Story file:

///////////////////////////////////////////////////
// History, as it was on Sat Apr  4 06:01:38 2009.
///////////////////////////////////////////////////
 
// - 0:0:0 -  
(
p = ProxySpace.push(s.boot);
p.makeTempoClock(2.0);
MIDIIn.connect;
MIDIClient.init;
m = MIDIOut(0);
History.clear.end;
History.start;
)
 
// - 0:0:1.49 -  
(
s.recHeaderFormat = "WAV";
s.prepareForRecord("/home/neix/nxInstrument006-01.wav");
)
 
// - 0:0:7.56 -  
(
SynthDef("nxSynthDef001", { arg out=0, freq=333, cutoff=10000, resz=1, pan= 0,
    sustain_1=0.01, amp_1=0.01,
    sustain_2=0.05, amp_2=0.02, mult_1= 5.88,
    sustain_3=0.09, amp_3=0.04, mult_2= 9.45;
    var a, b, c, d, filter;
    a = EnvGen.kr(Env.perc, sustain_1, doneAction:2) * SinOsc.ar(freq, 0.0, amp_1);
    b = EnvGen.kr(Env.perc, sustain_2, doneAction:2) * SinOsc.ar(freq*mult_1, 0.0, amp_2);
    c = EnvGen.kr(Env.perc, sustain_3, doneAction:2) * SinOsc.ar(freq*mult_2, 0.0, amp_2);
    d = a+b+c;
    filter = RLPF.ar(d, cutoff, resz);
    Out.ar(out, Pan2.ar(filter, pan));
}).send(s);
)
 
// - 0:0:28.31 -  
(
t = Task({
    s.record;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, -1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\y, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pwhite(exprand(0.15, 0.33), exprand(0.15, 0.33)), 
        \midinote, Pwhite(exprand(20,60), exprand(20, 60)),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 0,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\z, Pbind(\instrument, \nxSynthDef001, 
        \dur, Pgbrown(exprand(0.15, 0.33), exprand(0.15, 0.33), 0.04, inf), 
        \midinote, Pgbrown(exprand(20,60), exprand(20, 60), 2, inf),
        \amp_1, exprand(10.0, 33.3),
        \amp_2, exprand(10.0, 33.3),
        \amp_3, exprand(10.0, 33.3),
        \mult_1, exprand(-10.0, 33.3),
        \mult_2, exprand(-10.0, 33.3),
        \sustain_1, exprand(0.01, 0.1),
        \sustain_2, exprand(0.01, 0.1),
        \sustain_3, exprand(0.01, 0.1),
        \pan, 1,
        \cutoff, exprand(2000, 10000),
        \resz, exprand(0.33, 3.33))
    ).play;
    exprand(5, 12).wait;
    Pdef(\x).stop;
    exprand(5, 12).wait;
    Pdef(\y).stop;
    exprand(5, 12).wait;
    Pdef(\z).stop;
    3.wait;
    s.stopRecording;
});
);
 
// - 0:0:35.15 -  
t.play;
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License