π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Add num_channels to first example to support stereo audio.
Peter Sobotbb90c7279bb8
diff --git a/README.md b/README.mdindex c6b69fb..752d3ac 100644--- a/README.md+++ b/README.md@@ -108,7 +108,7 @@ board = Pedalboard([Chorus(), Reverb(room_size=0.25)])effected = board(audio, samplerate)# Write the audio back as a wav file:-with AudioFile('processed-output.wav', 'w', samplerate) as f:+with AudioFile('processed-output.wav', 'w', samplerate, effected.shape[0]) as f:f.write(effected)```@@ -146,7 +146,7 @@ board[0].threshold_db = -40effected = board(audio, samplerate)# Write the audio back as a wav file:-with AudioFile('processed-output.wav', 'w', samplerate) as f:+with AudioFile('processed-output.wav', 'w', samplerate, effected.shape[0]) as f:f.write(effected)```