source: python/README.md @ 4da317c

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5
Last change on this file since 4da317c was 4da317c, checked in by Paul Brossier <piem@piem.org>, 6 years ago

[doc] remove installation instructions from python/README.md

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[f719589]1Python aubio module
2===================
3
[e794a80]4This module wraps the aubio library for Python using the numpy module.
[f719589]5
[7f82f81]6Finding some inspiration
7------------------------
8
9Some examples are available in the `python/demos` directory. These scripts are
10small programs written in python and using python-aubio.
11
12For instance, `demo_source.py` reads a media file.
13
14    $ ./python/demos/demo_source.py /path/to/sound/sample.wav
15
16and `demo_timestretch_online.py` stretches the original file into a new one:
17
18    $ ./python/demo/demo_timestretch_online.py loop.wav stretched_loop.wav 0.92`
19
20Note: you might need to install additional modules to run some of the demos.
21Some demos use [matplotlib](http://matplotlib.org/) to draw plots, others use
22[PySoundCard](https://github.com/bastibe/PySoundCard) to play and record
23sounds.
24
25Testing the Python module
26-------------------------
27
[1154fd1]28Python tests are in `python/tests` and use the [nose2 python package][nose2].
29
[7f82f81]30To run the all the python tests, use the script:
31
32    $ ./python/tests/run_all_tests
33
34Each test script can also be called one at a time. For instance:
35
36    $ ./python/tests/test_note2midi.py -v
37
[1154fd1]38[nose2]: https://github.com/nose-devs/nose2
39
[e794a80]40For more information about how this module works, please refer to the [Python/C
41API Reference Manual] (http://docs.python.org/c-api/index.html) and the
42[Numpy/C API Reference](http://docs.scipy.org/doc/numpy/reference/c-api.html).
Note: See TracBrowser for help on using the repository browser.