spotify / pedalboard

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

Add variable time-stretching and pitch-shifting. #334

Closed psobot closed 3 months ago

psobot commented 4 months ago

This PR adds the ability to pass arrays to the stretch_factor or pitch_shift_in_semitones arguments of the time_stretch function. Passing arrays for these arguments will update the values of the time stretch and pitch shift factors over the duration of the time_stretch call, allowing for dynamic adjustment of the time-stretch and pitch-shift operations.