[doc] move python tests from python/README.md to doc/python_module.rst
[aubio.git] / python / README.md
1 aubio
2 =====
3
4 aubio is a collection of tools for music and audio analysis.
5
6 This package integrates the aubio library with [NumPy] to provide a set of
7 efficient tools to process and analyse audio signals, including:
8
9 - read audio from any media file, including videos and remote streams
10 - high quality phase vocoder, spectral filterbanks, and linear filters
11 - Mel-Frequency Cepstrum Coefficients and standard spectral descriptors
12 - detection of note attacks (onset)
13 - pitch tracking (fundamental frequency estimation)
14 - beat detection and tempo tracking
15
16 aubio works with both Python 2 and Python 3.
17
18 Built with
19 ----------
20
21 The core of aubio is written in C for portability and speed. In addition to
22 [NumPy], aubio can be optionally built to use one or more of the following
23 libraries:
24
25 - media file reading:
26
27     - [ffmpeg](https://ffmpeg.org) / [avcodec](https://libav.org) to decode and
28       read audio from almost any format,
29     - [libsndfile](http://www.mega-nerd.com/libsndfile/) to read audio from
30       uncompressed sound files,
31     - [libsamplerate](http://www.mega-nerd.com/SRC/) to re-sample audio signals
32     - [CoreAudio](https://developer.apple.com/reference/coreaudio) to read all
33       media files supported natively on macOS, iOS, and tvOS.
34
35 - hardware acceleration:
36
37     - [Atlas](http://math-atlas.sourceforge.net/) and
38       [Blas](https://en.wikipedia.org/wiki/Basic_Linear_Algebra_Subprograms),
39       for accelerated vector and matrix computations,
40     - [fftw3](http://fftw.org), to compute fast Fourier Transforms of any size.
41     - [Accelerate](https://developer.apple.com/reference/accelerate) for
42       hardware accelerated FFT and matrix computations on macOs and iOS,
43     - [Intel IPP](https://software.intel.com/en-us/intel-ipp), accelerated
44       vector computation and FFT implementation,
45
46 Documentation
47 -------------
48
49 - [module documentation][doc_python]
50 - [installation][doc_python_install]
51 - [aubio manual][manual]
52 - [aubio homepage][homepage]
53
54 [manual]: https://aubio.org/manual/latest/
55 [doc_python]: https://aubio.org/manual/latest/python.html
56 [doc_python_install]: https://aubio.org/manual/latest/python_module.html
57 [homepage]: https://aubio.org
58 [NumPy]: https://www.numpy.org
59
60 Finding some inspiration
61 ------------------------
62
63 Some examples are available in the `python/demos` directory. These scripts are
64 small programs written in python and using python-aubio.
65
66 For instance, `demo_source.py` reads a media file.
67
68     $ ./python/demos/demo_source.py /path/to/sound/sample.wav
69
70 and `demo_timestretch_online.py` stretches the original file into a new one:
71
72     $ ./python/demo/demo_timestretch_online.py loop.wav stretched_loop.wav 0.92`
73
74 Note: you might need to install additional modules to run some of the demos.
75 Some demos use [matplotlib](http://matplotlib.org/) to draw plots, others use
76 [PySoundCard](https://github.com/bastibe/PySoundCard) to play and record
77 sounds.
78
79 For more information about how this module works, please refer to the [Python/C
80 API Reference Manual] (http://docs.python.org/c-api/index.html) and the
81 [Numpy/C API Reference](http://docs.scipy.org/doc/numpy/reference/c-api.html).