Now it comes as a surprise to many people when I tell them that generating an audio waveform is extremely simple.
One needs to have basic understanding on how audio signals work and basic python programming to generate any audio wave form. This post will show you exactly how.
Python packages needed: Numpy, Scipy
Link to code : GitHub
You can find a list of other waveforms that can be generated using SciPy here