Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bmcfee/pyrubberband
python wrapper for rubberband
https://github.com/bmcfee/pyrubberband
audio nyucds python
Last synced: 23 days ago
JSON representation
python wrapper for rubberband
- Host: GitHub
- URL: https://github.com/bmcfee/pyrubberband
- Owner: bmcfee
- License: isc
- Created: 2015-03-02T16:33:48.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-09-30T17:52:15.000Z (about 1 month ago)
- Last Synced: 2024-10-04T23:49:16.160Z (about 1 month ago)
- Topics: audio, nyucds, python
- Language: Python
- Size: 83 KB
- Stars: 161
- Watchers: 5
- Forks: 22
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-python-scientific-audio - PyRubberband - Wrapper for [rubberband](http://breakfastquay.com/rubberband/) to do pitch-shifting and time-stretching. (Audio Related Packages)
- project-awesome - bmcfee/pyrubberband - python wrapper for rubberband (Python)
README
# pyrubberband
[![PyPI](https://img.shields.io/pypi/v/pyrubberband.svg)](https://pypi.python.org/pypi/pyrubberband)
[![CI](https://github.com/bmcfee/pyrubberband/actions/workflows/ci.yml/badge.svg)](https://github.com/bmcfee/pyrubberband/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/bmcfee/pyrubberband/badge.svg?branch=testing&service=github)](https://coveralls.io/github/bmcfee/pyrubberband?branch=testing)
[![GitHub license](https://img.shields.io/github/license/bmcfee/pyrubberband.svg)]()
[![Documentation Status](https://readthedocs.org/projects/pyrubberband/badge/?version=latest)](http://pyrubberband.readthedocs.org/en/latest/?badge=latest)A python wrapper for [rubberband](http://breakfastquay.com/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.Install Rubberband on OS X
--------------------------```
brew install https://gist.githubusercontent.com/faroit/b67c1708cdc1f9c4ddc9/raw/942bbedded22f05abab0d09b52383e7be4aee237/rubberband.rb
```Example usage
-------------```python
>>> import soundfile as sf
>>> import pyrubberband as pyrb
>>> # Read mono wav file
>>> y, sr = sf.read("test.wav")
>>> # Play back at double speed
>>> y_stretch = pyrb.time_stretch(y, sr, 2.0)
>>> # Pass rbargs supported in Rubberband CLI. See(rubberband -h or https://breakfastquay.com/rubberband/usage.txt)
>>> y_stretch = pyrb.time_stretch(y, sr, 2.0, rbargs={'-c':'5', '--no_transients':''})
```