Changeset 4da317c
- Timestamp:
- Nov 21, 2018, 4:39:53 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 0c18603
- Parents:
- 43885a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/README.md
r43885a7 r4da317c 3 3 4 4 This module wraps the aubio library for Python using the numpy module. 5 6 Using the Python aubio module7 -----------------------------8 9 After installing python-aubio, you will be able to import the aubio module:10 11 $ python12 [...]13 >>> import aubio14 >>> help(aubio.miditofreq)15 5 16 6 Finding some inspiration … … 48 38 [nose2]: https://github.com/nose-devs/nose2 49 39 50 Install in a virtualenv51 -----------------------52 53 You should be able to install python-aubio directly from the top source54 directory of aubio.55 56 First, create a virtualenv to hold the required python module:57 58 $ virtualenv pyaubio59 $ source pyaubio/bin/activate60 61 Now install and build the python extension using:62 63 $ pip install .64 65 Install requirements66 --------------------67 68 Before compiling this module, you must have compiled libaubio.69 70 A simple way to do this is with pip:71 72 $ pip install -r requirements.txt73 74 40 For more information about how this module works, please refer to the [Python/C 75 41 API Reference Manual] (http://docs.python.org/c-api/index.html) and the 76 42 [Numpy/C API Reference](http://docs.scipy.org/doc/numpy/reference/c-api.html). 77 78 Compiling python aubio79 ----------------------80 81 To build the aubio Python module, run the following command from the top source82 directory of aubio:83 84 $ ./setup.py build85 86 Note: if libaubio was previously built using waf, the script will use it.87 Otherwise, the entire library will be built inside the python extension.88 89 To find out more about `setup.py` options:90 91 $ ./setup.py --help92 93 Installing94 ----------95 96 To install the Python module:97 98 $ ./setup.py install99 100 Alternatively, you may want to use the Python module without installing it by101 setting your PYTHONPATH, for instance as follows:102 103 $ export PYTHONPATH=$PYTHONPATH:$PWD/`ls -rtd build/lib.* | head -1`:$PWD/tests104
Note: See TracChangeset
for help on using the changeset viewer.