Debian Codegraph @

examples/effects/ExpDelay.ck

raw
1 ////////////////////////////////////////////////////
2 // ExpDelay - Feedback delay at exponentially //
3 // changing delay times //
4 // //
5 // by Joel Matthys //
6 // (c) 2014, GPL 2.0 //
7 // //
8 ////////////////////////////////////////////////////
9 //
10 // Settings:
11 // mix (float): 0-1, dry/wet mix
12 // max (dur): maximum possible delay duration
13 // delay (dur): duration of delay
14 // reps (int): number of repetitions
15 // durcurve (float) [0.0001-inf]: set steepness of delay curve
16 // 1 = steady
17 // <1 = starts fast and slows down
18 // >1 = starts slow and speeds up
19 // ampcurve (float) [0.0001-inf]: set steepness of amplitude decay
20
21 ModalBar pop => ExpDelay ed => dac;
22 3::second => ed.max;
23 3::second => ed.delay;
24
25 while (true)
26 {
27 Math.random2(54,66) => Std.mtof => pop.freq;
28 1 => pop.noteOn;
29 Math.random2f(0.5,2) => ed.durcurve;
30 Math.random2f(0.5,2) => ed.ampcurve;
31 Math.random2(5,30) => ed.reps;
32 <<< "durcurve:",ed.durcurve(), "ampcurve:",ed.ampcurve(), "reps:",ed.reps() >>>;
33 4::second => now;
34 }