c++ port of v2 synthesizer