-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdxkDelayFx.scd
More file actions
22 lines (19 loc) · 1.07 KB
/
dxkDelayFx.scd
File metadata and controls
22 lines (19 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SynthDef(\dxkFlangerM, {|in = 0, out = 0, rate = 1, maxDelay = 0.01, minDelay = 0.001, decayTime = 1, amp = 1|
var input = In.ar(in, 1);
var flanged = CombC.ar(input, maxDelay, SinOsc.ar(rate, 0, (maxDelay * 0.5) - minDelay, (maxDelay * 0.5) + minDelay), decayTime, amp);
ReplaceOut.ar(out, flanged);
}).add;
SynthDef(\dxkPhaserM, {|in = 0, out = 0, rate = 1, maxDelay = 0.01, minDelay = 0.001, decayTime = 1, amp = 1|
var input = In.ar(in, 1);
var flanged = AllpassC.ar(input, maxDelay, SinOsc.ar(rate, 0, (maxDelay * 0.5) - minDelay, (maxDelay * 0.5) + minDelay), decayTime, amp);
ReplaceOut.ar(out, flanged);
}).add;
SynthDef(\dxkChorusM, {|in = 0, out = 0, rate = 1, maxDelay = 0.05, minDelay = 0.01, dry = 1, wet = 1, amp = 1|
var output, num = 8;
var input = In.ar(in, 1) * num.reciprocal;
var lfos = Array.fill(num, {SinOsc.ar(rate * rrand(0.95, 1.05), rrand(0.0, 1.0), (maxDelay * 0.5) - minDelay, (maxDelay * 0.5) + minDelay)});
var voices = DelayC.ar(input, maxDelay, lfos);
voices = Mix.ar(voices);
output = (dry*input) + (wet*voices);
ReplaceOut.ar(out, output);
}).add;