Spectrogram
The Spectrogram class computes and stores a short-time Fourier
transform (STFT) spectrogram from a Sound
object. It provides methods for computing the spectrogram with configurable
window length, overlap, and FFT size; applying frequency-domain denoising
(median equaliser); converting between linear and decibel scales; and
generating plots. The computed time–frequency representation is stored as a
2-D NumPy array together with the corresponding time and frequency axes.