# Get thinkdsp.py import os if not os.path.exists('thinkdsp.py'): !wget https://github.com/AllenDowney/ThinkDSP/raw/master/code/thinkdsp.py
import numpy as np import matplotlib.pyplot as plt from thinkdsp import decorate
This notebook investigates autocorrelation, pitch perception and a phenomenon called the "missing fundamental".
I'll start with a recording of a saxophone.
if not os.path.exists('100475__iluppai__saxophone-weep.wav'): !wget https://github.com/AllenDowney/ThinkDSP/raw/master/code/100475__iluppai__saxophone-weep.wav
from thinkdsp import read_wave wave = read_wave('100475__iluppai__saxophone-weep.wav') wave.normalize() wave.make_audio()