π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Add missing "format" argument to example.
Peter Sobot8e3e99a894f1
diff --git a/pedalboard/io/AudioFileInit.h b/pedalboard/io/AudioFileInit.hindex 05a4404..6f8559c 100644--- a/pedalboard/io/AudioFileInit.h+++ b/pedalboard/io/AudioFileInit.h@@ -91,7 +91,7 @@ Writing an audio file on disk::Writing encoded audio to a file-like object::wav_buffer = io.BytesIO()- with AudioFile(wav_buffer, "w", samplerate=44100, num_channels=2) as f:+ with AudioFile(wav_buffer, "w", samplerate=44100, num_channels=2, format="wav") as f:f.write(np.random.rand(2, 44100))wav_buffer.getvalue() # do something with the file-like object@@ -256,4 +256,4 @@ inline void init_audio_file(py::arg("bit_depth") = 16, py::arg("quality") = py::none(),py::arg("format") = py::none());}-} // namespace Pedalboard\ No newline at end of file+} // namespace Pedalboard