Paul Brossierpython/README: improve1e18df612 years agoHistory
73 lines · 2.1 KB · Text
RawDownload
Python aubio module=================== This module wraps the aubio library for Python using the numpy module. Before compiling this module, you must have compiled libaubio. For more information about how this module works, please refer to the [Python/CAPI 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---------------------- After libaubio has been build successfully, and provided Python developmentheaders and numpy can be found on your system, you should be able to build theaubio Python module:     $ ./setup.py build To find out more about `setup.py` options:     $ ./setup.py --help Installing---------- To install the Python module:     $ ./setup.py install Using the Python module----------------------- Once the aubio library and the Python module are installed, you will be able toimport the aubio module:     $ python    [...]    >>> import aubio    >>> Alternatively, you may want to use the Python module without installing it bysetting PYTHONPATH:     $ export PYTHONPATH=$PYTHONPATH:$PWD/`ls -rtd build/lib.* | head -1`:$PWD/tests Similarly, you can use the aubio module without installing libaubio by pointingLD_LIBRARY_PATH to the path libaubio can be found at:     $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:PWD/../build/src Or on Mac OS X systems, setting DYLD_LIBRARY_PATH:     $ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/../build/src Testing the Python module------------------------- Once both the C library and the Python module have been built correctly, andafter you have installed them (or setting the environment variable correctly),you should be able to run the tests:     $ ./tests/run_all_tests And to try out the demos:     $ ./demos/demo_source.wav /path/to/sound/sample.wav You need to install additional modules to run some of the demos. Forinstance, several demos use [matplotlib](http://matplotlib.org/) to draw plots.Some more demos use [PySoundCard](https://github.com/bastibe/PySoundCard) toplay and record sounds.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t