Debian Codegraph @

examples/filter/Multicomb.ck

raw
1 ////////////////////////////////////////////////////
2 // Multicomb //
3 // //
4 // Multiple simultaneous comb filters randomly //
5 // chosen within a specified frequency range //
6 // and spread across the stereo field //
7 ////////////////////////////////////////////////////
8 //
9 // Settings:
10 //
11 // num (int): set number of comb filters (default 5)
12 // minfreq (float): set low frequency
13 // maxfreq (float): set high frequency
14 // set (float, float): set both low and high freqs
15 // revtime (dur): total ring time (default 1::second)
16
17 Impulse imp => Multicomb comb => dac;
18 500::ms => comb.revtime;
19
20 repeat (60)
21 {
22 comb.set(220,880);
23 1 => imp.next;
24 500::ms => now;
25 }