This Python module defines a Waveform class with methods sinewave and noise. Sinewave generates a specified frequency and noise generates samples with specified standard deviation. The constructor requires the duration for both methods to be specified. Class variables are the sampling rate and the number of channels. The packed strings and the signal and noise lists are available. main() adds these and uses Bandpass (from bpf_class - Kaiser window response above) to filter the unpacked samples, using lfilter from audioop. Audio before and after filtering is played and recorded to file. #!/usr/bin/python import wave, struct, math, audioop from alsaaudio import * import signal, sys, getopt from numpy.random import normal from scipy.signal import lfilter from bpf_class import Bandpass class Waveform: " Waveform Class Generates different waveforms with duration (Sec) length " def __init__(self, duration): ...