plotMelSpectrogram¶
- maelzel.snd.plotting.plotMelSpectrogram(samples, sr, fftsize=2048, overlap=4, winsize=None, axes=None, setlabel=False, nmels=128, cmap='magma', figsize=(24, 8), minfreq=0, maxfreq=16000)[source]¶
Plot a mel spectrogram
- Parameters:
samples (
ndarray
) – the samplessr (
int
) – the sampleratefftsize – fft size
overlap – number of overlaps per window
winsize (
Optional
[int
]) – window size in samples (defaults to fftsize)axes – if given, use this axdes to plot into
setlabel – a label to pass to specshow
nmels – number of mel bands
cmap – the color map used
figsize – the figure size as a tuplet (width, height). Only used if axes is None
minfreq – the min. freq of the mel spectrum
maxfreq – the max. freq of the mel spectrum
- Return type:
Axes
- Returns:
the axes used