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
/
basic
/
wind.ck
blob
1781803d487c2b31e83ddc551d597a2d71b13bfa
1
// noise generator, biquad filter, dac (audio output)
2
Noise n => BiQuad f => dac;
3
// set biquad pole radius
4
.99 => f.prad;
5
// set biquad gain
6
.05 => f.gain;
7
// set equal zeros
8
1 => f.eqzs;
9
// our float
10
0.0 => float t;
11
12
// infinite time-loop
13
while( true )
14
{
15
// sweep the filter resonant frequency
16
100.0 + Std.fabs(Math.sin(t)) * 15000.0 => f.pfreq;
17
t + .01 => t;
18
// advance time
19
5::ms => now;
20
}