Sine Wave Period Clipping

Topics: Audio, Host Processing, Plugin Development
Apr 10, 2011 at 11:26 PM

I am creating a synth in VST.NET, and when I process my noteOn event with a simple sine wave, i get a constant horizontal clipping sound. It seems like the waveform is prematurely ended in the middle of the sample buffer. When this buffer is output repeatedly (until the note Off event occurs), I end up with a bunch of sine wave segments instead of a continuous sine wave. Is this something anyone has run into before, and does anyone have any idea of how to solve this?

Thanks.

Jake