☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
filter
/
bpf.ck
☽
☼
examples/filter/bpf.ck
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
// BPF is a band-pass filter
2
Noise n => BPF f => dac;
3
4
// set filter Q
5
1 => f.Q;
6
7
// infinite time-loop
8
while( true )
9
{
10
// sweep the cutoff
11
100 + Math.fabs(Math.sin(now/second)) * 5000 => f.freq;
12
// advance time
13
5::ms => now;
14
}