This code is about 80% original. It is based on an example that was in the Windows 7 SDK examples on how to render audio using Core Audio API (WASAPI). I wanted to learn how to make a soft synth and modified the example so that I could listen to the soft synth in real time. So this code shows you how to make some soft synth modules, including an oscillator module that uses the PolyBlep Algorithm to supress aliasing, a Multimode filter, VCA, envelope generator and a mixer. It also has code to interface to a midi controller. I used a Launchkey25 from Novation. So there is a lot of things going on in this code. Hopefully, you will find it useful to modify to your own needs. Written in C++ and runs as a consol application.