plotPowerSpectrum¶
- maelzel.snd.plotting.plotPowerSpectrum(samples, samplerate, framesize=2048, window=('kaiser', 9), axes=None, figsize=(24, 4))[source]¶
Plot the power spectrum of a sound
- Parameters:
samples (
ndarray
) – the samples to plotsamplerate (
int
) – the sr of thesamplesframesize – the bigger the frame size, the smoother the plot
window (
Union
[str
,tuple
[str
,float
]]) – As passed to scipy.signal.get_window. One of “blackman”, “hamming”, “hann”, “bartlett”, “flattop”, “parzen”, “bohman”, “blackmanharris”, “nuttall”, “barthann”, “kaiser” (needs beta), “gaussian” (needs standard deviation)axes (
Optional
[Axes
]) – the axes to plot to
- Return type:
Axes