loopyng.utils.plotting
Plot utilities for visualizing audio waveforms and spectrograms.
Provides functions for displaying waveforms with proper time axes and playback options.
- loopyng.utils.plotting.disp_wf(wf, sr=44100, autoplay=False, wf_plot_func='specgram')[source]
Plot a waveform and return an IPython Audio widget for it.
- Parameters:
wf – The waveform to display
sr – Sample rate
autoplay – Whether the returned Audio widget should play immediately
wf_plot_func – Plotting function, or the name of a
matplotlib.pylabone (default:"specgram"). PassNoneto skip plotting.
Needs the
vizextra to plot and thenotebookextra for the widget.