Source code is hosted at https://github.com/twolights/ntpu-dsp-homework3
- Python 3.8+ (only tested on 3.8.18 though)
- NumPy
- matplotlib
- virutalenv
- pip
- Setup virtualenv
# virtualenv `which python3` env
- Activate virtualenv
# . env/bin/activate
- Install dependency packages
# pip install -r requirements.txt
All output images/CSV's will be located in the "output" directory
- 1 & 2
# python3 main-plot.py gen
This will output impulse response & frequency magnitude of low-pass filter for each order M
- 3
# python3 main-wav.py
This will generate original & filtered WAV file and head/tail transient state graph for each order M
- 5
# python3 main-min-phase.py
This will generate a graph that compares the impulse response of linear and minimum phase.
- Conclusion
Please refer to the attached PDF for assignment recap