repo.or.cz
/
chuck-blob.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
*** empty log message ***
[chuck-blob.git]
/
v2
/
examples
/
filter
/
rlp.ck
blob
d9d718b65d4d38e29f8fa2b76bcf2b65280ce995
1
// our patch
2
SqrOsc so => LPF f => dac;
3
4
// set osc frequency
5
50 => so.freq;
6
// set Q
7
10 => f.Q;
8
// set gain
9
.5 => f.gain;
10
11
// infinite time-loop
12
float t;
13
while( true )
14
{
15
// sweep the cutoff
16
100 + Std.fabs(Math.sin(t)) * 5000 => f.freq;
17
// increment t
18
.005 +=> t;
19
// advance time
20
5::ms => now;
21
}