ref: 926f0f6b4b495cd896b08529dd451326c81350e9
dir: /python/README/
Python aubio module
===================
This module wraps the aubio library for python using the numpy module.
See the [Python/C API Reference
Manual] (http://docs.python.org/c-api/index.html) and the [Numpy/C API
Reference](http://docs.scipy.org/doc/numpy/reference/c-api.html)
Compiling python aubio
----------------------
You should be able to build the aubio python module out of the box:
$ python setup.py build
To use the python module without installing it, set PYTHONPATH:
$ export PYTHONPATH=$PYTHONPATH:$PWD/`ls -rtd build/lib.* | head -1`:$PWD/tests
And LD_LIBRARY_PATH:
$ export LD_LIBRARY_PATH=$PWD/../build/src
Or on macosx systems:
$ export DYLD_LIBRARY_PATH=$PWD/../build/src
The you should be able to run the tests:
$ ./tests/run_all_tests
And to try out the demos:
$ ./demos/demo_source.wav ~/test.wav
Additional tools
----------------
To use some of the demo scripts, you will need
[matplotlib](http://matplotlib.org/).