Oscillators

What is the best way to implement oscillator that outputs a selected waveform as audio eg: an oscillator that has a choice of waveform like sine saw square and so on

https://docs.juce.com/master/classdsp_1_1Oscillator.html