In [3]:
%matplotlib inline
import seaborn
import numpy, scipy, matplotlib.pyplot as plt, IPython.display as ipd
import librosa, librosa.display
plt.rcParams['figure.figsize'] = (14, 5)

Harmonic-Percussive Source Separation¶

Load two files: one harmonic, and one percussive.

In [24]:
xh, sr_h = librosa.load('audio/prelude_cmaj.wav', duration=7, sr=None)
In [25]:
ipd.Audio(xh, rate=sr)
Out[25]:
In [26]:
xp, sr_p = librosa.load('audio/125_bounce.wav', duration=7, sr=None)
In [27]:
ipd.Audio(xp, rate=sr)
Out[27]: