Please help me understand how to make Unison

Hello friends everyone. I’m new to Juce. I want to make my first synthesizer, but I’m faced with the fact that I can’t figure out how to make the Unison functionality. I tried to copy oscillators, tried to find how to play different voices at the same time. But I couldn’t get any closer to a solution. Thank you in advance for your help in suggesting at least the direction in which to think.

You want to have multiple oscillator per voice, and slightly detune each oscillator. You can look at my VoicedStereoOscillator which wraps up multiple oscillators into 1 to support unison, detune & spread.

Also, look at my sample synth that supports pretty much everything you need for a basic synth: Gin/examples/Synth/Source at master · FigBug/Gin · GitHub


Thank you so much for your answer. I’ll try it.