-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathCaosHats2.sc
More file actions
58 lines (35 loc) · 1.22 KB
/
CaosHats2.sc
File metadata and controls
58 lines (35 loc) · 1.22 KB
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
//written by @Ill_Slide
//rougher hihats / shakes
//Part of CaosPercLib v1.2.3
CaosHats2 : CaosEnv {
*new {
^super.new;
}
*ar {|att=0.025,rel=0.5,highcutfreq=10000,rq=0.5,gate=1,amp1=1,amp2=1,pan=0,doneAction=2|
var hats,env;
hats = this.signal(highcutfreq,rq,amp1,amp2);
hats = this.comp(hats,0.5,0.49,0.7);
env = this.envAR(att,rel,gate,doneAction);
^Pan2.ar(hats*env,pan);
}
ar {|att=0.025,rel=0.5,highcutfreq=10000,rq=0.5,gate=1,amp1=1,amp2=1,pan=0,doneAction=2|
var hats,env;
hats = this.signal(highcutfreq,rq,amp1,amp2);
hats = this.comp(hats,0.5,0.49,0.7);
env = this.envAR(att,rel,gate,doneAction);
^Pan2.ar(hats*env,pan);
}
*robot {|att=0.025,rel=0.5,highcutfreq=10000,rq=0.5,amp1=1,amp2=1,t=1,tp=0,pan=0,doneAction=0|
var hats,env;
hats = this.signal(highcutfreq,rq,amp1,amp2);
hats = this.comp(hats,0.5,0.49,0.7);
env = this.envAR(att,rel,Impulse.kr(t,tp),doneAction);
^Pan2.ar(hats*env,pan);
}
*signal {|highcutfreq,rq,amp1,amp2|
^Limiter.ar(BPF.ar(BrownNoise.ar(amp1/1.5)*PinkNoise.ar(amp2/2).wrap(0.32),highcutfreq,rq),0.8);
}
signal {|highcutfreq,rq,amp1,amp2|
^Limiter.ar(BPF.ar(BrownNoise.ar(amp1/2)*PinkNoise.ar(amp2/2.8).wrap(0.32),highcutfreq,rq),0.8);
}
}