In [1]:
%load_ext autoreload
%autoreload 2
import IPython.display as ipd
from instruments import *
sr = 44100
note = -12
duration = 1
decay = 0.98
x = karplus_strong_note(sr, note, duration, decay)
ipd.Audio(x, rate=sr)
Out[1]: