- Timestamp:
- Oct 31, 2018, 4:25:09 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:
- f214e9c
- Parents:
- 68daf5b
- Location:
- doc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/python.rst
r68daf5b rf8bf0c2 8 8 we follow numpy type docstrings, see: 9 9 https://numpydoc.readthedocs.io/en/latest/format.html#docstring-standard 10 .. 11 note: we do not import aubio's docstring, which will be displayed from an 12 interpreter. 13 14 .. .. automodule:: aubio 15 10 16 11 17 .. _python: … … 14 20 ==================== 15 21 22 This module provides a number of classes and functions for the analysis of 23 music and audio signals. 16 24 17 .. midiconv.py 25 Contents 26 -------- 18 27 19 .. autofunction:: note2midi 28 .. toctree:: 29 :maxdepth: 1 20 30 21 .. autofunction:: midi2note 31 py_examples 32 py_datatypes 33 py_io 34 py_utils 22 35 23 .. autofunction:: freq2note 36 Introduction 37 ------------ 24 38 25 .. autofunction:: note2freq 39 This document provides a reference guide. For documentation on how to 40 install aubio, see :ref:`python-install`. 26 41 27 .. slicing.py 42 Examples included in this guide and within the code are written assuming 43 both `aubio` and `numpy`_ have been imported: 28 44 29 .. autofunction:: slice_source_at_stamps 45 .. code-block:: python 46 47 >>> import aubio 48 >>> import numpy as np 49 50 `Changed in 0.4.8` : Prior to this version, almost no documentation was 51 provided with the python module. This version adds documentation for some 52 classes, including :class:`fvec`, :class:`cvec`, :class:`source`, and 53 :class:`sink`. 54 55 .. _numpy: https://www.numpy.org -
doc/python_module.rst
r68daf5b rf8bf0c2 26 26 $ sudo ./setup.py install 27 27 28 Using aubio in python29 --------------------- 28 Checking your installation 29 -------------------------- 30 30 31 31 Once the python module is installed, its version can be checked with: … … 41 41 $ aubio -h 42 42 43 A simple example44 ................45 46 Here is a :download:`simple script <../python/demos/demo_source_simple.py>`47 that reads all the samples from a media file:48 49 .. literalinclude:: ../python/demos/demo_source_simple.py50 :language: python51 52 Filtering an input sound file53 .............................54 55 Here is a more complete example, :download:`demo_filter.py56 <../python/demos/demo_filter.py>`. This files executes the following:57 58 * read an input media file (``aubio.source``)59 60 * filter it using an `A-weighting <https://en.wikipedia.org/wiki/A-weighting>`_61 filter (``aubio.digital_filter``)62 63 * write result to a new file (``aubio.sink``)64 65 .. literalinclude:: ../python/demos/demo_filter.py66 :language: python67 68 More demos69 ..........70 71 Check out the `python demos folder`_ for more examples.72 43 73 44 Python tests … … 77 48 ``python/tests/run_all_tests``. 78 49 79 .. _python demos folder: https://github.com/aubio/aubio/blob/master/python/demos80 50 .. _demo_filter.py: https://github.com/aubio/aubio/blob/master/python/demos/demo_filter.py 81 51 .. _python tests: https://github.com/aubio/aubio/blob/master/python/tests
Note: See TracChangeset
for help on using the changeset viewer.