I remember learning in the Analog Electronics class about all types of filters. Then we actually constructed these filters. As you can imagine, it's much easier to make a filter in software than in hardware.
We will build a filter and apply it to an audio fragment that we will download. We have done some of these steps before in this chapter, so we will leave out those parts.
The iirdesign()
function, as its name suggests, allows us to construct several types of analog and digital filters. It can be found in the scipy.signal
module. This module contains a comprehensive list of signal processing functions:
Design the filter with the
iirdesign()
function of thescipy.signal
module. IIR stands for infinite impulse response; for more information, see http://en.wikipedia.org/wiki/Infinite_impulse_response. We are not going to go into all the details of theiirdesign()
function. Take a look at the documentation at http://docs.scipy.org/doc/scipy/reference...