-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsynths.sc
103 lines (69 loc) · 1.55 KB
/
synths.sc
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
KlankSaw {
* ar {
arg rate = 1, atk = 0.1, rel = 0.4, freq = 440, cutoff = 500, cutoff2 = 1500,
amp = 0.2, fbank1 = 200, fbank2 = 671, fbank3 = 1153, fbank4 = 1723, mul = 1,
trig = 0, add = 0;
var dust = Dust.ar(freq, 0.2),
sig = Pulse.ar(freq) + Saw.ar(freq * 1.5, 0.5, 0.2) + dust,
env = EnvGen.kr(
Env.new(
[0,1,0],
[atk, rel],
[1, -1]),
trig,
doneAction:2);
sig = sig + (sig * dust);
sig = BPF.ar(sig, cutoff2);
sig = Klank.ar(`[[200, 671, 1153, 1723], nil, [1, 1, 1, 1]], (sig * env / 50));
^sig * mul + add;
}
}
Flicker {
* ar {
arg rate = 1, atk = 0.1, rel = 0.4, freq = 440, cutoff = 500, cutoff2 = 1500,
amp = 0.8, mul = 1, add = 0;
var sig = Dust.ar(freq, 0.8),
env = EnvGen.kr(
Env.new(
[0,1,0],
[atk, rel],
[1, -1]),
doneAction:2),
fenv = EnvGen.kr(
Env.new(
[cutoff,
cutoff2,
rrand(cutoff, cutoff2)],
[atk, rel],
[1, -1]),
doneAction:2);
sig = BPF.ar(sig, fenv);
^sig * mul + add;
}
}
ChemFVerb {
* ar {
arg in, predelay = 1, decay = 10, lpf = 19500, pitchratio = 4.0, amp = 1, mul = 1,
add = 0;
var wet, temp, sig;
temp = in;
wet = 0;
temp = DelayN.ar(
temp,
0.2,
predelay);
//temp = PitchShift.ar(temp, 0.2, pitchratio, 1.1, 1.1, 2.2);
temp = Compander.ar(temp, temp, 0.5, slopeBelow: 1.0, slopeAbove: 0.2);
temp = HPF.ar(temp, 4000);
16.do {
temp = AllpassN.ar(
temp,
0.05,
{Rand(0.001, 0.05)}!2,
decay);
temp - LPF.ar(temp, lpf);
wet = wet + temp;
};
^ wet * mul + add;
}
}