aubio.git
14 years agosrc/aubio_priv.h: change AUBIO_FAIL from 1 to -1, now works with unsigned ints
Paul Brossier [Thu, 15 Oct 2009 18:50:51 +0000 (20:50 +0200)]
src/aubio_priv.h: change AUBIO_FAIL from 1 to -1, now works with unsigned ints

14 years agopython/: remove task.utils, not used anymore
Paul Brossier [Thu, 15 Oct 2009 18:46:32 +0000 (20:46 +0200)]
python/: remove task.utils, not used anymore

14 years agosrc/pitch: use a string to set pitch method, add a new function to set pitch unit...
Paul Brossier [Thu, 15 Oct 2009 16:54:23 +0000 (18:54 +0200)]
src/pitch: use a string to set pitch method, add a new function to set pitch unit, keep pitch enums private, update pitch methods where they are used

14 years agosrc/onset/onsetdetection.c: add 'default' method, set it to hfc, set method to defaul...
Paul Brossier [Thu, 15 Oct 2009 16:49:47 +0000 (18:49 +0200)]
src/onset/onsetdetection.c: add 'default' method, set it to hfc, set method to default when parsing the string fails

14 years agosrc/onset: use a string to set onset mode, keeping onset types enum private, update...
Paul Brossier [Thu, 15 Oct 2009 15:09:34 +0000 (17:09 +0200)]
src/onset: use a string to set onset mode, keeping onset types enum private, update everywhere onsets are used

14 years agosrc/types.h: added a typedef for char to help wrappers
Paul Brossier [Thu, 15 Oct 2009 14:07:36 +0000 (16:07 +0200)]
src/types.h: added a typedef for char to help wrappers

14 years agosrc/tempo/beattracking.h: fix typo
Paul Brossier [Thu, 15 Oct 2009 13:52:18 +0000 (15:52 +0200)]
src/tempo/beattracking.h: fix typo

14 years agosrc/temporal/resampler.{c,h}: use smpl_t, and convet that to a double for libsamplerate
Paul Brossier [Thu, 15 Oct 2009 13:37:08 +0000 (15:37 +0200)]
src/temporal/resampler.{c,h}: use smpl_t, and convet that to a double for libsamplerate

14 years agosrc/spectral: cosmetic changes
Paul Brossier [Thu, 15 Oct 2009 13:12:19 +0000 (15:12 +0200)]
src/spectral: cosmetic changes

14 years agosrc/pitch: cosmetic changes
Paul Brossier [Thu, 15 Oct 2009 13:09:07 +0000 (15:09 +0200)]
src/pitch: cosmetic changes

14 years agosrc/spectral/mfcc.c: also loop over channels
Paul Brossier [Sun, 11 Oct 2009 10:49:49 +0000 (12:49 +0200)]
src/spectral/mfcc.c: also loop over channels

14 years agosrc/spectral/fft.c: fix imag boundaries, including for odd fft sizes
Paul Brossier [Sun, 11 Oct 2009 10:47:43 +0000 (12:47 +0200)]
src/spectral/fft.c: fix imag boundaries, including for odd fft sizes

14 years agosrc/spectral/fft.c: make sure we set allocated vectors to 0
Paul Brossier [Sun, 11 Oct 2009 10:40:04 +0000 (12:40 +0200)]
src/spectral/fft.c: make sure we set allocated vectors to 0

14 years agosrc/spectral/fft.c: 0 and N/2 + 1 phase must carry the sign of respective real components
Paul Brossier [Sun, 11 Oct 2009 10:38:43 +0000 (12:38 +0200)]
src/spectral/fft.c: 0 and N/2 + 1 phase must carry the sign of respective real components

14 years agosrc/spectral/fft.c: do not zero phase for no good reason, use ATAN2 macro
Paul Brossier [Sun, 11 Oct 2009 10:37:01 +0000 (12:37 +0200)]
src/spectral/fft.c: do not zero phase for no good reason, use ATAN2 macro

14 years agosrc/aubio_priv.h: add macro for ATAN2
Paul Brossier [Sun, 11 Oct 2009 10:33:04 +0000 (12:33 +0200)]
src/aubio_priv.h: add macro for ATAN2

14 years agosrc/aubio_priv.h: IS_DENORMAL also for negative ones, CEIL_DENORMAL for anything...
Paul Brossier [Sun, 11 Oct 2009 10:32:05 +0000 (12:32 +0200)]
src/aubio_priv.h: IS_DENORMAL also for negative ones, CEIL_DENORMAL for anything below 2.e-42

14 years agotests/python/template.py: also print the command when failing
Paul Brossier [Thu, 8 Oct 2009 19:07:23 +0000 (21:07 +0200)]
tests/python/template.py: also print the command when failing

14 years agotests/python/localaubio.py: swith location
Paul Brossier [Thu, 8 Oct 2009 19:04:33 +0000 (21:04 +0200)]
tests/python/localaubio.py: swith location

14 years agotests/python/examples/aubiopitch.py: do not fail if file is missing, print out where...
Paul Brossier [Thu, 8 Oct 2009 19:03:35 +0000 (21:03 +0200)]
tests/python/examples/aubiopitch.py: do not fail if file is missing, print out where to find it

14 years agotests/python/src/pitch/pitchdetection.py: update to latest pitch prototypes
Paul Brossier [Thu, 8 Oct 2009 19:00:53 +0000 (21:00 +0200)]
tests/python/src/pitch/pitchdetection.py: update to latest pitch prototypes

14 years agopython/aubio: update to latest pitch prototypes
Paul Brossier [Thu, 8 Oct 2009 18:59:23 +0000 (20:59 +0200)]
python/aubio: update to latest pitch prototypes

14 years agoexamples plugins: update to latest pitch prototypes
Paul Brossier [Thu, 8 Oct 2009 18:54:49 +0000 (20:54 +0200)]
examples plugins: update to latest pitch prototypes

14 years agoswig/aubio.i: update pitch prototypes
Paul Brossier [Thu, 8 Oct 2009 18:52:07 +0000 (20:52 +0200)]
swig/aubio.i: update pitch prototypes

14 years agosrc/pitch/pitchdetection.{c,h}: clean and update prototypes, sync with latest pitch...
Paul Brossier [Thu, 8 Oct 2009 18:51:06 +0000 (20:51 +0200)]
src/pitch/pitchdetection.{c,h}: clean and update prototypes, sync with latest pitch objects

14 years agosrc/pitch/pitchyinfft.{c,h}: add get/set for tolerance, clean and update prototypes...
Paul Brossier [Thu, 8 Oct 2009 18:49:10 +0000 (20:49 +0200)]
src/pitch/pitchyinfft.{c,h}: add get/set for tolerance, clean and update prototypes, make multichannel

14 years agosrc/pitch/pitchyin.{c,h}: add proper aubio_pitchyin_t object, clean and update protot...
Paul Brossier [Thu, 8 Oct 2009 18:24:43 +0000 (20:24 +0200)]
src/pitch/pitchyin.{c,h}: add proper aubio_pitchyin_t object, clean and update prototypes, make multichannel

14 years agosrc/pitch/pitchschmitt.c: remove unneeded samplerate parameter, update prototypes...
Paul Brossier [Thu, 8 Oct 2009 18:20:19 +0000 (20:20 +0200)]
src/pitch/pitchschmitt.c: remove unneeded samplerate parameter, update prototypes, make multichannel

14 years agosrc/pitch/pitchmcomb.{c,h}: remove unused samplerate parameter, make multichannel...
Paul Brossier [Thu, 8 Oct 2009 18:07:20 +0000 (20:07 +0200)]
src/pitch/pitchmcomb.{c,h}: remove unused samplerate parameter, make multichannel, update prototypes

14 years agosrc/pitch/pitchfcomb.c: update prototypes, make multichannel, remove unneeded sampler...
Paul Brossier [Thu, 8 Oct 2009 17:46:46 +0000 (19:46 +0200)]
src/pitch/pitchfcomb.c: update prototypes, make multichannel, remove unneeded samplerate parameter, now returns bin

14 years agosrc/Makefile.am: update resampler filename
Paul Brossier [Thu, 8 Oct 2009 16:14:45 +0000 (18:14 +0200)]
src/Makefile.am: update resampler filename

14 years agoswig/aubio.i: update aubio_resampler_do
Paul Brossier [Thu, 8 Oct 2009 10:28:56 +0000 (12:28 +0200)]
swig/aubio.i: update aubio_resampler_do

14 years agorename src/temporal/resample.c to src/temporal/resampler.c
Paul Brossier [Thu, 8 Oct 2009 10:27:41 +0000 (12:27 +0200)]
rename src/temporal/resample.c to src/temporal/resampler.c

14 years agotests/src/test-resample.c: run 10 times, update defines
Paul Brossier [Thu, 8 Oct 2009 10:07:12 +0000 (12:07 +0200)]
tests/src/test-resample.c: run 10 times, update defines

14 years agosrc/temporal/resample.{c,h}: _do function returns void
Paul Brossier [Thu, 8 Oct 2009 10:03:08 +0000 (12:03 +0200)]
src/temporal/resample.{c,h}: _do function returns void

14 years agoplugins/puredata/aubioonset~.c: update peakpicker
Paul Brossier [Thu, 8 Oct 2009 03:50:27 +0000 (05:50 +0200)]
plugins/puredata/aubioonset~.c: update peakpicker

14 years agotests/python/examples/aubioonset.py: do not check onset is actually detected with...
Paul Brossier [Thu, 8 Oct 2009 02:31:11 +0000 (04:31 +0200)]
tests/python/examples/aubioonset.py: do not check onset is actually detected with all functions

14 years agotests/python/examples/aubionotes.py: do not assume the error is known
Paul Brossier [Thu, 8 Oct 2009 02:30:11 +0000 (04:30 +0200)]
tests/python/examples/aubionotes.py: do not assume the error is known

14 years agotests/python/template.py: factorise
Paul Brossier [Thu, 8 Oct 2009 02:24:19 +0000 (04:24 +0200)]
tests/python/template.py: factorise

14 years agotests/python/src/spectral/fft.py: remove abs, test passes in double precision
Paul Brossier [Thu, 8 Oct 2009 01:11:30 +0000 (03:11 +0200)]
tests/python/src/spectral/fft.py: remove abs, test passes in double precision

14 years agoconfigure.ac: add option to compile in double precision
Paul Brossier [Thu, 8 Oct 2009 01:09:43 +0000 (03:09 +0200)]
configure.ac: add option to compile in double precision

14 years agosrc/mathutils.c: indent, add parenthesis and initialise pos in fvec_min_elem needed
Paul Brossier [Thu, 8 Oct 2009 01:08:06 +0000 (03:08 +0200)]
src/mathutils.c: indent, add parenthesis and initialise pos in fvec_min_elem needed

14 years agoexamples/utils.c: remove unused variable
Paul Brossier [Thu, 8 Oct 2009 01:05:44 +0000 (03:05 +0200)]
examples/utils.c: remove unused variable

14 years agotests/python/src/temporal/c_weighting.py: add test for c_weighting
Paul Brossier [Thu, 8 Oct 2009 00:48:37 +0000 (02:48 +0200)]
tests/python/src/temporal/c_weighting.py: add test for c_weighting

14 years agotests/python/src/pitch/pitchdetection.py: update prototypes
Paul Brossier [Thu, 8 Oct 2009 00:42:21 +0000 (02:42 +0200)]
tests/python/src/pitch/pitchdetection.py: update prototypes

14 years agosrc/utils/hist.py: kill print
Paul Brossier [Thu, 8 Oct 2009 00:37:08 +0000 (02:37 +0200)]
src/utils/hist.py: kill print

14 years agotests/python/src/onset/peakpick.py: update to interpolated peak position
Paul Brossier [Thu, 8 Oct 2009 00:35:50 +0000 (02:35 +0200)]
tests/python/src/onset/peakpick.py: update to interpolated peak position

14 years agotests/python/src/temporal/: update a_weighting tests
Paul Brossier [Thu, 8 Oct 2009 00:13:38 +0000 (02:13 +0200)]
tests/python/src/temporal/: update a_weighting tests

14 years agotests/python: update template.py
Paul Brossier [Thu, 8 Oct 2009 00:10:10 +0000 (02:10 +0200)]
tests/python: update template.py

14 years agotests/python/src/temporal/filter.py: update imports
Paul Brossier [Thu, 8 Oct 2009 00:03:37 +0000 (02:03 +0200)]
tests/python/src/temporal/filter.py: update imports

14 years agosrc/spectral/filterbank.c: make sure we don't read outside of boundaries
Paul Brossier [Thu, 8 Oct 2009 00:02:11 +0000 (02:02 +0200)]
src/spectral/filterbank.c: make sure we don't read outside of boundaries

14 years agotests/python: updated filterbank test
Paul Brossier [Thu, 8 Oct 2009 00:00:52 +0000 (02:00 +0200)]
tests/python: updated filterbank test

14 years agotests/python: update imports
Paul Brossier [Wed, 7 Oct 2009 23:23:31 +0000 (01:23 +0200)]
tests/python: update imports

14 years agotests/python/localaubio.py: simplify, also import template
Paul Brossier [Wed, 7 Oct 2009 23:19:48 +0000 (01:19 +0200)]
tests/python/localaubio.py: simplify, also import template

14 years agosrc/spectral/filterbank_mel.{c,h}: rename _set_mel_coeffs to _set_triangle_bands...
Paul Brossier [Wed, 7 Oct 2009 21:32:42 +0000 (23:32 +0200)]
src/spectral/filterbank_mel.{c,h}: rename _set_mel_coeffs to _set_triangle_bands, add some warnings, setters return uint_t,

14 years agosrc/pitch/pitchmcomb.c: hide aubio_pitch_cands
Paul Brossier [Wed, 7 Oct 2009 21:27:41 +0000 (23:27 +0200)]
src/pitch/pitchmcomb.c: hide aubio_pitch_cands

14 years agosrc/onset/onset.c: rename aubio_onset to aubio_onset_do
Paul Brossier [Wed, 7 Oct 2009 21:24:54 +0000 (23:24 +0200)]
src/onset/onset.c: rename aubio_onset to aubio_onset_do

14 years agoplugins/puredata/aubioonset~.c: update peakpicker prototype
Paul Brossier [Wed, 7 Oct 2009 21:23:30 +0000 (23:23 +0200)]
plugins/puredata/aubioonset~.c: update peakpicker prototype

14 years agosrc/temporal/resample.c: rename aubio_resampler_process to aubio_resampler_do
Paul Brossier [Wed, 7 Oct 2009 21:21:15 +0000 (23:21 +0200)]
src/temporal/resample.c: rename aubio_resampler_process to aubio_resampler_do

14 years agosrc/utils/scale.c: rename aubio_scale_set to aubio_scale_set_limits
Paul Brossier [Wed, 7 Oct 2009 21:19:36 +0000 (23:19 +0200)]
src/utils/scale.c: rename aubio_scale_set to aubio_scale_set_limits

14 years agosrc/onset: rename aubio_onsetdetection to aubio_onsetdetection_do
Paul Brossier [Wed, 7 Oct 2009 20:58:25 +0000 (22:58 +0200)]
src/onset: rename aubio_onsetdetection to aubio_onsetdetection_do

14 years agosrc/onset/onsetdetection.c: remove unused variable
Paul Brossier [Wed, 7 Oct 2009 20:45:30 +0000 (22:45 +0200)]
src/onset/onsetdetection.c: remove unused variable

14 years agosrc/spectral/mfcc.c: add missing include
Paul Brossier [Wed, 7 Oct 2009 20:43:12 +0000 (22:43 +0200)]
src/spectral/mfcc.c: add missing include

14 years agosrc/tempo/tempo.{c,h}: rename aubio_tempo to aubio_tempo_do
Paul Brossier [Wed, 7 Oct 2009 20:34:07 +0000 (22:34 +0200)]
src/tempo/tempo.{c,h}: rename aubio_tempo to aubio_tempo_do

14 years agoplugins/puredata/aubioonset~.c: rename peakpicker
Paul Brossier [Wed, 7 Oct 2009 18:33:15 +0000 (20:33 +0200)]
plugins/puredata/aubioonset~.c: rename peakpicker

14 years agosrc/onset/peakpick.c: rename aubio_pickpeak_t to aubio_peakpicker_t
Paul Brossier [Wed, 7 Oct 2009 18:31:43 +0000 (20:31 +0200)]
src/onset/peakpick.c: rename aubio_pickpeak_t to aubio_peakpicker_t

14 years agotests/src/test-filter.c: avoid redefining o
Paul Brossier [Wed, 7 Oct 2009 18:11:00 +0000 (20:11 +0200)]
tests/src/test-filter.c: avoid redefining o

14 years agosrc/spectral/filterbank.{c,h}: add function to set coefficients
Paul Brossier [Wed, 7 Oct 2009 17:55:08 +0000 (19:55 +0200)]
src/spectral/filterbank.{c,h}: add function to set coefficients

14 years agotests/src/test-filter.c: improve, indent
Paul Brossier [Wed, 7 Oct 2009 17:39:11 +0000 (19:39 +0200)]
tests/src/test-filter.c: improve, indent

14 years agotests/src/test-pitch*: update pitch prototypes
Paul Brossier [Wed, 7 Oct 2009 17:36:31 +0000 (19:36 +0200)]
tests/src/test-pitch*: update pitch prototypes

14 years agosrc/pitch/: change all _detect prototypes to _do
Paul Brossier [Wed, 7 Oct 2009 17:33:51 +0000 (19:33 +0200)]
src/pitch/: change all _detect prototypes to _do

14 years agosrc/onset/onsetdetection.{c,h}: no need for function specific prototypes to be public
Paul Brossier [Wed, 7 Oct 2009 16:28:53 +0000 (18:28 +0200)]
src/onset/onsetdetection.{c,h}: no need for function specific prototypes to be public

14 years agosrc/mathutils.c: add aubio_is_power_of_two and aubio_next_power_of_two
Paul Brossier [Wed, 7 Oct 2009 16:26:59 +0000 (18:26 +0200)]
src/mathutils.c: add aubio_is_power_of_two and aubio_next_power_of_two

14 years agotests/src/test-peakpick.c: update peakpicker prototype
Paul Brossier [Tue, 6 Oct 2009 15:28:19 +0000 (17:28 +0200)]
tests/src/test-peakpick.c: update peakpicker prototype

14 years agoexamples/aubionotes.c: update peakpicker prototype
Paul Brossier [Tue, 6 Oct 2009 15:06:54 +0000 (17:06 +0200)]
examples/aubionotes.c: update peakpicker prototype

14 years agoexamples/aubioonset.c: use interpolated onset position
Paul Brossier [Tue, 6 Oct 2009 15:06:30 +0000 (17:06 +0200)]
examples/aubioonset.c: use interpolated onset position

14 years agopython/aubio/task/onset.py: isonset > 0., not == 1
Paul Brossier [Tue, 6 Oct 2009 15:04:45 +0000 (17:04 +0200)]
python/aubio/task/onset.py: isonset > 0., not == 1

14 years agopython/aubio/aubioclass.py: update peakpicker class
Paul Brossier [Tue, 6 Oct 2009 15:04:18 +0000 (17:04 +0200)]
python/aubio/aubioclass.py: update peakpicker class

14 years agoswig/aubio.i: update peakpicker interface, escape #if as needed
Paul Brossier [Tue, 6 Oct 2009 15:03:23 +0000 (17:03 +0200)]
swig/aubio.i: update peakpicker interface, escape #if as needed

14 years agosrc/onset/peakpick.h: clean up peakpicker object
Paul Brossier [Tue, 6 Oct 2009 15:02:54 +0000 (17:02 +0200)]
src/onset/peakpick.h: clean up peakpicker object

14 years agosrc/temporal/resample.c: include config,h before checking HAVE_SAMPLERATE
Paul Brossier [Tue, 6 Oct 2009 15:01:55 +0000 (17:01 +0200)]
src/temporal/resample.c: include config,h before checking HAVE_SAMPLERATE

14 years agointerfaces/python: add cvec and filter types
Paul Brossier [Tue, 6 Oct 2009 00:50:49 +0000 (02:50 +0200)]
interfaces/python: add cvec and filter types

14 years agointerfaces/python: add cvec and filter types
Paul Brossier [Tue, 6 Oct 2009 00:49:53 +0000 (02:49 +0200)]
interfaces/python: add cvec and filter types

14 years agoswig/aubio.i: update prototype
Paul Brossier [Mon, 5 Oct 2009 17:41:48 +0000 (19:41 +0200)]
swig/aubio.i: update prototype

14 years agosrc/onset/peakpick.c: use quadint in peakpick to get interpolated peak position,...
Paul Brossier [Mon, 5 Oct 2009 17:40:45 +0000 (19:40 +0200)]
src/onset/peakpick.c: use quadint in peakpick to get interpolated peak position, real in the range [0,2] in number of hop size

14 years agoswig/aubio.i: update set_a,c_weighting prototypes
Paul Brossier [Sun, 4 Oct 2009 22:31:37 +0000 (00:31 +0200)]
swig/aubio.i: update set_a,c_weighting prototypes

14 years agosrc/temporal/{a,c}_weighting.{c,h}: set_a,c_weighting return 1 on error, 0 on success
Paul Brossier [Sun, 4 Oct 2009 22:30:32 +0000 (00:30 +0200)]
src/temporal/{a,c}_weighting.{c,h}: set_a,c_weighting return 1 on error, 0 on success

14 years agopython/aubiomodule.c: move PyAubio_ArrayToFvec to py-fvec.c
Paul Brossier [Fri, 2 Oct 2009 13:39:33 +0000 (15:39 +0200)]
python/aubiomodule.c: move PyAubio_ArrayToFvec to py-fvec.c

14 years agopython/test_aubio.py: update unit tests
Paul Brossier [Fri, 2 Oct 2009 13:38:30 +0000 (15:38 +0200)]
python/test_aubio.py: update unit tests

14 years agopython/aubiomodule.c: add zero_crossing_rate and min_removal
Paul Brossier [Fri, 2 Oct 2009 09:24:08 +0000 (11:24 +0200)]
python/aubiomodule.c: add zero_crossing_rate and min_removal

14 years agopython/aubiomodule.c: PyAubio_ArrayToFvec to convert numpy array to a Py_fvec, no...
Paul Brossier [Fri, 2 Oct 2009 09:20:31 +0000 (11:20 +0200)]
python/aubiomodule.c: PyAubio_ArrayToFvec to convert numpy array to a Py_fvec, no copy

14 years agopython/py-fvec.c, python/aubio-types.g: define AUBIO_FLOAT, move default length and...
Paul Brossier [Fri, 2 Oct 2009 09:19:48 +0000 (11:19 +0200)]
python/py-fvec.c, python/aubio-types.g: define AUBIO_FLOAT, move default length and channels here, rename fvec to aubio.fvec

14 years agosrc/mathutils.{c,h}: loop over channels when possible, improve documentation, indent
Paul Brossier [Fri, 2 Oct 2009 04:11:07 +0000 (06:11 +0200)]
src/mathutils.{c,h}: loop over channels when possible, improve documentation, indent

14 years agosrc/mathutils.c: fix fvec_min_removal
Paul Brossier [Fri, 2 Oct 2009 00:14:06 +0000 (02:14 +0200)]
src/mathutils.c: fix fvec_min_removal

14 years agosrc/mathutils.c and co: use 0.0, not 0.0f
Paul Brossier [Fri, 2 Oct 2009 00:10:25 +0000 (02:10 +0200)]
src/mathutils.c and co: use 0.0, not 0.0f

14 years agosrc/mathutils.c: rename fvec_dc_removal to fvec_min_removal
Paul Brossier [Fri, 2 Oct 2009 00:05:23 +0000 (02:05 +0200)]
src/mathutils.c: rename fvec_dc_removal to fvec_min_removal

14 years agotests/src/: various updates
Paul Brossier [Thu, 1 Oct 2009 23:26:08 +0000 (01:26 +0200)]
tests/src/: various updates

14 years agosrc/mathutils.{c,h}: rename all vec_ to fvec_
Paul Brossier [Thu, 1 Oct 2009 23:19:10 +0000 (01:19 +0200)]
src/mathutils.{c,h}: rename all vec_ to fvec_

14 years agorename vec_min and vec_min_elem to fvec_min and fvec_max_elem
Paul Brossier [Thu, 1 Oct 2009 23:11:37 +0000 (01:11 +0200)]
rename vec_min and vec_min_elem to fvec_min and fvec_max_elem

14 years agorename vec_max and vec_max_elem to fvec_max fvec_max_elem
Paul Brossier [Thu, 1 Oct 2009 23:09:46 +0000 (01:09 +0200)]
rename vec_max and vec_max_elem to fvec_max fvec_max_elem