Changes in / [f8d96f1:fbafd2c]
- Files:
-
- 5 added
- 1 deleted
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
rf8d96f1 rfbafd2c 39 39 python/*.wav 40 40 41 pip-delete-this-directory.txt 42 41 43 aubio-*.tar.bz2 42 44 aubio-*.zip 45 dist/*.tar.gz 43 46 44 47 # test sounds -
MANIFEST.in
rf8d96f1 rfbafd2c 1 1 include AUTHORS COPYING README.md VERSION ChangeLog 2 2 include python/README.md 3 include this_version.py 3 4 include Makefile wscript */wscript_build 4 5 include waf waflib/* waflib/*/* -
README.md
rf8d96f1 rfbafd2c 1 aubio library 2 ============= 1 aubio 2 ===== 3 4 [![Travis build status](https://travis-ci.org/aubio/aubio.svg?branch=master)](https://travis-ci.org/aubio/aubio "Travis build status") 5 [![Appveyor build status](https://ci.appveyor.com/api/projects/status/f3lhy3a57rkgn5yi?svg=true)](https://ci.appveyor.com/project/piem/aubio "Appveyor build status") 6 [![Landscape code health](https://landscape.io/github/aubio/aubio/master/landscape.svg?style=flat)](https://landscape.io/github/aubio/aubio/master "Landscape code health") 7 [![Documentation Status](https://readthedocs.org/projects/aubio/badge/?version=latest)](http://aubio.readthedocs.io/en/latest/?badge=latest "Documentation status") 8 [![Commits since last release](https://img.shields.io/github/commits-since/aubio/aubio/0.4.4.svg?maxAge=2592000)](https://github.com/aubio/aubio "Commits since last release") 3 9 4 10 aubio is a library to label music and sounds. It listens to audio signals and … … 51 57 - `aubiocut` slices sound files at onset or beat timestamps 52 58 53 Implementation and Design Basics54 --------------------------------55 56 The library is written in C and is optimised for speed and portability.57 58 The C API is designed in the following way:59 60 aubio_something_t * new_aubio_something (void * args);61 audio_something_do (aubio_something_t * t, void * args);62 smpl_t aubio_something_get_a_parameter (aubio_something_t *t);63 uint_t aubio_something_set_a_parameter (aubio_something_t *t, smpl_t a_parameter);64 void del_aubio_something (aubio_something_t * t);65 66 For performance and real-time operation, no memory allocation or freeing take67 place in the `_do` methods. Instead, memory allocation should always take place68 in the `new_` methods, whereas free operations are done in the `del_` methods.69 70 59 The latest version of the documentation can be found at: 71 60 … … 75 64 ------------------ 76 65 77 A number of distributions already include aubio. Check your favorite package78 management system, or have a look at the [download79 page](https://aubio.org/download).80 81 aubio uses [waf](https://waf.io/) to configure, compile, and test the source:82 83 ./waf configure84 ./waf build85 86 If waf is not found in the directory, you can download and install it with:87 88 make getwaf89 90 66 aubio compiles on Linux, Mac OS X, Windows, Cygwin, and iOS. 91 67 92 Installation 93 ------------ 68 To compile aubio, you should be able to simply run: 94 69 95 To install aubio library and headers on your system, use: 70 make 96 71 97 sudo ./waf install 72 To compile the python module: 98 73 99 To uninstall: 74 ./setup.py build 100 75 101 sudo ./waf uninstall 102 103 If you don't have root access to install libaubio on your system, you can use 104 libaubio without installing libaubio either by setting `LD_LIBRARY_PATH`, or by 105 copying it to `~/lib`. 106 107 On Linux, you should be able to set `LD_LIBRARY_PATH` with: 108 109 $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/src 110 111 On Mac OS X, a copy or a symlink can be made in `~/lib`: 112 113 $ mkdir -p ~/lib 114 $ ln -sf $PWD/build/src/libaubio*.dylib ~/lib/ 115 116 Note on Mac OS X systems older than El Capitan (10.11), the `DYLD_LIBRARY_PATH` 117 variable can be set as follows: 118 119 $ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/build/src 76 See also the [manual](https://aubio.org/manual/latest/) for more information 77 about [compiling](https://aubio.org/manual/latest/building.html) and 78 [installing](https://aubio.org/manual/latest/installing.html). 120 79 121 80 Credits and Publications -
doc/android.rst
rf8d96f1 rfbafd2c 1 1 .. _android: 2 2 3 Building aubio for Android4 ------------- -------------3 Android build 4 ------------- 5 5 6 6 To compile aubio for android, you will need to get the `Android Native -
doc/building.rst
rf8d96f1 rfbafd2c 21 21 The **latest stable release** can be downloaded from https://aubio.org/download:: 22 22 23 $ curl -O http://aubio.org/pub/aubio- 0.4.3.tar.bz224 $ tar xf aubio- 0.4.3.tar.bz225 $ cd aubio- 0.4.323 $ curl -O http://aubio.org/pub/aubio-<version>.tar.bz2 24 $ tar xf aubio-<version>.tar.bz2 25 $ cd aubio-<version>/ 26 26 27 27 Git repository … … 31 31 32 32 $ git clone git://git.aubio.org/git/aubio 33 $ cd aubio 33 $ cd aubio/ 34 34 35 35 The following command will fetch the correct `waf`_ version (not included in … … 74 74 $ waf configure build 75 75 76 77 Running as a user 78 ----------------- 79 80 To use aubio without actually installing, for instance if you don't have root 81 access to install libaubio on your system, 82 83 On Linux or macOS, sourcing the script ``scripts/setenv_local.sh`` should help:: 84 85 $ source ./scripts/setenv_local.sh 86 87 This script sets ``LD_LIBRARY_PATH``, for libaubio, and ``PYTHONPATH`` for the 88 python module. 89 90 On Linux, you should be able to set ``LD_LIBRARY_PATH`` with:: 91 92 $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/src 93 94 On Mac OS X, a copy or a symlink can be made in ``~/lib``:: 95 96 $ mkdir -p ~/lib 97 $ ln -sf $PWD/build/src/libaubio*.dylib ~/lib/ 98 99 Note on Mac OS X systems older than El Capitan (10.11), the ``DYLD_LIBRARY_PATH`` 100 variable can be set as follows:: 101 102 $ export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$PWD/build/src 103 76 104 Cleaning 77 105 -------- … … 95 123 .. _Git Bash: https://git-for-windows.github.io/ 96 124 97 .. toctree:: 98 :maxdepth: 2 125 .. _xcode-frameworks-label: 126 127 .. include:: xcode_frameworks.rst 128 129 .. include:: android.rst -
doc/cli.rst
rf8d96f1 rfbafd2c 4 4 ================== 5 5 6 A few simple command line tools are included along with the library. 6 The python module comes with the following tools: 7 8 - ``aubio`` estimate and extract descriptors from sound files 9 - ``aubiocut`` slices sound files at onset or beat timestamps 10 11 More command line tools are included along with the library. 7 12 8 13 - ``aubioonset`` outputs the time stamp of detected note onsets … … 14 19 - ``aubioquiet`` extracts quiet and loud regions 15 20 16 Additionally, the python module comes with the following script:17 21 18 - ``aubiocut`` slices sound files at onset or beat timestamps 22 ``aubio`` 23 --------- 24 25 .. literalinclude:: aubio.txt 26 :language: text 19 27 20 28 21 .. toctree:: 29 ``aubiocut`` 30 -------------- 22 31 23 cli_features 32 .. literalinclude:: aubiocut.txt 33 :language: text 24 34 25 35 … … 28 38 29 39 .. literalinclude:: aubioonset.txt 40 :language: text 30 41 31 42 ``aubiopitch`` … … 33 44 34 45 .. literalinclude:: aubiopitch.txt 46 :language: text 35 47 36 48 ``aubiomfcc`` … … 38 50 39 51 .. literalinclude:: aubiomfcc.txt 52 :language: text 40 53 41 54 ``aubiotrack`` … … 43 56 44 57 .. literalinclude:: aubiotrack.txt 58 :language: text 45 59 46 60 ``aubionotes`` … … 48 62 49 63 .. literalinclude:: aubionotes.txt 64 :language: text 50 65 51 66 ``aubioquiet`` … … 53 68 54 69 .. literalinclude:: aubioquiet.txt 70 :language: text 55 71 56 ``aubiocut``57 --------------58 72 59 .. literalinclude:: aubiocut.txt73 .. include:: cli_features.rst -
doc/cli_features.rst
rf8d96f1 rfbafd2c 1 1 Command line features 2 ===================== 2 --------------------- 3 3 4 4 +--------------+-------+-------+------+-------+-------+-------+------+------------------+ -
doc/conf.py
rf8d96f1 rfbafd2c 13 13 14 14 import sys, os 15 16 # get version using this_version.py 17 sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '..')) 18 from this_version import get_aubio_version 15 19 16 20 # If extensions (or modules to document with autodoc) are in another directory, … … 49 53 # 50 54 # The short X.Y version. 51 version = '0.4' 55 56 version = get_aubio_version()[:3] 52 57 # The full version, including alpha/beta/rc tags. 53 release = '0.4.5~alpha'58 release = get_aubio_version() 54 59 55 60 # The language for content autogenerated by Sphinx. Refer to documentation … … 65 70 # List of patterns, relative to source directory, that match files and 66 71 # directories to ignore when looking for source files. 67 exclude_patterns = ['_build'] 72 exclude_patterns = ['_build', 73 'statuslinks.rst', 74 'download.rst', 75 'binaries.rst', 76 'debian_packages.rst', 77 'building.rst', 78 'android.rst', 79 'xcode_frameworks.rst', 80 'requirements.rst', 81 'cli_features.rst', 82 ] 68 83 69 84 # The reST default role (used for this markup: `text`) to use for all documents. -
doc/develop.rst
rf8d96f1 rfbafd2c 4 4 ====================== 5 5 6 Read `Contribute`_ to report issues and request new features.6 Here is a brief overview of the C library. 7 7 8 See `Doxygen documentation`_ for the complete documentation of the C library, 9 built using `Doxygen <http://www.doxygen.org/>`_.8 For a more detailed list of available functions, see the `API documentation 9 <https://aubio.org/doc/latest/>`_. 10 10 11 Below is a brief `Library overview`_. 11 To report issues, ask questions, and request new features, use `Github Issues 12 <https://github.com/aubio/aubio/issues>`_ 12 13 13 Library overview 14 ------------- ---14 Design Basics 15 ------------- 15 16 16 Here is a brief overview of the C library. See also the `Doxygen 17 documentation`_ for a more detailed list of available functions. 17 The library is written in C and is optimised for speed and portability. 18 18 19 Vectors and matrix 20 `````````````````` 21 22 ``fvec_t`` are used to hold vectors of float (``smpl_t``). 23 24 .. literalinclude:: ../tests/src/test-fvec.c 25 :language: C 26 :lines: 7 27 19 All memory allocations take place in the `new_` methods. Each successful call 20 to `new_` should have a matching call to `del_` to deallocate the object. 28 21 29 22 .. code-block:: C 30 23 31 // set some elements 32 vec->data[511] = 2.; 33 vec->data[vec->length-2] = 1.; 24 // new_ to create an object foobar 25 aubio_foobar_t * new_aubio_foobar(void * args); 26 // del_ to delete foobar 27 void del_aubio_foobar (aubio_foobar_t * foobar); 34 28 35 Similarly, ``fmat_t`` are used to hold matrix of floats.29 The main computations are done in the `_do` methods. 36 30 37 .. literalinclude:: ../tests/src/test-fmat.c 38 :language: C 39 :lines: 9-19 31 .. code-block:: C 32 33 // _do to process output = foobar(input) 34 audio_foobar_do (aubio_foobar_t * foobar, fvec_t * input, cvec_t * output); 35 36 Most parameters can be read and written at any time: 37 38 .. code-block:: C 39 40 // _get_param to get foobar.param 41 smpl_t aubio_foobar_get_a_parameter (aubio_foobar_t * foobar); 42 // _set_param to set foobar.param 43 uint_t aubio_foobar_set_a_parameter (aubio_foobar_t * foobar, smpl_t a_parameter); 44 45 In some case, more functions are available: 46 47 .. code-block:: C 48 49 // non-real time functions 50 uint_t aubio_foobar_reset(aubio_foobar_t * t); 51 52 Basic Types 53 ----------- 54 55 .. code-block:: C 56 57 // integers 58 uint_t n = 10; // unsigned 59 sint_t delay = -90; // signed 60 61 // float 62 smpl_t a = -90.; // simple precision 63 lsmp_t f = 0.024; // double precision 64 65 // vector of floats (simple precision) 66 fvec_t * vec = new_fvec(n); 67 vec->data[0] = 1; 68 vec->data[vec->length-1] = 1.; // vec->data has n elements 69 fvec_print(vec); 70 del_fvec(vec); 71 72 // complex data 73 cvec_t * fftgrain = new_cvec(n); 74 vec->norm[0] = 1.; // vec->norm has n/2+1 elements 75 vec->phas[n/2] = 3.1415; // vec->phas as well 76 del_cvec(fftgrain); 77 78 // matrix 79 fmat_t * mat = new_fmat (height, length); 80 mat->data[height-1][0] = 1; // mat->data has height rows 81 mat->data[0][length-1] = 10; // mat->data[0] has length columns 82 del_fmat(mat); 83 40 84 41 85 Reading a sound file 42 ```````````````````` 43 In this example, ``aubio_source`` is used to read a media file. 86 -------------------- 44 87 45 First, create the objects we need. 88 In this example, `aubio_source <https://aubio.org/doc/latest/source_8h.html>`_ 89 is used to read a media file. 90 91 First, define a few variables and allocate some memory. 46 92 47 93 .. literalinclude:: ../tests/src/io/test-source.c … … 59 105 :lines: 40-44 60 106 61 At the end of the processing loop, clean-up and de-allocate memory:107 At the end of the processing loop, memory is deallocated: 62 108 63 109 .. literalinclude:: ../tests/src/io/test-source.c 64 110 :language: C 65 :lines: 5 0-56111 :lines: 55-56 66 112 67 113 See the complete example: :download:`test-source.c 68 114 <../tests/src/io/test-source.c>`. 69 115 70 Computing thespectrum71 `````````````````````` 116 Computing a spectrum 117 -------------------- 72 118 73 119 Now let's create a phase vocoder: … … 81 127 .. literalinclude:: ../tests/src/spectral/test-phasevoc.c 82 128 :language: C 83 :lines: 21-35 129 :lines: 20-37 130 131 Time to clean up the previously allocated memory: 132 133 .. literalinclude:: ../tests/src/spectral/test-phasevoc.c 134 :language: C 135 :lines: 39-44 84 136 85 137 See the complete example: :download:`test-phasevoc.c … … 91 143 --------------------- 92 144 93 The latest version of the doxygen documentation is available at: 145 The latest version of the API documentation is built using `Doxygen 146 <http://www.doxygen.org/>`_ and is available at: 94 147 95 https://aubio.org/doc/latest 148 https://aubio.org/doc/latest/ 96 149 97 150 Contribute … … 100 153 Please report any issue and feature request at the `Github issue tracker 101 154 <https://github.com/aubio/aubio/issues>`_. Patches and pull-requests welcome! 102 -
doc/download.rst
rf8d96f1 rfbafd2c 8 8 <https://aubio.org/download>`_ for more options. 9 9 10 To use aubio in a macOS or iOS application, see :ref:`xcode-frameworks-label`.11 12 10 To use aubio in an android project, see :ref:`android`. 13 11 14 .. toctree:: 12 To compile aubio from source, read :ref:`building`. 15 13 16 debian_packages 17 xcode_frameworks 18 android 14 .. include:: binaries.rst 19 15 20 To compile aubio from source, read :ref:`building`. 16 .. include:: debian_packages.rst -
doc/installing.rst
rf8d96f1 rfbafd2c 5 5 operating systems. 6 6 7 To download a pre-compiled version of the library, head to :ref:`download`.7 Aubio is available as a C library and as a python module. 8 8 9 To install the python extension, head to :ref:`python`. 9 Cheat sheet 10 ----------- 10 11 11 To compile aubio form source, first check the :ref:`requirements`, then read 12 :ref:`building`. 12 - :ref:`get aubio latest source code <building>`:: 13 13 14 .. toctree:: 15 :maxdepth: 2 14 # official repo 15 git clone https://git.aubio.org/aubio/aubio 16 # mirror 17 git clone https://github.com/aubio/aubio 18 # latest release 19 wget https://aubio.org/pub/aubio-<version>.tar.gz 16 20 17 download 18 building 19 requirements 21 22 - :ref:`build aubio from source <building>`:: 23 24 # 1. simple 25 cd aubio 26 make 27 28 # 2. step by step 29 ./scripts/get_waf.sh 30 ./waf configure 31 ./waf build 32 sudo ./waf install 33 34 - :ref:`install python-aubio from source <python>`:: 35 36 # from git 37 pip install git+https://git.aubio.org/aubio/aubio/ 38 # mirror 39 pip install git+https://github.com/aubio/aubio/ 40 # from latest release 41 pip install https://aubio.org/pub/aubio-latest.tar.bz2 42 # from pypi 43 pip install aubio 44 # from source directory 45 cd aubio 46 pip install -v . 47 48 - :ref:`install python-aubio from a pre-compiled binary <python>`:: 49 50 # conda [osx, linux, win] 51 conda install -c conda-forge aubio 52 # .deb (debian, ubuntu) [linux] 53 sudo apt-get install python3-aubio python-aubio aubio-tools 54 # brew [osx] 55 brew install aubio --with-python 56 57 - :ref:`get a pre-compiled version of libaubio <download>`:: 58 59 # .deb (linux) WARNING: old version 60 sudo apt-get install aubio-tools 61 62 # python module 63 ./setup.py install 64 # using pip 65 pip install . 66 67 - :ref:`check the list of optional dependencies <requirements>`:: 68 69 # debian / ubuntu 70 dpkg -l libavcodec-dev libavutil-dev libavformat-dev \ 71 libswresample-dev libavresample-dev \ 72 libsamplerate-dev libsndfile-dev \ 73 txt2man doxygen 74 75 .. include:: download.rst 76 77 .. include:: building.rst 78 79 .. include:: requirements.rst -
doc/xcode_frameworks.rst
rf8d96f1 rfbafd2c 1 .. _xcode-frameworks-label: 2 3 Using aubio frameworks in Xcode 4 ------------------------------- 1 Frameworks for Xcode 2 -------------------- 5 3 6 4 `Binary frameworks`_ are available and ready to use in your XCode project, for … … 36 34 37 35 Using aubio from swift 38 ...................... 36 ---------------------- 37 38 Once you have downloaded and installed :ref:`aubio.framework 39 <xcode-frameworks-label>`, you sould be able to use aubio from C, Obj-C, and 40 Swift source files. 41 39 42 40 43 Here is a short example showing how to read a sound file in swift: … … 68 71 .. _iOS: https://aubio.org/download#ios 69 72 .. _macOS: https://aubio.org/download#osx 70 .. _Download: https://aubio.org/download -
python/lib/moresetuptools.py
rf8d96f1 rfbafd2c 5 5 from .gen_external import generate_external, header, output_path 6 6 7 def get_aubio_version(): 8 # read from VERSION 9 this_file_dir = os.path.dirname(os.path.abspath(__file__)) 10 version_file = os.path.join(this_file_dir, '..', '..', 'VERSION') 11 12 if not os.path.isfile(version_file): 13 raise SystemError("VERSION file not found.") 14 15 for l in open(version_file).readlines(): 16 #exec (l.strip()) 17 if l.startswith('AUBIO_MAJOR_VERSION'): 18 AUBIO_MAJOR_VERSION = int(l.split('=')[1]) 19 if l.startswith('AUBIO_MINOR_VERSION'): 20 AUBIO_MINOR_VERSION = int(l.split('=')[1]) 21 if l.startswith('AUBIO_PATCH_VERSION'): 22 AUBIO_PATCH_VERSION = int(l.split('=')[1]) 23 if l.startswith('AUBIO_VERSION_STATUS'): 24 AUBIO_VERSION_STATUS = l.split('=')[1].strip()[1:-1] 25 26 if AUBIO_MAJOR_VERSION is None or AUBIO_MINOR_VERSION is None \ 27 or AUBIO_PATCH_VERSION is None: 28 raise SystemError("Failed parsing VERSION file.") 29 30 verstr = '.'.join(map(str, [AUBIO_MAJOR_VERSION, 31 AUBIO_MINOR_VERSION, 32 AUBIO_PATCH_VERSION])) 33 34 if AUBIO_VERSION_STATUS is not None: 35 verstr += AUBIO_VERSION_STATUS 36 return verstr 37 38 def get_aubio_pyversion(): 39 # convert to version for python according to pep 440 40 # see https://www.python.org/dev/peps/pep-0440/ 41 verstr = get_aubio_version() 42 if '~alpha' in verstr: 43 verstr = verstr.split('~')[0] + 'a1' 44 # TODO: add rc, .dev, and .post suffixes, add numbering 45 return verstr 7 from this_version import get_aubio_version 46 8 47 9 # inspired from https://gist.github.com/abergmeier/9488990 … … 94 56 ext.libraries += ['aubio'] 95 57 96 def add_local_aubio_sources(ext , usedouble = False):58 def add_local_aubio_sources(ext): 97 59 """ build aubio inside python module instead of linking against libaubio """ 98 60 print("Info: libaubio was not installed or built locally with waf, adding src/") … … 102 64 103 65 def add_local_macros(ext, usedouble = False): 66 if usedouble: 67 ext.define_macros += [('HAVE_AUBIO_DOUBLE', 1)] 104 68 # define macros (waf puts them in build/src/config.h) 105 69 for define_macro in ['HAVE_STDLIB_H', 'HAVE_STDIO_H', … … 197 161 def build_extension(self, extension): 198 162 if self.enable_double or 'HAVE_AUBIO_DOUBLE' in os.environ: 199 extension.define_macros += [('HAVE_AUBIO_DOUBLE', 1)]200 163 enable_double = True 201 164 else: … … 208 171 if os.path.isfile(os.path.join('src', 'aubio.h')): 209 172 add_local_aubio_header(extension) 210 add_local_macros(extension )173 add_local_macros(extension, usedouble=enable_double) 211 174 # look for a local waf build 212 175 if os.path.isfile(os.path.join('build','src', 'fvec.c.1.o')): … … 216 179 add_external_deps(extension, usedouble=enable_double) 217 180 # add libaubio sources and look for optional deps with pkg-config 218 add_local_aubio_sources(extension , usedouble=enable_double)181 add_local_aubio_sources(extension) 219 182 # generate files python/gen/*.c, python/gen/aubio-generated.h 183 extension.include_dirs += [ output_path ] 220 184 extension.sources += generate_external(header, output_path, overwrite = False, 221 185 usedouble=enable_double) -
python/tests/test_sink.py
rf8d96f1 rfbafd2c 118 118 119 119 def test_read_with(self): 120 sink_path =get_tmp_sink_path() 120 samplerate = 44100 121 sink_path = get_tmp_sink_path() 121 122 vec = fvec(128) 122 123 with sink(sink_path, samplerate) as g: 123 for iin range(10):124 for _ in range(10): 124 125 g(vec, 128) 125 126 -
python/tests/test_source.py
rf8d96f1 rfbafd2c 6 6 from aubio import source 7 7 from .utils import list_all_sounds 8 import numpy as np9 8 10 9 import warnings -
setup.py
rf8d96f1 rfbafd2c 3 3 import sys, os.path, glob 4 4 from setuptools import setup, Extension 5 from python.lib.moresetuptools import *5 from python.lib.moresetuptools import build_ext, CleanGenerated 6 6 # function to generate gen/*.{c,h} 7 from python.lib.gen_external import generate_external, header, output_path7 from this_version import get_aubio_version, get_aubio_pyversion 8 8 9 9 __version__ = get_aubio_pyversion() 10 __aubio_version__ = get_aubio_version() 10 11 11 12 include_dirs = [] 12 13 library_dirs = [] 13 define_macros = [('AUBIO_VERSION', '%s' % __ version__)]14 define_macros = [('AUBIO_VERSION', '%s' % __aubio_version__)] 14 15 extra_link_args = [] 15 16 16 17 include_dirs += [ 'python/ext' ] 17 include_dirs += [ output_path ] # aubio-generated.h18 18 try: 19 19 import numpy … … 58 58 packages = ['aubio'], 59 59 package_dir = {'aubio':'python/lib/aubio'}, 60 scripts = ['python/scripts/aubiocut'],61 60 ext_modules = [aubio_extension], 62 61 description = 'a collection of tools for music analysis', … … 76 75 'build_ext': build_ext, 77 76 }, 77 entry_points = { 78 'console_scripts': [ 79 'aubio = aubio.cmd:main', 80 'aubiocut = aubio.cut:main', 81 ], 82 }, 78 83 test_suite = 'nose2.collector.collector', 79 84 extras_require = { -
src/io/source_avcodec.c
rf8d96f1 rfbafd2c 406 406 if (ret < 0) { 407 407 if (ret == AVERROR(EAGAIN)) { 408 AUBIO_WRN("source_avcodec: output is not available right now - user must try to send new input\n"); 408 //AUBIO_WRN("source_avcodec: output is not available right now - user must try to send new input\n"); 409 goto beach; 409 410 } else if (ret == AVERROR_EOF) { 410 411 AUBIO_WRN("source_avcodec: the decoder has been fully flushed, and there will be no more output frames\n"); -
wscript
rf8d96f1 rfbafd2c 15 15 APPNAME = 'aubio' 16 16 17 # source VERSION 18 for l in open('VERSION').readlines(): exec (l.strip()) 19 20 VERSION = '.'.join ([str(x) for x in [ 21 AUBIO_MAJOR_VERSION, 22 AUBIO_MINOR_VERSION, 23 AUBIO_PATCH_VERSION 24 ]]) + AUBIO_VERSION_STATUS 25 26 LIB_VERSION = '.'.join ([str(x) for x in [ 27 LIBAUBIO_LT_CUR, 28 LIBAUBIO_LT_REV, 29 LIBAUBIO_LT_AGE]]) 17 from this_version import * 18 19 VERSION = get_aubio_version() 20 LIB_VERSION = get_libaubio_version() 30 21 31 22 top = '.' … … 268 259 # one of fftwf or fftw3f 269 260 if (ctx.options.enable_fftw3f != False): 270 ctx.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',271 args = '--cflags --libs ',261 ctx.check_cfg(package = 'fftw3f', 262 args = '--cflags --libs fftw3f >= 3.0.0', 272 263 mandatory = ctx.options.enable_fftw3f) 273 264 if (ctx.options.enable_double == True): … … 278 269 # enable_double 279 270 if (ctx.options.enable_double == True): 280 ctx.check_cfg(package = 'fftw3', atleast_version = '3.0.0',281 args = '--cflags --libs ', mandatory =282 ctx.options.enable_fftw3)271 ctx.check_cfg(package = 'fftw3', 272 args = '--cflags --libs fftw3 >= 3.0.0.', 273 mandatory = ctx.options.enable_fftw3) 283 274 else: 284 ctx.check_cfg(package = 'fftw3f', atleast_version = '3.0.0',285 args = '--cflags --libs ',275 ctx.check_cfg(package = 'fftw3f', 276 args = '--cflags --libs fftw3f >= 3.0.0', 286 277 mandatory = ctx.options.enable_fftw3) 287 278 ctx.define('HAVE_FFTW3', 1) … … 299 290 # check for libsndfile 300 291 if (ctx.options.enable_sndfile != False): 301 ctx.check_cfg(package = 'sndfile', atleast_version = '1.0.4',302 args = '--cflags --libs ',292 ctx.check_cfg(package = 'sndfile', 293 args = '--cflags --libs sndfile >= 1.0.4', 303 294 mandatory = ctx.options.enable_sndfile) 304 295 … … 312 303 color = 'YELLOW') 313 304 if (ctx.options.enable_samplerate != False): 314 ctx.check_cfg(package = 'samplerate', atleast_version = '0.0.15',315 args = '--cflags --libs ',305 ctx.check_cfg(package = 'samplerate', 306 args = '--cflags --libs samplerate >= 0.0.15', 316 307 mandatory = ctx.options.enable_samplerate) 317 308 … … 330 321 # check for libav 331 322 if (ctx.options.enable_avcodec != False): 332 ctx.check_cfg(package = 'libavcodec', atleast_version = '54.35.0', 333 args = '--cflags --libs', uselib_store = 'AVCODEC', 323 ctx.check_cfg(package = 'libavcodec', 324 args = '--cflags --libs libavcodec >= 54.35.0', 325 uselib_store = 'AVCODEC', 334 326 mandatory = ctx.options.enable_avcodec) 335 ctx.check_cfg(package = 'libavformat', atleast_version = '52.3.0', 336 args = '--cflags --libs', uselib_store = 'AVFORMAT', 327 ctx.check_cfg(package = 'libavformat', 328 args = '--cflags --libs libavformat >= 52.3.0', 329 uselib_store = 'AVFORMAT', 337 330 mandatory = ctx.options.enable_avcodec) 338 ctx.check_cfg(package = 'libavutil', atleast_version = '52.3.0', 339 args = '--cflags --libs', uselib_store = 'AVUTIL', 331 ctx.check_cfg(package = 'libavutil', 332 args = '--cflags --libs libavutil >= 52.3.0', 333 uselib_store = 'AVUTIL', 340 334 mandatory = ctx.options.enable_avcodec) 341 ctx.check_cfg(package = 'libswresample', atleast_version = '2.3.0', 342 args = '--cflags --libs', uselib_store = 'SWRESAMPLE', 335 ctx.check_cfg(package = 'libswresample', 336 args = '--cflags --libs libswresample >= 2.3.0', 337 uselib_store = 'SWRESAMPLE', 343 338 mandatory = False) 344 339 if 'HAVE_SWRESAMPLE' not in ctx.env: 345 ctx.check_cfg(package = 'libavresample', atleast_version = '1.0.1', 346 args = '--cflags --libs', uselib_store = 'AVRESAMPLE', 340 ctx.check_cfg(package = 'libavresample', 341 args = '--cflags --libs libavresample >= 1.0.1', 342 uselib_store = 'AVRESAMPLE', 347 343 mandatory = False) 348 344
Note: See TracChangeset
for help on using the changeset viewer.