Tom Says: Safe code is boring code! Why??
Previous page:
About
Next page:
Daily Crap 2009-07-26
How about some fun with vowel formants?
Noise n => BiQuad bq1 => BiQuad bq2 => dac;
.9 => bq1.prad => bq2.prad;
fun void modpole(BiQuad b, float end, dur len) {
b.pfreq() => float start;
for(now => time t; now - t < len; 200::ms => now) {
(end - start) * (now - t) / len + start => b.pfreq;
}
}
// i
<<< "i", "" >>>;
320 => bq1.pfreq;
2500 => bq2.pfreq;
1::second => now;
// u
<<< "i -> u", "" >>>;
modpole(bq2, 800, 3::second);
// a
<<< "u -> a", "" >>>;
spork ~ modpole(bq1, 1000, 3::second);
spork ~ modpole(bq2, 1400, 3::second);
3::second => now;Response will be mixed when played for a boat of high school students:
Posted Jul 24, 2009, in the late, late night. Updated updated Jul 25, 2009, in the night.