In most programs one can change the wave of the instrument. it is not possible if we are getting the wave from different functions. So i have made a osc function that takes time, frequency and type as arguments and matches through types and returns the waveform. It is named as OSC to represent a oscillator(Used in other softwares) and for easiness.
OSC
I have changed the Waveforms class to OSC class.
In most programs one can change the wave of the instrument. it is not possible if we are getting the wave from different functions. So i have made a osc function that takes time, frequency and type as arguments and matches through types and returns the waveform. It is named as OSC to represent a oscillator(Used in other softwares) and for easiness.