32 gend.addSlaveSync(gen);
40 Buffer freqs = gen.drawLine(2, 49.0, 49.0);
41 Buffer Ks = gen.drawLine(2, 275, 8000.0);
42 Buffer alpha = gen.drawLine(2, 6, 36);
43 Buffer f_cut = gen.drawLine(2, 1000, 8000);
45 aout << gen.silence(0.5);
47 Buffer temp = gend.generate2(2, freqs, alpha);
48 temp *= gen.generate(2, Ks);
54 temp *= gent.generate(2, freqs);
56 aout << lpf.filter(temp, f_cut);
61 aout << gen.silence(0.5);
63 freqs = gen.drawLine(2.0, 49, 600.0);
64 Ks = gen.drawLine(2.0, 8000, 8000);
66 temp = gend.generate2(2, freqs, 36);
67 temp *= gen.generate(2, Ks);
72 temp *= gent.generate(2, freqs);
74 aout << lpf.filter(temp, 8000);
79 aout << gen.silence(0.5);
81 freqs = gen.drawLine(2.0, 600, 600.0);
82 Ks = gen.drawLine(2.0, 8000, 275);
83 alpha = gen.drawLine(2, 36, 6);
84 f_cut = gen.drawLine(2, 8000, 1000);
86 temp = gend.generate2(2, freqs, alpha);
87 temp *= gen.generate(2, Ks);
92 temp *= gent.generate(2, freqs);
94 aout << lpf.filter(temp, f_cut);
99 aout << gen.silence(0.5);
101 freqs = gen.drawLine(2.0, 600, 49.0);
102 Ks = gen.drawLine(2.0, 275, 275);
103 alpha = gen.drawLine(2, 6, 6);
104 f_cut = gen.drawLine(2, 1000, 1000);
106 temp = gend.generate2(2, freqs, alpha);
107 temp *= gen.generate(2, Ks);
112 temp *= gent.generate(2, freqs);
114 aout << lpf.filter(temp, f_cut);
119 aout << gen.silence(0.5);
A class tha generates decay curves.
A class for filtering audio in the frequecy domain.
void normalize()
Multiplies the Buffer by a constant gain so the peak sample has magnitude 1.0.
A Buffer for storing audio samples.
float64 getMin() const
Returns the minimum sample value in the Buffer.