/usr/share/doc/chuck/examples/basic/wind.ck is in chuck 1.2.0.8.dfsg-1.4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | // noise generator, biquad filter, dac (audio output)
Noise n => BiQuad f => dac;
// set biquad pole radius
.99 => f.prad;
// set biquad gain
.05 => f.gain;
// set equal zeros
1 => f.eqzs;
// our float
0.0 => float t;
// infinite time-loop
while( true )
{
// sweep the filter resonant frequency
100.0 + Std.fabs(Math.sin(t)) * 1000.0 => f.pfreq;
t + .01 => t;
// advance time
100::ms => now;
}
|