Skip to content

πŸŽ› πŸ”Š A Python library for audio.

Update readme example.

Peter Sobotf025999024ad
diff --git a/README.md b/README.md
index 245d236..8b92414 100644
--- a/README.md
+++ b/README.md
@@ -90,10 +90,10 @@ with AudioFile('some-file.wav') as f:
# Read one second of audio at a time, until the file is empty:
while f.tell() < f.frames:
- chunk = f.read(f.samplerate)
+ chunk = f.read(int(f.samplerate))
# Run the audio through our pedalboard:
- effected = board(chunk, samplerate, reset=False)
+ effected = board(chunk, f.samplerate, reset=False)
# Write the output to our output file:
o.write(effected)