A python wrapper for rubberband.
For now, this just provides lightweight wrappers for pitch-shifting and time-stretching.
All processing is done via the command-line through files on disk. In the future, this could be improved by directly wrapping the C library instead.
>>> import librosa >>> import pyrubberband as pyrb >>> y, sr = librosa.load(librosa.util.example_audio_file()) >>> # Play back at double speed >>> y_stretch = pyrb.time_stretch(y, sr, 2.0) >>> # Play back two semi-tones higher >>> y_shift = pyrb.pitch_shift(y, sr, 2)