While attempting use POE, PDL, and Audio::SoundFile together to write a software synthesizer in Perl, I ran into what is definitely some sort of bug(s); it is generating not the 440 Hz sine wave I expect, but instead a different tone, not a sine wave, plus some garbage at the end; not only that, but when it exits, it segfaults. I cannot seem to find the responsible bug(s), and therefore post the code here: Ky.pm and ky.pl. So is it a bug in my code? Or somewhere else?
Edit 2001-12-04 by dvergin to repair second link</link>