4 Installing aubio with pip
5 -------------------------
14 From ``aubio`` source directory, run the following:
20 $ sudo ./setup.py install
25 Once you have python-aubio installed, you should be able to run ``python -c
31 Here is a very simple script
32 to read all the samples from a media file:
34 .. code-block:: python
36 #! /usr/bin/env python
39 s = aubio.source(sys.argv[1], 0, 256)
45 Filtering an input sound file
46 .............................
48 Here is a more complete example, `demo_filter.py`_. This files executes the following:
50 * read an input media file (``aubio.source``)
52 * filter it using an A-weighting filter (``aubio.digital_filter``)
54 * write result to a new file (``aubio.sink``)
56 .. literalinclude:: ../python/demos/demo_filter.py
62 Check out the `python demos folder`_ for more examples.
67 A number of `python tests`_ are provided. To run them, use
68 ``python/tests/run_all_tests``.
70 .. _python tests folder: https://github.com/aubio/aubio/blob/master/python/tests
71 .. _python demos folder: https://github.com/aubio/aubio/blob/master/python/demos
72 .. _demo_filter.py: https://github.com/aubio/aubio/blob/master/python/demos/demo_filter.py