This project has moved. For the latest updates, please go here.

Dynamic Modulation of Sine Waves

Feb 14, 2013 at 9:44 PM
Can I create sinewaves that are modulated with slider UI control and output in real time? I've written single sine wave data into wave file but never output dynamically.

Thank you
Feb 15, 2013 at 10:42 AM
You can just put the sine wave provider into WaveOut, and it will play in real-time. (latency won't be particularly great though - probably 200ms or so).

For smooth frequency transitions, you need to implement a glide/portamento algorithm, or there will be jumps in the sine wave. If you do a google search, you should find some discussion of algorithms. In the future I hope to write a blog-post on how to do this, as I have done something similar using wavetables in the past.
Feb 15, 2013 at 1:20 PM
I see. For now latency should not be an issue. I will try utilizing WaveOut - thank you!