aubio.git
7 years agosetup.py: remove status from version string
Paul Brossier [Wed, 30 Nov 2016 17:45:10 +0000 (18:45 +0100)]
setup.py: remove status from version string

7 years agopython/demos/demo_timestretch_online.py: use 512, fix block counter
Paul Brossier [Wed, 30 Nov 2016 17:41:43 +0000 (18:41 +0100)]
python/demos/demo_timestretch_online.py: use 512, fix block counter

7 years agopython/tests/test_source.py: remove fragile brownnoise test, check duration on short...
Paul Brossier [Wed, 30 Nov 2016 17:39:41 +0000 (18:39 +0100)]
python/tests/test_source.py: remove fragile brownnoise test, check duration on short files

7 years agosrc/io/source_avcodec.c: keep a reference to packet to remove it when closing file
Paul Brossier [Wed, 30 Nov 2016 16:18:14 +0000 (17:18 +0100)]
src/io/source_avcodec.c: keep a reference to packet to remove it when closing file

7 years agosrc/io/source_avcodec.c: call avformat_free_context after avformat_close_input
Paul Brossier [Wed, 30 Nov 2016 16:17:24 +0000 (17:17 +0100)]
src/io/source_avcodec.c: call avformat_free_context after avformat_close_input

7 years agosrc/io/source_avcodec.c: avoid function calls before declarations
Paul Brossier [Wed, 30 Nov 2016 16:16:18 +0000 (17:16 +0100)]
src/io/source_avcodec.c: avoid function calls before declarations

7 years agosrc/io/source_avcodec.c: improve error messages
Paul Brossier [Wed, 30 Nov 2016 16:14:38 +0000 (17:14 +0100)]
src/io/source_avcodec.c: improve error messages

7 years agosrc/io/source_avcodec.c: avoid deprecation warnings with ffmpeg 3.2
Paul Brossier [Wed, 30 Nov 2016 16:11:11 +0000 (17:11 +0100)]
src/io/source_avcodec.c: avoid deprecation warnings with ffmpeg 3.2

7 years agosrc/io/source_avcodec.c: use aubio samples
Paul Brossier [Wed, 30 Nov 2016 15:45:10 +0000 (16:45 +0100)]
src/io/source_avcodec.c: use aubio samples

7 years agosrc/io/source_sndfile.c
Paul Brossier [Wed, 30 Nov 2016 15:43:14 +0000 (16:43 +0100)]
src/io/source_sndfile.c

7 years agosrc/io/source_avcodec.c: replace with new context before closing old one
Paul Brossier [Wed, 30 Nov 2016 15:35:55 +0000 (16:35 +0100)]
src/io/source_avcodec.c: replace with new context before closing old one

7 years agosrc/aubio_priv.h: add AUBIO_INF to print to stdout with header
Paul Brossier [Wed, 30 Nov 2016 15:32:44 +0000 (16:32 +0100)]
src/aubio_priv.h: add AUBIO_INF to print to stdout with header

7 years agosrc/io/sink_apple_audio.c: avoid crash on empty file name
Paul Brossier [Wed, 30 Nov 2016 14:38:29 +0000 (15:38 +0100)]
src/io/sink_apple_audio.c: avoid crash on empty file name

7 years agosrc/io/sink_sndfile.c: improve error message
Paul Brossier [Tue, 29 Nov 2016 11:08:42 +0000 (12:08 +0100)]
src/io/sink_sndfile.c: improve error message

7 years agosrc/io/ioutils.h: add functions to check samplerate and channels, use in sink_*.c
Paul Brossier [Tue, 29 Nov 2016 11:06:21 +0000 (12:06 +0100)]
src/io/ioutils.h: add functions to check samplerate and channels, use in sink_*.c

7 years agoscripts/setenv_local.sh: python3 compat
Paul Brossier [Mon, 28 Nov 2016 17:49:00 +0000 (18:49 +0100)]
scripts/setenv_local.sh: python3 compat

7 years agosrc/io/source_sndfile.c: add missing floor in ratio comparison
Paul Brossier [Mon, 28 Nov 2016 17:48:03 +0000 (18:48 +0100)]
src/io/source_sndfile.c: add missing floor in ratio comparison

7 years agosrc/io/source_avcodec.c: use AV_SAMPLE_FMT_DBL when compiling with HAVE_AUBIO_DOUBLE
Paul Brossier [Mon, 28 Nov 2016 17:44:44 +0000 (18:44 +0100)]
src/io/source_avcodec.c: use AV_SAMPLE_FMT_DBL when compiling with HAVE_AUBIO_DOUBLE

7 years agopython/ext/py-sink.c: always set samplerate and channels in init
Paul Brossier [Mon, 28 Nov 2016 17:26:18 +0000 (18:26 +0100)]
python/ext/py-sink.c: always set samplerate and channels in init

7 years agopython/tests/test_sink.py: add more tests, quiet warnings
Paul Brossier [Mon, 28 Nov 2016 17:20:19 +0000 (18:20 +0100)]
python/tests/test_sink.py: add more tests, quiet warnings

7 years agopython/tests/: use local import, create __init__.py
Paul Brossier [Mon, 28 Nov 2016 17:18:49 +0000 (18:18 +0100)]
python/tests/: use local import, create __init__.py

7 years agopython/tests/test_fft.py: skip test fft(zeros).phas == 0 if needed, expected powerpc
Paul Brossier [Mon, 28 Nov 2016 17:14:01 +0000 (18:14 +0100)]
python/tests/test_fft.py: skip test fft(zeros).phas == 0 if needed, expected powerpc

7 years agopython/lib/moresetuptools.py: cleaner clean
Paul Brossier [Mon, 28 Nov 2016 17:12:37 +0000 (18:12 +0100)]
python/lib/moresetuptools.py: cleaner clean

7 years agosrc/pitch/pitch.h: add basic description of unit modes
Paul Brossier [Mon, 28 Nov 2016 16:32:17 +0000 (17:32 +0100)]
src/pitch/pitch.h: add basic description of unit modes

7 years agosrc/{fmat,fvec}.c: avoid integer division
Paul Brossier [Mon, 28 Nov 2016 16:31:45 +0000 (17:31 +0100)]
src/{fmat,fvec}.c: avoid integer division

7 years agodoc/Makefile: create and clean _static
Paul Brossier [Mon, 28 Nov 2016 16:30:27 +0000 (17:30 +0100)]
doc/Makefile: create and clean _static

7 years agoMakefile: add html and dist targets
Paul Brossier [Mon, 28 Nov 2016 16:29:37 +0000 (17:29 +0100)]
Makefile: add html and dist targets

7 years agoMakefile: generate more test sounds
Paul Brossier [Mon, 28 Nov 2016 16:29:21 +0000 (17:29 +0100)]
Makefile: generate more test sounds

7 years agopython/ext/py-cvec.c: use NPY_INTP_FMT
Paul Brossier [Mon, 28 Nov 2016 16:19:32 +0000 (17:19 +0100)]
python/ext/py-cvec.c: use NPY_INTP_FMT

7 years agoMakefile: verbose waf rules, add cleanwaf
Paul Brossier [Mon, 28 Nov 2016 16:09:08 +0000 (17:09 +0100)]
Makefile: verbose waf rules, add cleanwaf

7 years agosetup.py, python/lib/: use sorted glob.glob to improve reproducibility
Paul Brossier [Mon, 28 Nov 2016 14:48:34 +0000 (15:48 +0100)]
setup.py, python/lib/: use sorted glob.glob to improve reproducibility

7 years agosrc/io/source_wavread.c: improve error messages
Paul Brossier [Mon, 28 Nov 2016 14:13:19 +0000 (15:13 +0100)]
src/io/source_wavread.c: improve error messages

7 years agosrc/wscript_build: also install static library
Paul Brossier [Sat, 26 Nov 2016 13:52:37 +0000 (14:52 +0100)]
src/wscript_build: also install static library

See this post from waf author:
  https://groups.google.com/forum/#!msg/waf-users/GBHPrmO_lDg/34VWYEaks40J

7 years agoMakefile: use bdist_wheel in test_pure_python
Paul Brossier [Thu, 17 Nov 2016 13:04:28 +0000 (14:04 +0100)]
Makefile: use bdist_wheel in test_pure_python

7 years ago.travis.yml: alway upgrade pip
Paul Brossier [Thu, 17 Nov 2016 12:52:52 +0000 (13:52 +0100)]
.travis.yml: alway upgrade pip

7 years ago.travis.yml: add pip --version and which pip after, remove --user
Paul Brossier [Thu, 17 Nov 2016 12:42:27 +0000 (13:42 +0100)]
.travis.yml: add pip --version and which pip after, remove --user

7 years ago.travis.yml: fix syntax
Paul Brossier [Thu, 17 Nov 2016 12:16:09 +0000 (13:16 +0100)]
.travis.yml: fix syntax

7 years ago.travis.yml: upgrade pip first
Paul Brossier [Thu, 17 Nov 2016 12:13:08 +0000 (13:13 +0100)]
.travis.yml: upgrade pip first

7 years agopython/README.md: add a note about nose2 for python tests (closes #74)
Paul Brossier [Thu, 17 Nov 2016 01:51:47 +0000 (02:51 +0100)]
python/README.md: add a note about nose2 for python tests (closes #74)

7 years agopython/demos/demo_alsa.py: add example using alsaaudio (closes #72)
Paul Brossier [Wed, 16 Nov 2016 10:57:43 +0000 (11:57 +0100)]
python/demos/demo_alsa.py: add example using alsaaudio (closes #72)

7 years agopython/demos/demo_timestretch*: use // to yield an integer (closes #71)
Paul Brossier [Wed, 16 Nov 2016 09:54:14 +0000 (10:54 +0100)]
python/demos/demo_timestretch*: use // to yield an integer (closes #71)

7 years agosrc/io/source_avcodec.c: improve error message
Paul Brossier [Wed, 5 Oct 2016 12:14:24 +0000 (14:14 +0200)]
src/io/source_avcodec.c: improve error message

7 years agosrc/io/sink.c: only show error message from last child sink_
Paul Brossier [Wed, 5 Oct 2016 12:08:41 +0000 (14:08 +0200)]
src/io/sink.c: only show error message from last child sink_

7 years agosrc/io/source_wavread.c: initialize buffer
Paul Brossier [Wed, 5 Oct 2016 09:45:36 +0000 (11:45 +0200)]
src/io/source_wavread.c: initialize buffer

7 years agosrc/io/source.c: only show error message from last child source_
Paul Brossier [Mon, 3 Oct 2016 19:09:52 +0000 (21:09 +0200)]
src/io/source.c: only show error message from last child source_

7 years agosrc/spectral/ooura_fft8g.c: add cast to avoid conversion warnings
Paul Brossier [Mon, 3 Oct 2016 18:58:22 +0000 (20:58 +0200)]
src/spectral/ooura_fft8g.c: add cast to avoid conversion warnings

7 years agosrc/aubio_priv.h: add ATAN alias
Paul Brossier [Mon, 3 Oct 2016 18:57:46 +0000 (20:57 +0200)]
src/aubio_priv.h: add ATAN alias

7 years agosrc/notes/notes.h: add _{get,set}_silence methods
Paul Brossier [Mon, 3 Oct 2016 18:46:46 +0000 (20:46 +0200)]
src/notes/notes.h: add _{get,set}_silence methods

7 years agoexamples/: return 1 if object creation failed
Paul Brossier [Mon, 3 Oct 2016 16:59:12 +0000 (18:59 +0200)]
examples/: return 1 if object creation failed

7 years agoexamples/: use PROG_HAS_OUTPUT, add PROG_HAS_SILENCE
Paul Brossier [Mon, 3 Oct 2016 16:41:10 +0000 (18:41 +0200)]
examples/: use PROG_HAS_OUTPUT, add PROG_HAS_SILENCE

7 years agosrc/temporal/resampler.c: throw an error when using libsamplerate with doubles
Paul Brossier [Mon, 3 Oct 2016 14:50:36 +0000 (16:50 +0200)]
src/temporal/resampler.c: throw an error when using libsamplerate with doubles

7 years agoMakefile: pass build_ext in test_pure_python{,_wheel}
Paul Brossier [Mon, 3 Oct 2016 14:48:54 +0000 (16:48 +0200)]
Makefile: pass build_ext  in test_pure_python{,_wheel}

7 years agosetup.py: use custom build_ext instead of 'generate' command, define HAVE_AUBIO_DOUBL...
Paul Brossier [Mon, 3 Oct 2016 14:40:48 +0000 (16:40 +0200)]
setup.py: use custom build_ext instead of 'generate' command, define HAVE_AUBIO_DOUBLE to 1 if needed

7 years agopython/lib/moresetuptools.py: use samplerate in single precision only
Paul Brossier [Mon, 3 Oct 2016 14:33:02 +0000 (16:33 +0200)]
python/lib/moresetuptools.py: use samplerate in single precision only

7 years agowscript: disable libsamplerate if double precision enabled (libsamplerate only suppor...
Paul Brossier [Mon, 3 Oct 2016 12:24:29 +0000 (14:24 +0200)]
wscript: disable libsamplerate if double precision enabled (libsamplerate only supports float)

7 years agosrc/io/source_sndfile.c: set handle to null after sucessful close
Paul Brossier [Mon, 3 Oct 2016 11:28:08 +0000 (13:28 +0200)]
src/io/source_sndfile.c: set handle to null after sucessful close

7 years agopython/tests/test_source.py: only check if last frames are non silent on brownnoise...
Paul Brossier [Mon, 3 Oct 2016 10:24:35 +0000 (12:24 +0200)]
python/tests/test_source.py: only check if last frames are non silent on brownnoise (weak)

7 years agowscript: add options to disable source_wavread/sink_wavwrite
Paul Brossier [Mon, 3 Oct 2016 10:02:00 +0000 (12:02 +0200)]
wscript: add options to disable source_wavread/sink_wavwrite

7 years agosrc/spectral/phasevoc.c: fix error string
Paul Brossier [Mon, 3 Oct 2016 09:49:28 +0000 (11:49 +0200)]
src/spectral/phasevoc.c: fix error string

7 years agosrc/pitch/pitch.c: fix error string
Paul Brossier [Mon, 3 Oct 2016 09:48:22 +0000 (11:48 +0200)]
src/pitch/pitch.c: fix error string

7 years agosrc/io/source_avcodec.c: fix missing samples in eof block
Paul Brossier [Mon, 3 Oct 2016 09:47:25 +0000 (11:47 +0200)]
src/io/source_avcodec.c: fix missing samples in eof block

7 years agopython/tests/test_source.py: check the tail of the file is non-zero on non silent...
Paul Brossier [Mon, 3 Oct 2016 09:46:37 +0000 (11:46 +0200)]
python/tests/test_source.py: check the tail of the file is non-zero on non silent test files

7 years agosrc/io/{source_wavread,sink_wavwrite}.c: declare internal functions as static
Paul Brossier [Wed, 28 Sep 2016 13:18:30 +0000 (15:18 +0200)]
src/io/{source_wavread,sink_wavwrite}.c: declare internal functions as static

7 years agosrc/pitch/pitch.c: fail on wrong method, warn on wrong unit, improve error messages
Paul Brossier [Wed, 28 Sep 2016 13:16:45 +0000 (15:16 +0200)]
src/pitch/pitch.c: fail on wrong method, warn on wrong unit, improve error messages

7 years agosrc/onset/onset.c: return null and clean-up if new_aubio_specdesc failed
Paul Brossier [Wed, 28 Sep 2016 13:10:25 +0000 (15:10 +0200)]
src/onset/onset.c: return null and clean-up if new_aubio_specdesc failed

7 years agosrc/onset/onset.c: fix error message
Paul Brossier [Wed, 28 Sep 2016 13:09:40 +0000 (15:09 +0200)]
src/onset/onset.c: fix error message

7 years agosrc/pitch/pitch.c: declare internal functions as static
Paul Brossier [Wed, 28 Sep 2016 13:08:33 +0000 (15:08 +0200)]
src/pitch/pitch.c: declare internal functions as static

7 years agosrc/pitch/pitch.h: add aubio_pitch_get_tolerance
Paul Brossier [Wed, 28 Sep 2016 00:23:16 +0000 (02:23 +0200)]
src/pitch/pitch.h: add aubio_pitch_get_tolerance

7 years agosrc/spectral/fft.c: add message about fftw3 being able to do non-power of two sizes
Paul Brossier [Tue, 27 Sep 2016 16:26:02 +0000 (18:26 +0200)]
src/spectral/fft.c: add message about fftw3 being able to do non-power of two sizes

7 years agosrc/spectral/fft.c: use prefixed aubio_ooura_rdft
Paul Brossier [Tue, 27 Sep 2016 22:23:24 +0000 (00:23 +0200)]
src/spectral/fft.c: use prefixed aubio_ooura_rdft

7 years agosrc/spectral/ooura_fft8g.c: prefix public function with aubio_ooura_ to avoid with...
Paul Brossier [Tue, 27 Sep 2016 22:22:47 +0000 (00:22 +0200)]
src/spectral/ooura_fft8g.c: prefix public function with aubio_ooura_ to avoid with other apps using ooura (e.g. puredata), make internal functions static

7 years agopython/ext/aubiomodule.c: remove duplicate add_generated_objects
Paul Brossier [Fri, 23 Sep 2016 06:03:39 +0000 (08:03 +0200)]
python/ext/aubiomodule.c: remove duplicate add_generated_objects

7 years agopython/ext/aubiomodule.c: undo last commit
Paul Brossier [Fri, 23 Sep 2016 06:01:34 +0000 (08:01 +0200)]
python/ext/aubiomodule.c: undo last commit

7 years agopython/ext/aubiomodule.c: remove extern
Paul Brossier [Fri, 23 Sep 2016 05:54:04 +0000 (07:54 +0200)]
python/ext/aubiomodule.c: remove extern

7 years agopython/ext/py-source.c: use error string set in src/io/source.c
Paul Brossier [Fri, 23 Sep 2016 01:24:07 +0000 (03:24 +0200)]
python/ext/py-source.c: use error string set in src/io/source.c

7 years agopython/ext/py-phasevoc.c: use error string set in src/spectral/phasevoc.c
Paul Brossier [Fri, 23 Sep 2016 01:23:47 +0000 (03:23 +0200)]
python/ext/py-phasevoc.c: use error string set in src/spectral/phasevoc.c

7 years agopython/ext/py-fft.c: use error string set in src/spectral/fft.c
Paul Brossier [Fri, 23 Sep 2016 01:22:51 +0000 (03:22 +0200)]
python/ext/py-fft.c: use error string set in src/spectral/fft.c

7 years agosrc/io/source_sndfile.c: add support for multi-channel resampling
Paul Brossier [Fri, 23 Sep 2016 00:43:35 +0000 (02:43 +0200)]
src/io/source_sndfile.c: add support for multi-channel resampling

7 years agopython/tests/test_source.py: break long line
Paul Brossier [Thu, 22 Sep 2016 23:27:21 +0000 (01:27 +0200)]
python/tests/test_source.py: break long line

7 years agosrc/notes/notes.c: fix error message
Paul Brossier [Thu, 22 Sep 2016 23:14:47 +0000 (01:14 +0200)]
src/notes/notes.c: fix error message

7 years agosrc/spectral/fft.h: strip example path
Paul Brossier [Thu, 22 Sep 2016 22:50:01 +0000 (00:50 +0200)]
src/spectral/fft.h: strip example path

7 years agopython/tests/test_specdesc.py: RuntimeError is now raised on wrong mode
Paul Brossier [Thu, 22 Sep 2016 22:07:36 +0000 (00:07 +0200)]
python/tests/test_specdesc.py: RuntimeError is now raised on wrong mode

7 years agosrc/spectral/specdesc.c: return NULL if wrong mode asked
Paul Brossier [Thu, 22 Sep 2016 22:06:45 +0000 (00:06 +0200)]
src/spectral/specdesc.c: return NULL if wrong mode asked

7 years agosrc/utils/log.c: add header, remove unused code
Paul Brossier [Thu, 22 Sep 2016 22:06:02 +0000 (00:06 +0200)]
src/utils/log.c: add header, remove unused code

7 years agosrc/aubio.h: add some links to examples
Paul Brossier [Thu, 22 Sep 2016 22:01:32 +0000 (00:01 +0200)]
src/aubio.h: add some links to examples

7 years agotests/src/spectral/test-fft.c: fix default size
Paul Brossier [Thu, 22 Sep 2016 21:26:50 +0000 (23:26 +0200)]
tests/src/spectral/test-fft.c: fix default size

7 years agosrc/spectral/specdesc.c: remove trailing spaces
Paul Brossier [Thu, 22 Sep 2016 21:16:09 +0000 (23:16 +0200)]
src/spectral/specdesc.c: remove trailing spaces

7 years agopython/tests/test_source.py: filter user warnings to avoid spamming the console
Paul Brossier [Thu, 22 Sep 2016 20:55:53 +0000 (22:55 +0200)]
python/tests/test_source.py: filter user warnings to avoid spamming the console

7 years agopython/ext/aubiomodule.c: use custom logging function for errors and warnings
Paul Brossier [Thu, 22 Sep 2016 20:55:47 +0000 (22:55 +0200)]
python/ext/aubiomodule.c: use custom logging function for errors and warnings

7 years agopython/lib/moresetuptools.py: add HAVE_STDARG_H
Paul Brossier [Thu, 22 Sep 2016 20:41:08 +0000 (22:41 +0200)]
python/lib/moresetuptools.py: add HAVE_STDARG_H

7 years agotests/src/utils/test-log.c: add example for aubio_log_set_function
Paul Brossier [Thu, 22 Sep 2016 20:34:38 +0000 (22:34 +0200)]
tests/src/utils/test-log.c: add example for aubio_log_set_function

7 years agosrc/aubio_priv.h: use new logging function
Paul Brossier [Thu, 22 Sep 2016 20:34:00 +0000 (22:34 +0200)]
src/aubio_priv.h: use new logging function

7 years agosrc/aubio.h: add utils/log.h
Paul Brossier [Thu, 22 Sep 2016 20:33:29 +0000 (22:33 +0200)]
src/aubio.h: add utils/log.h

7 years agosrc/utils/log.h: add new aubio_log_set_function
Paul Brossier [Thu, 22 Sep 2016 20:33:09 +0000 (22:33 +0200)]
src/utils/log.h: add new aubio_log_set_function

7 years agosrc/aubio_priv.h: add stdarg.h
Paul Brossier [Thu, 22 Sep 2016 17:19:12 +0000 (19:19 +0200)]
src/aubio_priv.h: add stdarg.h

7 years agowscript: add stdarg.h
Paul Brossier [Thu, 22 Sep 2016 17:15:58 +0000 (19:15 +0200)]
wscript: add stdarg.h

7 years agopython/demos/demo_mfcc.py: add options to plot first and second derivatives, and...
Paul Brossier [Thu, 22 Sep 2016 11:48:44 +0000 (13:48 +0200)]
python/demos/demo_mfcc.py: add options to plot first and second derivatives, and set samplerate/win_s/hop_s, thanks to @jhoelzl (closes #68)

7 years agopython/tests/test_fvec.py: reduce alpha norm precision to 10.-4
Paul Brossier [Thu, 22 Sep 2016 11:46:16 +0000 (13:46 +0200)]
python/tests/test_fvec.py: reduce alpha norm precision to 10.-4

7 years agosrc/io/source_wavread.c: skip chunks until data is found, or abort
Paul Brossier [Wed, 21 Sep 2016 13:24:06 +0000 (15:24 +0200)]
src/io/source_wavread.c: skip chunks until data is found, or abort

7 years agosrc/io/source_wavread.c: fix bytes_read for JUNK headers
Paul Brossier [Wed, 21 Sep 2016 13:23:22 +0000 (15:23 +0200)]
src/io/source_wavread.c: fix bytes_read for JUNK headers