acids-ircam / ddsp_pytorch

Implementation of Differentiable Digital Signal Processing (DDSP) in Pytorch
Apache License 2.0
451 stars 56 forks source link

Proposed fix for a "preprocess()" bug #38

Open sharp-trickster opened 1 year ago

sharp-trickster commented 1 year ago

x, sr = li.load(f, sampling_rate) throws "TypeError: load() takes 1 positional argument but 2 were given"

I fixed mine by explicitly declaring the variable, as the example in the librosa docs: x, sr = li.load(f, sr=sampling_rate)

its a simple fix, so, you might consider updating it. Thanks.