nxInstrument001-04-02-Story
///////////////////////////////////////////////////
// History, as it was on Mon Mar  2 00:47:06 2009.
///////////////////////////////////////////////////
 
// - 0:0:0 -  
(
p = ProxySpace.push(s.boot);
p.makeTempoClock(2.0);
MIDIIn.connect;
History.clear.end;
History.start;
)
 
// - 0:0:0.81 -  
o = ServerOptions.new;
 
// - 0:0:1.77 -  
o.memSize = 20000;
 
// - 0:0:8.01 -  
(
b = Buffer.read(s, "nxInstrument001-03-01-Sampler.wav", bufnum:1);
c = Buffer.read(s, "nxInstrument001-03-02-Sampler.wav", bufnum:2);
d = Buffer.read(s, "nxInstrument001-03-03-Sampler.wav", bufnum:3);
)
 
// - 0:0:10.82 -  
"aconnect 20:0 129:1".unixCmd;
 
// - 0:0:17.7 -  
(
~osc_01 = { arg distorter=0, freq=0, rate=100; {Out.ar(0, CombN.ar(Pan2.ar(SinOsc.ar(freq) * PlayBuf.ar(1,1,rate,1,0,1), -1).distort * distorter),0.5,0.5,0.2)}};
f = CCResponder({|src,chan,num,value|~osc_01.set(\distorter, value*0.01);},nil,00,20,nil);
g = CCResponder({|src,chan,num,value|~osc_01.set(\freq, value.midicps);},nil,00,03,nil);
h = CCResponder({|src,chan,num,value|~osc_01.set(\rate, if(value==127,{3.0},{100}));},nil,00,28,nil);
~osc_02 = { arg distorter=0, freq=0, rate=150; {Out.ar(0, CombN.ar(Pan2.ar(SinOsc.ar(freq) * PlayBuf.ar(1,1,rate,1,0,1), 1).distort * distorter),0.5,0.5,0.2)}};
i = CCResponder({|src,chan,num,value|~osc_02.set(\distorter, value*0.01);},nil,00,21,nil);
j = CCResponder({|src,chan,num,value|~osc_02.set(\freq, value.midicps);},nil,00,09,nil);
k = CCResponder({|src,chan,num,value|~osc_02.set(\rate, if(value==127,{3.0},{150}));},nil,00,29,nil);
~osc_03 = { arg distorter=0, freq=0, rate=200; {Out.ar(0, CombN.ar(Pan2.ar(SinOsc.ar(freq) * PlayBuf.ar(1,1,rate,1,0,1), -1).distort * distorter),0.5,0.5,0.2)}};
l = CCResponder({|src,chan,num,value|~osc_03.set(\distorter, value*0.01);},nil,00,22,nil);
m = CCResponder({|src,chan,num,value|~osc_03.set(\freq, value.midicps);},nil,00,14,nil);
n = CCResponder({|src,chan,num,value|~osc_03.set(\rate, if(value==127,{-3.0},{200}));},nil,00,30,nil);
~osc_04 = { arg distorter=0, freq=0, rate=250; {Out.ar(0, CombN.ar(Pan2.ar(SinOsc.ar(freq) * PlayBuf.ar(1,1,rate,1,0,1), 1).distort * distorter),0.5,0.5,0.2)}};
t = CCResponder({|src,chan,num,value|~osc_04.set(\distorter, value*0.01);},nil,00,23,nil);
q = CCResponder({|src,chan,num,value|~osc_04.set(\freq, value.midicps);},nil,00,15,nil);
r = CCResponder({|src,chan,num,value|~osc_04.set(\rate, if(value==127,{-3.0},{250}));},nil,00,31,nil);
)
 
// - 0:0:21.69 -  
s.prepareForRecord("/home/neix/nxInstrument001-02-02.wav");
 
// - 0:0:24.67 -  
s.record;
 
// - 0:1:27.92 -  
~z.play;
 
// - 0:1:28.79 -  
~z.fadeTime = 33;
 
// - 0:1:34.79 -  
~z = { Pan2.ar(RHPF.ar(SinOsc.ar(SinOsc.kr(0.5), 0, Pulse.ar(~tempo.kr * 2.000)), 50, 0.1, 0.5), 0)};
 
// - 0:3:27.21 -  
~z.end;
 
// - 0:3:59.01 -  
~osc_05 = { arg distorter=1.5, freq=33, rate=0.5; {Out.ar(0, CombN.ar(Pan2.ar(SinOsc.ar(freq) * PlayBuf.ar(2,2,rate,1,0,1), 0).distort * distorter),0.5,0.5,0.2)}};
 
// - 0:4:25.41 -  
~osc_06 = { arg distorter=1.5, freq=66, rate= -1.5; {Out.ar(0, CombN.ar(Pan2.ar(SinOsc.ar(freq) * PlayBuf.ar(1,2,rate,4,0,1), 1).distort * distorter),1.5,1.5,1.2)}};
 
// - 0:5:13.45 -  
~osc_07 = { arg distorter=2.5, freq=333, rate=0.5; {Out.ar(0, CombN.ar(Pan2.ar(SinOsc.ar(freq) * PlayBuf.ar(1,3,rate,1,0,1), -1).distort * distorter),0.5,0.5,0.2)}};
 
// - 0:5:50.38 -  
~osc_06.end;
 
// - 0:6:5.58 -  
~osc_05.end;
 
// - 0:6:27.61 -  
~osc_07.end;
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License