Changes in / [66a1b955:dddf1f5]
- Files:
-
- 48 added
- 39 deleted
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/Makefile.am
r66a1b955 rdddf1f5 28 28 (echo PROJECT_NUMBER = $(PROJECT_NUMBER) ; cat $(srcdir)/examples.cfg) | doxygen - 29 29 30 %.sgml: 31 32 %.1: %.sgml 30 .sgml.1: 33 31 docbook-to-man $< > $*.1 34 32 35 %.html: %.sgml 33 .sgml.html: 36 34 docbook2html $< && mv index.html $*.html 37 35 -
examples/Makefile.am
r66a1b955 rdddf1f5 7 7 aubioonset \ 8 8 aubiotrack \ 9 aubionotes 9 aubionotes \ 10 aubiomfcc 10 11 11 12 noinst_PROGRAMS = \ … … 19 20 aubiotrack_SOURCES = aubiotrack.c utils.c 20 21 aubioquiet_SOURCES = aubioquiet.c utils.c 22 aubiomfcc_SOURCES = aubiomfcc.c utils.c 21 23 22 24 aubioonset_LDADD = @JACK_LIBS@ … … 24 26 aubiotrack_LDADD = @JACK_LIBS@ 25 27 aubioquiet_LDADD = @JACK_LIBS@ 28 aubiomfcc_LDADD = @JACK_LIBS@ -
examples/utils.c
r66a1b955 rdddf1f5 174 174 else if (strcmp(optarg,"kl") == 0) 175 175 type_onset = aubio_onset_kl; 176 else if (strcmp(optarg,"specflux") == 0) 177 type_onset = aubio_onset_specflux; 176 178 else { 177 179 errmsg("unknown onset type.\n"); -
ext/sndfileio.c
r66a1b955 rdddf1f5 23 23 24 24 #include "aubio_priv.h" 25 #include " sample.h"25 #include "fvec.h" 26 26 #include "sndfileio.h" 27 27 #include "mathutils.h" -
python/aubio/aubioclass.py
r66a1b955 rdddf1f5 74 74 aubio_onsetdetection(self.od,tc(),tf()) 75 75 def __del__(self): 76 aubio_onsetdetection_free(self.od)76 del_aubio_onsetdetection(self.od) 77 77 78 78 class peakpick: -
python/aubio/task/utils.py
r66a1b955 rdddf1f5 17 17 elif nvalue == 'mkl' : 18 18 return aubio_onset_mkl 19 elif nvalue == 'specflux' : 20 return aubio_onset_specflux 19 21 elif nvalue == 'dual' : 20 22 return 'dual' 21 23 else: 22 24 import sys 23 print "unknown onset detection function selected "25 print "unknown onset detection function selected: %s" % nvalue 24 26 sys.exit(1) 25 27 -
src/Makefile.am
r66a1b955 rdddf1f5 2 2 pkginclude_HEADERS = aubio.h \ 3 3 types.h \ 4 phasevoc.h \5 mathutils.h \6 fft.h \7 sample.h \8 4 fvec.h \ 9 5 cvec.h \ 10 hist.h \ 11 scale.h \ 12 resample.h \ 13 onsetdetection.h \ 14 tss.h \ 15 peakpick.h \ 16 biquad.h \ 17 pitchdetection.h \ 18 pitchmcomb.h \ 19 pitchyin.h \ 20 pitchschmitt.h \ 21 pitchfcomb.h \ 22 pitchyinfft.h \ 23 beattracking.h \ 24 onset.h \ 25 tempo.h \ 26 filter.h 6 mathutils.h \ 7 utils/hist.h \ 8 utils/scale.h \ 9 temporal/resample.h \ 10 temporal/biquad.h \ 11 temporal/filter.h \ 12 spectral/filterbank.h \ 13 spectral/mfcc.c \ 14 spectral/phasevoc.h \ 15 spectral/fft.h \ 16 spectral/tss.h \ 17 spectral/spectral_centroid.h \ 18 pitch/pitchdetection.h \ 19 pitch/pitchmcomb.h \ 20 pitch/pitchyin.h \ 21 pitch/pitchschmitt.h \ 22 pitch/pitchfcomb.h \ 23 pitch/pitchyinfft.h \ 24 onset/onset.h \ 25 onset/onsetdetection.h \ 26 onset/peakpick.h \ 27 tempo/tempo.h \ 28 tempo/beattracking.h 29 27 30 nodist_pkginclude_HEADERS = config.h 28 31 … … 30 33 libaubio_la_SOURCES = aubio.h \ 31 34 types.h \ 32 phasevoc.c \33 phasevoc.h \34 mathutils.c \35 mathutils.h \36 fft.c \37 fft.h \38 35 fvec.c \ 39 36 fvec.h \ 40 37 cvec.c \ 41 38 cvec.h \ 42 hist.c \ 43 hist.h \ 44 scale.c \ 45 scale.h \ 46 resample.c \ 47 resample.h \ 48 onsetdetection.c \ 49 onsetdetection.h \ 50 tss.c \ 51 tss.h \ 52 peakpick.c \ 53 peakpick.h \ 54 biquad.c \ 55 biquad.h \ 56 pitchdetection.c \ 57 pitchdetection.h \ 58 pitchmcomb.c \ 59 pitchmcomb.h \ 60 pitchyin.c \ 61 pitchyin.h \ 62 pitchschmitt.c \ 63 pitchschmitt.h \ 64 pitchfcomb.c \ 65 pitchfcomb.h \ 66 pitchyinfft.c \ 67 pitchyinfft.h \ 68 beattracking.c \ 69 beattracking.h \ 70 onset.c \ 71 onset.h \ 72 tempo.c \ 73 tempo.h \ 74 filter.c \ 75 filter.h 39 mathutils.c \ 40 mathutils.h \ 41 utils/hist.c \ 42 utils/hist.h \ 43 utils/scale.c \ 44 utils/scale.h \ 45 temporal/resample.c \ 46 temporal/resample.h \ 47 temporal/biquad.c \ 48 temporal/biquad.h \ 49 temporal/filter.c \ 50 temporal/filter.h \ 51 spectral/filterbank.c \ 52 spectral/filterbank.h \ 53 spectral/mfcc.h \ 54 spectral/mfcc.c \ 55 spectral/phasevoc.c \ 56 spectral/phasevoc.h \ 57 spectral/fft.c \ 58 spectral/fft.h \ 59 spectral/tss.c \ 60 spectral/tss.h \ 61 spectral/spectral_centroid.c \ 62 spectral/spectral_centroid.h \ 63 pitch/pitchdetection.c \ 64 pitch/pitchdetection.h \ 65 pitch/pitchmcomb.c \ 66 pitch/pitchmcomb.h \ 67 pitch/pitchyin.c \ 68 pitch/pitchyin.h \ 69 pitch/pitchschmitt.c \ 70 pitch/pitchschmitt.h \ 71 pitch/pitchfcomb.c \ 72 pitch/pitchfcomb.h \ 73 pitch/pitchyinfft.c \ 74 pitch/pitchyinfft.h \ 75 onset/onset.c \ 76 onset/onset.h \ 77 onset/onsetdetection.c \ 78 onset/onsetdetection.h \ 79 onset/peakpick.c \ 80 onset/peakpick.h \ 81 tempo/tempo.c \ 82 tempo/tempo.h \ 83 tempo/beattracking.c \ 84 tempo/beattracking.h 76 85 77 86 AM_CFLAGS = @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ -
src/aubio.h
r66a1b955 rdddf1f5 59 59 /* in this order */ 60 60 #include "types.h" 61 #include "sample.h" 62 #include "fft.h" 63 #include "phasevoc.h" 61 #include "fvec.h" 62 #include "cvec.h" 64 63 #include "mathutils.h" 65 #include "scale.h" 66 #include "hist.h" 67 #include "onsetdetection.h" 68 #include "tss.h" 69 #include "resample.h" 70 #include "peakpick.h" 71 #include "biquad.h" 72 #include "filter.h" 73 #include "pitchdetection.h" 74 #include "pitchmcomb.h" 75 #include "pitchyin.h" 76 #include "pitchyinfft.h" 77 #include "pitchschmitt.h" 78 #include "pitchfcomb.h" 79 #include "beattracking.h" 80 #include "onset.h" 81 #include "tempo.h" 64 #include "utils/scale.h" 65 #include "utils/hist.h" 66 #include "spectral/tss.h" 67 #include "temporal/resample.h" 68 #include "temporal/biquad.h" 69 #include "temporal/filter.h" 70 #include "spectral/filterbank.h" 71 #include "spectral/mfcc.h" 72 #include "spectral/fft.h" 73 #include "spectral/phasevoc.h" 74 #include "spectral/spectral_centroid.h" 75 #include "pitch/pitchdetection.h" 76 #include "pitch/pitchmcomb.h" 77 #include "pitch/pitchyin.h" 78 #include "pitch/pitchyinfft.h" 79 #include "pitch/pitchschmitt.h" 80 #include "pitch/pitchfcomb.h" 81 #include "onset/onsetdetection.h" 82 #include "onset/onset.h" 83 #include "onset/peakpick.h" 84 #include "tempo/beattracking.h" 85 #include "tempo/tempo.h" 82 86 83 87 #ifdef __cplusplus -
src/fvec.c
r66a1b955 rdddf1f5 19 19 20 20 #include "aubio_priv.h" 21 #include " sample.h"21 #include "fvec.h" 22 22 23 23 fvec_t * new_fvec( uint_t length, uint_t channels) { -
src/mathutils.c
r66a1b955 rdddf1f5 21 21 22 22 #include "aubio_priv.h" 23 #include " sample.h"23 #include "fvec.h" 24 24 #include "mathutils.h" 25 25 #include "config.h" … … 227 227 /* pre part of the buffer does not exist */ 228 228 } else { 229 for (k=0;k<length-pos+post +1;k++)229 for (k=0;k<length-pos+post;k++) 230 230 medar[k] = vec->data[0][k+pos-post]; 231 for (k=length-pos+post +1;k<win_length;k++)231 for (k=length-pos+post;k<win_length;k++) 232 232 medar[k] = 0.; /* 0-padding at the end */ 233 233 } … … 433 433 } 434 434 435 smpl_t aubio_spectral_centroid(cvec_t * spectrum, smpl_t samplerate) {436 uint_t i=0, j;437 smpl_t sum = 0., sc = 0.;438 for ( j = 0; j < spectrum->length; j++ ) {439 sum += spectrum->norm[i][j];440 }441 if (sum == 0.) return 0.;442 for ( j = 0; j < spectrum->length; j++ ) {443 sc += (smpl_t)j * spectrum->norm[i][j];444 }445 return sc / sum * samplerate / (smpl_t)(spectrum->length);446 }447 448 435 void aubio_autocorr(fvec_t * input, fvec_t * output) { 449 436 uint_t i = 0, j = 0, length = input->length; -
src/mathutils.h
r66a1b955 rdddf1f5 209 209 smpl_t aubio_zero_crossing_rate(fvec_t * input); 210 210 /** 211 * spectrum centroid computed on a cvec212 */213 smpl_t aubio_spectral_centroid(cvec_t * input, smpl_t samplerate);214 /**215 211 * clean up cached memory at the end of program 216 212 * -
swig/aubio.i
r66a1b955 rdddf1f5 155 155 smpl_t aubio_spectral_centroid(cvec_t * spectrum, smpl_t samplerate); 156 156 157 /* filterbank */ 158 aubio_filterbank_t * new_aubio_filterbank(uint_t win_s, uint_t channels); 159 aubio_filterbank_t * new_aubio_filterbank_mfcc(uint_t n_filters, uint_t win_s, uint_t samplerate, smpl_t freq_min, smpl_t freq_max); 160 void del_aubio_filterbank(aubio_filterbank_t * fb); 161 void aubio_filterbank_do(aubio_filterbank_t * fb, cvec_t * in, fvec_t *out); 162 fvec_t * aubio_filterbank_getchannel(aubio_filterbank_t * fb, uint_t channel); 163 164 /* mfcc */ 165 aubio_mfcc_t * new_aubio_mfcc (uint_t win_s, uint_t samplerate, uint_t n_filters, uint_t n_coefs, smpl_t lowfreq, smpl_t highfreq, uint_t channels); 166 void del_aubio_mfcc(aubio_mfcc_t *mf); 167 void aubio_mfcc_do(aubio_mfcc_t *mf, cvec_t *in, fvec_t *out); 168 157 169 /* scale */ 158 170 extern aubio_scale_t * new_aubio_scale(smpl_t flow, smpl_t fhig, smpl_t ilow, smpl_t ihig ); … … 174 186 aubio_onset_phase, 175 187 aubio_onset_kl, 176 aubio_onset_mkl 188 aubio_onset_mkl, 189 aubio_onset_specflux, 177 190 } aubio_onsetdetection_type; 178 191 aubio_onsetdetection_t * new_aubio_onsetdetection(aubio_onsetdetection_type type, uint_t size, uint_t channels); 179 192 void aubio_onsetdetection(aubio_onsetdetection_t *o, cvec_t * fftgrain, fvec_t * onset); 193 void del_aubio_onsetdetection(aubio_onsetdetection_t *o); 180 194 181 195 /* should these still be exposed ? */ -
tests/python/examples/aubiopitch.py
r66a1b955 rdddf1f5 53 53 self.getOutput() 54 54 expected_output = open(os.path.join('examples','aubiopitch','yinfft'+'.'+os.path.basename(self.filename)+'.txt')).read() 55 lines = 0 55 56 for line_out, line_exp in zip(self.output.split('\n'), expected_output.split('\n')): 56 assert line_out == line_exp, line_exp + " vs. " + line_out 57 try: 58 assert line_exp == line_out, line_exp + " vs. " + line_out + " at line " + str(lines) 59 except: 60 open(os.path.join('examples','aubiopitch','yinfft'+'.'+os.path.basename(self.filename)+'.txt.out'),'w').write(self.output) 61 raise 62 lines += 1 57 63 58 64 if __name__ == '__main__': unittest.main() -
tests/src/test-tempo.c
r66a1b955 rdddf1f5 19 19 return 1; 20 20 } 21 curtempoconf = aubio_ beattracking_get_confidence(o);21 curtempoconf = aubio_tempo_get_confidence(o); 22 22 if (curtempoconf != 0.) { 23 23 fprintf(stdout,"%f\n",curtempo);
Note: See TracChangeset
for help on using the changeset viewer.