Skip to content

Commit cfa7432

Browse files
committed
comment examples/deep/follower.ck
1 parent d9fb03a commit cfa7432

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

examples/deep/follower.ck

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
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+
-----------------------------------------------------------------------------*/
1417

1518
// patch
1619
adc => Gain g => OnePole p => blackhole;

0 commit comments

Comments
 (0)