π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Lower tolerance in pitch shift latency test.
Peter Sobot2b4bae3a2202
diff --git a/tests/test_pitch_shift.py b/tests/test_pitch_shift.pyindex 0298aff..293f972 100644--- a/tests/test_pitch_shift.py+++ b/tests/test_pitch_shift.py@@ -59,4 +59,4 @@ def test_pitch_shift_latency_compensation(semitones, fundamental_hz, sample_ratesine_wave = np.sin(2 * np.pi * fundamental_hz * samples / sample_rate)plugin = Pedalboard([PitchShift(semitones), PitchShift(-semitones)])output = plugin.process(sine_wave, sample_rate, buffer_size=buffer_size)- np.testing.assert_allclose(sine_wave, output, rtol=0.01, atol=0.01)+ np.testing.assert_allclose(sine_wave, output, atol=1e-6)