-
Notifications
You must be signed in to change notification settings - Fork 0
/
X.scd
105 lines (99 loc) · 2.39 KB
/
X.scd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
TempoClock.default.tempo_(60/120);
s.options.numOutputBusChannels=4
TempoClock.default.tempo_(120/20);
ServerOptions.inDevices.postln;
s.record(numChannels:2);
s.options.sampleRate =48000
s.options.device_("USB Sound Device");
s.options.memSize = 65536;
s.options.memSize
s.options.numInputBusChannels=0;
s.record(numChannels:6) ;
s.options.memSize = 2097152
(
SynthDef.new(\id, {
arg dur=1;
var x=1,y=1,t,z=1;
var k=0, sig,sig1,env,s;
var sum=0,sum1=0;
env=EnvGen.ar(Env.perc(3,4,1/1,[-4,-4]),doneAction:2);
sum=FSinOsc.ar(512,mul:env,iphase:pi);
4.do{≥
dur=dur+1;
z=(dur+1)/dur;
x=z.cos; y=z.sin;
t=Complex(x,y).angle.squared.poll;
env=EnvGen.ar(Env.perc(3,4,1/z,[-4,-4]),doneAction:2);
sig=FSinOsc.ar(t*512,mul:env,iphase:t*pi);
sum=sum+sig;
Out.ar(0,PanAz.ar(2,sum*env,LFSaw.ar(t),width:2));
};
}).add;
)
(
( Pdef(\1, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\2, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\3, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\4, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\5, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\6, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\7, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\8, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\9, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\10, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\11, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\12, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\13, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\14, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\15, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
( Pdef(\16, Pbind(\instrument, \id,
//\dur,5;
\dur,Pbrown(1,2,0.125,inf),
)).play(quant:1));
)
///////////////////////////////////////////////////////