nxInstrument005

Download all code, records and samples
Download nxInstrument005 2009.29.3 2009.29.6

Instrument Code:

// Supercollider Code:
// nxInstrument005.sc
// Date: 2009.03.29
// Author: Miquel Parera Jaques.
// Target: Stages of Sleep.
 
// 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/nxInstrument005-01.wav");
)
 
// Begin Code:
 
~x.play;
~x.fadeTime = 9;
 
t = Task({
    s.record;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), -0.7)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), 0.7)};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2),0)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), -0.7)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), 0.7)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2), -0.7)};
    9.wait;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0.7)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2),0)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), -0.7 )};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2), 0.7)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2),0)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), -0.7)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0.7)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2),0)};
    18.wait;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2), -0.7)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), 0.7)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2),0)};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2), -0.7)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2),0.7)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2),0)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2), -0.7)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2),0.7)};
    27.wait;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), -0.7)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), 0.7)};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2),0)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), -0.7)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), 0.7)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2),-0.7)};
    // Wake
    36.wait;
    ~x.end;
    10.wait;
    s.stopRecording;
});
 
t.play;
t.stop;
 
// End Code:
 
History.end;
History.saveStory("nxInstrument-Story-005-01.scd");
"killall jackd & killall java".unixCmd;p.pop; s.quit;

Story file:

///////////////////////////////////////////////////
// History, as it was on Mon Mar 30 04:43:13 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:2.1 -  
(
s.recHeaderFormat = "WAV";
s.prepareForRecord("/home/neix/nxInstrument005-01.wav");
)
 
// - 0:0:6.54 -  
~x.play;
 
// - 0:0:7.6 -  
~x.fadeTime = 9;
 
// - 0:0:10.9 -  
(
t = Task({
    s.record;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), -0.7)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), 0.7)};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2),0)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), -0.7)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), 0.7)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2), -0.7)};
    9.wait;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0.7)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2),0)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), -0.7 )};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2), 0.7)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2),0)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), -0.7)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0.7)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2),0)};
    18.wait;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2), -0.7)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), 0.7)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2),0)};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2), -0.7)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2),0.7)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2),0)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2), -0.7)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2),0.7)};
    27.wait;
    // n1
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // n2
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), -0.7)};
    // n3
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), 0.7)};
    // n4
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(5,20), 0.0, 0.2) + SinOsc.ar(Rand(5,20), 0.2, 0.2),0)};
    // n3
    18.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(20,40), 0.0, 0.2) + SinOsc.ar(Rand(20,40), 0.2, 0.2), -0.7)};
    // n2
    9.wait;
     ~x = { Pan2.ar(SinOsc.ar(Rand(80,150), 0.0, 0.2) + SinOsc.ar(Rand(60,150), 0.2, 0.2), 0.7)};
    // n1
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(40,80), 0.0, 0.2) + SinOsc.ar(Rand(40,80), 0.2, 0.2),0)};
    // REM.
    9.wait;
    ~x = { Pan2.ar(SinOsc.ar(Rand(120,240), 0.0, 0.2) + SinOsc.ar(Rand(120,240), 0.2, 0.2),-0.7)};
    // Wake
    36.wait;
    ~x.end;
    10.wait;
    s.stopRecording;
});
);
 
// - 0:0:20.52 -  
t.play;
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License