aubio.git
5 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

5 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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

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

5 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

5 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)

5 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)

5 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)

5 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

5 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_

5 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

5 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_

5 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

5 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

5 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

5 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

5 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

5 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

5 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}

5 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

5 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

5 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)

5 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

5 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)

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

5 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

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

5 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)

5 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

5 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

5 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

5 years ago.appveyor.yml: make nose2 verbose
Paul Brossier [Wed, 21 Sep 2016 12:08:18 +0000 (14:08 +0200)]
.appveyor.yml: make nose2 verbose

5 years agosrc/io/source_sndfile.c: improve formatting
Paul Brossier [Wed, 21 Sep 2016 12:07:04 +0000 (14:07 +0200)]
src/io/source_sndfile.c: improve formatting

5 years agopython/tests/test_source.py: use nose2 params to process one sound file per test
Paul Brossier [Tue, 20 Sep 2016 23:34:33 +0000 (01:34 +0200)]
python/tests/test_source.py: use nose2 params to process one sound file per test

5 years agodoc/aubio*.txt: document -T/--timeformat option
Paul Brossier [Sat, 17 Sep 2016 00:04:15 +0000 (02:04 +0200)]
doc/aubio*.txt: document -T/--timeformat option