spotify / pedalboard

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

Speed up or slow down? #165

Closed vmoffset closed 1 year ago

vmoffset commented 2 years ago

Hello thanks for this awesome project I can't find the change speed method in the pedalboard API, its a crucial part for music editing is it available and I'm missing it? if so how do you do it for example change music speed to 1.25 speed Thanks for the help

psobot commented 2 years ago

Hi @youreadytogo,

Pedalboard doesn't currently contain a time-stretching plugin (although it does provide a PitchShift plugin). There may be third-party VST3 and Audio Unit plugins that do time stretching, and which you can use in Pedalboard with load_plugin.

If you're a C++ developer, the existing PitchShift plugin is built around Chris Cannam's Rubber Band library, which supports time stretching out-of-the-box. Integrating that into a native Pedalboard plugin would be possible without needing to include another library.