It is ridiculously easy to generate any audio signal using Python

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

Screenshot from 2017-06-09 20:58:55

 

Link to code : GitHub

You can find a list of other waveforms that can be generated using SciPy here

Advertisements

7 thoughts on “It is ridiculously easy to generate any audio signal using Python

  1. The code shown here does not generate wav files.
    The wav file format is not just a collection of samples. It is a collection of chunks of data. One of these chunks contains samples.

    Like

  2. Pingback: Import Python: import python weekly Issue No 130 – fast sudoku solver, colorama, ShutIt, audio analysis and more | Adrian Tudor Web Designer and Programmer

  3. Pingback: Simple Wave Generation in Python (and SciPy) | Hackaday

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s