spotify / pedalboard

🎛 🔊 A Python library for audio.
https://spotify.github.io/pedalboard
GNU General Public License v3.0
5.23k stars 262 forks source link

Quickstart example has a bug #186

Closed edgartanaka closed 1 year ago

edgartanaka commented 1 year ago

Hello!

I was running the quickstart example and I ran into 2 issues:

  1. f.read() expects an integer as a parameter but f.samplerate is a float. The ideal fix would probably be to set f.samplerate to be an integer.
  2. The variable samplerate is not set.

I provided a fixed version here which may be the quick solution. Let me know if you'd like me to open a PR.

Thanks! Edgar (MLE at Spotify)