Python, Signal Processing, Music, Editors Pick, Hands On Tutorials.
determines the quality of sound, and amplitude determines the volume. A sample rate of 44.1KHz (44,100 samples per second) is quite common for consumer audio. Using the two functions above and Scipy’s wavfile module, we can create a .wav file of middle C. And here’s the output audio. Making