source: doc/python_module.rst @ 241e2fb

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 241e2fb was 241e2fb, checked in by Paul Brossier <piem@piem.org>, 8 years ago

doc/python_module.rst: add note on pip, clean and remove cd python

  • Property mode set to 100644
File size: 753 bytes

aubio Python module

Installing with pip

$ pip install aubio

Building the module

From aubio source directory, run the following:

$ ./setup.py clean
$ ./setup.py build
$ sudo ./setup.py install

Using the module

To use the python module, simply import aubio:

#! /usr/bin/env python
import aubio
s = aubio.source(sys.argv[1], 0, 256)
while True:
  samples, read = s()
  print samples
  if read < 256: break

Check out the python demos for aubio for more examples.

Note: See TracBrowser for help on using the repository browser.