|
1 |
| -// SIMPLE ENVELOPE FOLLOWER, by P. Cook |
2 |
| - |
3 |
| -/* |
4 |
| -Hi all. I keep meaning to post to this list about the under-exploited |
5 |
| -feature that all unit generators have, in that you can cause their inputs |
6 |
| -to multiply rather than add. As an example, here's a simple power |
7 |
| -envelope follower that doesn't require sample-level chuck intervention. A |
8 |
| -gain UG is used to square the incoming A/D signal (try it on your built-in |
9 |
| -mic), then a OnePole UG is used as a "leaky integrator" to keep a running |
10 |
| -estimate of the signal power. The main loop wakes up each 100 ms and |
11 |
| -checks the power, and prints out a message if it's over a certain level. |
12 |
| -You might need to change the threshold, but you get the idea. |
13 |
| -*/ |
| 1 | +//----------------------------------------------------------------------------- |
| 2 | +// name: follower.ck |
| 3 | +// desc: a simple envelope follower |
| 4 | +// |
| 5 | +// author: Perry R. Cook |
| 6 | +/*----------------------------------------------------------------------------- |
| 7 | + Hi all. I keep meaning to post to this list about the under-exploited |
| 8 | + feature that all unit generators have, in that you can cause their inputs |
| 9 | + to multiply rather than add. As an example, here's a simple power |
| 10 | + envelope follower that doesn't require sample-level chuck intervention. A |
| 11 | + gain UG is used to square the incoming A/D signal (try it on your built-in |
| 12 | + mic), then a OnePole UG is used as a "leaky integrator" to keep a running |
| 13 | + estimate of the signal power. The main loop wakes up each 100 ms and |
| 14 | + checks the power, and prints out a message if it's over a certain level. |
| 15 | + You might need to change the threshold, but you get the idea. |
| 16 | +-----------------------------------------------------------------------------*/ |
14 | 17 |
|
15 | 18 | // patch
|
16 | 19 | adc => Gain g => OnePole p => blackhole;
|
|
0 commit comments