Changeset feb694b for src/spectral
- Timestamp:
- Apr 21, 2016, 7:36:56 PM (9 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 00819aa
- Parents:
- ce3ff2b
- Location:
- src/spectral
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/fft.c
rce3ff2b rfeb694b 231 231 } 232 232 233 void aubio_fft_do(aubio_fft_t * s, fvec_t * input, cvec_t * spectrum) {233 void aubio_fft_do(aubio_fft_t * s, const fvec_t * input, cvec_t * spectrum) { 234 234 aubio_fft_do_complex(s, input, s->compspec); 235 235 aubio_fft_get_spectrum(s->compspec, spectrum); 236 236 } 237 237 238 void aubio_fft_rdo(aubio_fft_t * s, c vec_t * spectrum, fvec_t * output) {238 void aubio_fft_rdo(aubio_fft_t * s, const cvec_t * spectrum, fvec_t * output) { 239 239 aubio_fft_get_realimag(spectrum, s->compspec); 240 240 aubio_fft_rdo_complex(s, s->compspec, output); 241 241 } 242 242 243 void aubio_fft_do_complex(aubio_fft_t * s, fvec_t * input, fvec_t * compspec) {243 void aubio_fft_do_complex(aubio_fft_t * s, const fvec_t * input, fvec_t * compspec) { 244 244 uint_t i; 245 245 #ifndef HAVE_MEMCPY_HACKS … … 292 292 } 293 293 294 void aubio_fft_rdo_complex(aubio_fft_t * s, fvec_t * compspec, fvec_t * output) {294 void aubio_fft_rdo_complex(aubio_fft_t * s, const fvec_t * compspec, fvec_t * output) { 295 295 uint_t i; 296 296 #ifdef HAVE_FFTW3 … … 347 347 } 348 348 349 void aubio_fft_get_spectrum( fvec_t * compspec, cvec_t * spectrum) {349 void aubio_fft_get_spectrum(const fvec_t * compspec, cvec_t * spectrum) { 350 350 aubio_fft_get_phas(compspec, spectrum); 351 351 aubio_fft_get_norm(compspec, spectrum); 352 352 } 353 353 354 void aubio_fft_get_realimag(c vec_t * spectrum, fvec_t * compspec) {354 void aubio_fft_get_realimag(const cvec_t * spectrum, fvec_t * compspec) { 355 355 aubio_fft_get_imag(spectrum, compspec); 356 356 aubio_fft_get_real(spectrum, compspec); 357 357 } 358 358 359 void aubio_fft_get_phas( fvec_t * compspec, cvec_t * spectrum) {359 void aubio_fft_get_phas(const fvec_t * compspec, cvec_t * spectrum) { 360 360 uint_t i; 361 361 if (compspec->data[0] < 0) { … … 375 375 } 376 376 377 void aubio_fft_get_norm( fvec_t * compspec, cvec_t * spectrum) {377 void aubio_fft_get_norm(const fvec_t * compspec, cvec_t * spectrum) { 378 378 uint_t i = 0; 379 379 spectrum->norm[0] = ABS(compspec->data[0]); … … 386 386 } 387 387 388 void aubio_fft_get_imag(c vec_t * spectrum, fvec_t * compspec) {388 void aubio_fft_get_imag(const cvec_t * spectrum, fvec_t * compspec) { 389 389 uint_t i; 390 390 for (i = 1; i < ( compspec->length + 1 ) / 2 /*- 1 + 1*/; i++) { … … 394 394 } 395 395 396 void aubio_fft_get_real(c vec_t * spectrum, fvec_t * compspec) {396 void aubio_fft_get_real(const cvec_t * spectrum, fvec_t * compspec) { 397 397 uint_t i; 398 398 for (i = 0; i < compspec->length / 2 + 1; i++) { -
src/spectral/fft.h
rce3ff2b rfeb694b 66 66 67 67 */ 68 void aubio_fft_do (aubio_fft_t *s, fvec_t * input, cvec_t * spectrum);68 void aubio_fft_do (aubio_fft_t *s, const fvec_t * input, cvec_t * spectrum); 69 69 /** compute backward (inverse) FFT 70 70 … … 74 74 75 75 */ 76 void aubio_fft_rdo (aubio_fft_t *s, c vec_t * spectrum, fvec_t * output);76 void aubio_fft_rdo (aubio_fft_t *s, const cvec_t * spectrum, fvec_t * output); 77 77 78 78 /** compute forward FFT … … 83 83 84 84 */ 85 void aubio_fft_do_complex (aubio_fft_t *s, fvec_t * input, fvec_t * compspec);85 void aubio_fft_do_complex (aubio_fft_t *s, const fvec_t * input, fvec_t * compspec); 86 86 /** compute backward (inverse) FFT from real/imag 87 87 … … 91 91 92 92 */ 93 void aubio_fft_rdo_complex (aubio_fft_t *s, fvec_t * compspec, fvec_t * output);93 void aubio_fft_rdo_complex (aubio_fft_t *s, const fvec_t * compspec, fvec_t * output); 94 94 95 95 /** convert real/imag spectrum to norm/phas spectrum … … 99 99 100 100 */ 101 void aubio_fft_get_spectrum( fvec_t * compspec, cvec_t * spectrum);101 void aubio_fft_get_spectrum(const fvec_t * compspec, cvec_t * spectrum); 102 102 /** convert real/imag spectrum to norm/phas spectrum 103 103 … … 106 106 107 107 */ 108 void aubio_fft_get_realimag(c vec_t * spectrum, fvec_t * compspec);108 void aubio_fft_get_realimag(const cvec_t * spectrum, fvec_t * compspec); 109 109 110 110 /** compute phas spectrum from real/imag parts … … 114 114 115 115 */ 116 void aubio_fft_get_phas( fvec_t * compspec, cvec_t * spectrum);116 void aubio_fft_get_phas(const fvec_t * compspec, cvec_t * spectrum); 117 117 /** compute imaginary part from the norm/phas cvec 118 118 … … 121 121 122 122 */ 123 void aubio_fft_get_imag(c vec_t * spectrum, fvec_t * compspec);123 void aubio_fft_get_imag(const cvec_t * spectrum, fvec_t * compspec); 124 124 125 125 /** compute norm component from real/imag parts … … 129 129 130 130 */ 131 void aubio_fft_get_norm( fvec_t * compspec, cvec_t * spectrum);131 void aubio_fft_get_norm(const fvec_t * compspec, cvec_t * spectrum); 132 132 /** compute real part from norm/phas components 133 133 … … 136 136 137 137 */ 138 void aubio_fft_get_real(c vec_t * spectrum, fvec_t * compspec);138 void aubio_fft_get_real(const cvec_t * spectrum, fvec_t * compspec); 139 139 140 140 #ifdef __cplusplus -
src/spectral/filterbank.c
rce3ff2b rfeb694b 57 57 58 58 void 59 aubio_filterbank_do (aubio_filterbank_t * f, c vec_t * in, fvec_t * out)59 aubio_filterbank_do (aubio_filterbank_t * f, const cvec_t * in, fvec_t * out) 60 60 { 61 61 /* apply filter to all input channel, provided out has enough channels */ … … 74 74 75 75 fmat_t * 76 aubio_filterbank_get_coeffs ( aubio_filterbank_t * f)76 aubio_filterbank_get_coeffs (const aubio_filterbank_t * f) 77 77 { 78 78 return f->filters; … … 80 80 81 81 uint_t 82 aubio_filterbank_set_coeffs (aubio_filterbank_t * f, fmat_t * filter_coeffs)82 aubio_filterbank_set_coeffs (aubio_filterbank_t * f, const fmat_t * filter_coeffs) 83 83 { 84 84 fmat_copy(filter_coeffs, f->filters); -
src/spectral/filterbank.h
rce3ff2b rfeb694b 67 67 68 68 */ 69 void aubio_filterbank_do (aubio_filterbank_t * f, c vec_t * in, fvec_t * out);69 void aubio_filterbank_do (aubio_filterbank_t * f, const cvec_t * in, fvec_t * out); 70 70 71 71 /** return a pointer to the matrix object containing all filter coefficients … … 74 74 75 75 */ 76 fmat_t *aubio_filterbank_get_coeffs ( aubio_filterbank_t * f);76 fmat_t *aubio_filterbank_get_coeffs (const aubio_filterbank_t * f); 77 77 78 78 /** copy filter coefficients to the filterbank … … 82 82 83 83 */ 84 uint_t aubio_filterbank_set_coeffs (aubio_filterbank_t * f, fmat_t * filters);84 uint_t aubio_filterbank_set_coeffs (aubio_filterbank_t * f, const fmat_t * filters); 85 85 86 86 #ifdef __cplusplus -
src/spectral/filterbank_mel.c
rce3ff2b rfeb694b 30 30 uint_t 31 31 aubio_filterbank_set_triangle_bands (aubio_filterbank_t * fb, 32 fvec_t * freqs, smpl_t samplerate)32 const fvec_t * freqs, smpl_t samplerate) 33 33 { 34 34 -
src/spectral/filterbank_mel.h
rce3ff2b rfeb694b 51 51 */ 52 52 uint_t aubio_filterbank_set_triangle_bands (aubio_filterbank_t * fb, 53 fvec_t * freqs, smpl_t samplerate);53 const fvec_t * freqs, smpl_t samplerate); 54 54 55 55 /** filterbank initialization for Mel filters using Slaney's coefficients -
src/spectral/mfcc.c
rce3ff2b rfeb694b 101 101 102 102 void 103 aubio_mfcc_do (aubio_mfcc_t * mf, c vec_t * in, fvec_t * out)103 aubio_mfcc_do (aubio_mfcc_t * mf, const cvec_t * in, fvec_t * out) 104 104 { 105 105 /* compute filterbank */ -
src/spectral/mfcc.h
rce3ff2b rfeb694b 71 71 72 72 */ 73 void aubio_mfcc_do (aubio_mfcc_t * mf, c vec_t * in, fvec_t * out);73 void aubio_mfcc_do (aubio_mfcc_t * mf, const cvec_t * in, fvec_t * out); 74 74 75 75 #ifdef __cplusplus -
src/spectral/phasevoc.c
rce3ff2b rfeb694b 45 45 46 46 /** returns data and dataold slided by hop_s */ 47 static void aubio_pvoc_swapbuffers(aubio_pvoc_t *pv, fvec_t *new);47 static void aubio_pvoc_swapbuffers(aubio_pvoc_t *pv, const fvec_t *new); 48 48 49 49 /** do additive synthesis from 'old' and 'cur' */ 50 50 static void aubio_pvoc_addsynth(aubio_pvoc_t *pv, fvec_t * synthnew); 51 51 52 void aubio_pvoc_do(aubio_pvoc_t *pv, fvec_t * datanew, cvec_t *fftgrain) {52 void aubio_pvoc_do(aubio_pvoc_t *pv, const fvec_t * datanew, cvec_t *fftgrain) { 53 53 /* slide */ 54 54 aubio_pvoc_swapbuffers(pv, datanew); … … 137 137 } 138 138 139 static void aubio_pvoc_swapbuffers(aubio_pvoc_t *pv, fvec_t *new)139 static void aubio_pvoc_swapbuffers(aubio_pvoc_t *pv, const fvec_t *new) 140 140 { 141 141 /* some convenience pointers */ -
src/spectral/phasevoc.h
rce3ff2b rfeb694b 68 68 69 69 */ 70 void aubio_pvoc_do(aubio_pvoc_t *pv, fvec_t *in, cvec_t * fftgrain);70 void aubio_pvoc_do(aubio_pvoc_t *pv, const fvec_t *in, cvec_t * fftgrain); 71 71 /** compute signal from spectral frame 72 72 -
src/spectral/specdesc.c
rce3ff2b rfeb694b 27 27 #include "utils/hist.h" 28 28 29 void aubio_specdesc_energy(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);30 void aubio_specdesc_hfc(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);31 void aubio_specdesc_complex(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);32 void aubio_specdesc_phase(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);33 void aubio_specdesc_specdiff(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);34 void aubio_specdesc_kl(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);35 void aubio_specdesc_mkl(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);36 void aubio_specdesc_specflux(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset);37 38 extern void aubio_specdesc_centroid (aubio_specdesc_t * o, c vec_t * spec,39 fvec_t * desc); 40 extern void aubio_specdesc_spread (aubio_specdesc_t * o, c vec_t * spec,41 fvec_t * desc); 42 extern void aubio_specdesc_skewness (aubio_specdesc_t * o, c vec_t * spec,43 fvec_t * desc); 44 extern void aubio_specdesc_kurtosis (aubio_specdesc_t * o, c vec_t * spec,45 fvec_t * desc); 46 extern void aubio_specdesc_slope (aubio_specdesc_t * o, c vec_t * spec,47 fvec_t * desc); 48 extern void aubio_specdesc_decrease (aubio_specdesc_t * o, c vec_t * spec,49 fvec_t * desc); 50 extern void aubio_specdesc_rolloff (aubio_specdesc_t * o, c vec_t * spec,29 void aubio_specdesc_energy(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 30 void aubio_specdesc_hfc(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 31 void aubio_specdesc_complex(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 32 void aubio_specdesc_phase(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 33 void aubio_specdesc_specdiff(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 34 void aubio_specdesc_kl(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 35 void aubio_specdesc_mkl(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 36 void aubio_specdesc_specflux(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset); 37 38 extern void aubio_specdesc_centroid (aubio_specdesc_t * o, const cvec_t * spec, 39 fvec_t * desc); 40 extern void aubio_specdesc_spread (aubio_specdesc_t * o, const cvec_t * spec, 41 fvec_t * desc); 42 extern void aubio_specdesc_skewness (aubio_specdesc_t * o, const cvec_t * spec, 43 fvec_t * desc); 44 extern void aubio_specdesc_kurtosis (aubio_specdesc_t * o, const cvec_t * spec, 45 fvec_t * desc); 46 extern void aubio_specdesc_slope (aubio_specdesc_t * o, const cvec_t * spec, 47 fvec_t * desc); 48 extern void aubio_specdesc_decrease (aubio_specdesc_t * o, const cvec_t * spec, 49 fvec_t * desc); 50 extern void aubio_specdesc_rolloff (aubio_specdesc_t * o, const cvec_t * spec, 51 51 fvec_t * desc); 52 52 … … 76 76 /** Pointer to aubio_specdesc_<type> function */ 77 77 void (*funcpointer)(aubio_specdesc_t *o, 78 c vec_t * fftgrain, fvec_t * onset);78 const cvec_t * fftgrain, fvec_t * onset); 79 79 smpl_t threshold; /**< minimum norm threshold for phase and specdiff */ 80 80 fvec_t *oldmag; /**< previous norm vector */ … … 88 88 /* Energy based onset detection function */ 89 89 void aubio_specdesc_energy (aubio_specdesc_t *o UNUSED, 90 c vec_t * fftgrain, fvec_t * onset) {90 const cvec_t * fftgrain, fvec_t * onset) { 91 91 uint_t j; 92 92 onset->data[0] = 0.; … … 98 98 /* High Frequency Content onset detection function */ 99 99 void aubio_specdesc_hfc(aubio_specdesc_t *o UNUSED, 100 c vec_t * fftgrain, fvec_t * onset){100 const cvec_t * fftgrain, fvec_t * onset){ 101 101 uint_t j; 102 102 onset->data[0] = 0.; … … 108 108 109 109 /* Complex Domain Method onset detection function */ 110 void aubio_specdesc_complex (aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset) {110 void aubio_specdesc_complex (aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset) { 111 111 uint_t j; 112 112 uint_t nbins = fftgrain->length; … … 132 132 /* Phase Based Method onset detection function */ 133 133 void aubio_specdesc_phase(aubio_specdesc_t *o, 134 c vec_t * fftgrain, fvec_t * onset){134 const cvec_t * fftgrain, fvec_t * onset){ 135 135 uint_t j; 136 136 uint_t nbins = fftgrain->length; … … 162 162 /* Spectral difference method onset detection function */ 163 163 void aubio_specdesc_specdiff(aubio_specdesc_t *o, 164 c vec_t * fftgrain, fvec_t * onset){164 const cvec_t * fftgrain, fvec_t * onset){ 165 165 uint_t j; 166 166 uint_t nbins = fftgrain->length; … … 189 189 * note we use ln(1+Xn/(Xn-1+0.0001)) to avoid 190 190 * negative (1.+) and infinite values (+1.e-10) */ 191 void aubio_specdesc_kl(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset){191 void aubio_specdesc_kl(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset){ 192 192 uint_t j; 193 193 onset->data[0] = 0.; … … 203 203 * note we use ln(1+Xn/(Xn-1+0.0001)) to avoid 204 204 * negative (1.+) and infinite values (+1.e-10) */ 205 void aubio_specdesc_mkl(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset){205 void aubio_specdesc_mkl(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset){ 206 206 uint_t j; 207 207 onset->data[0] = 0.; … … 214 214 215 215 /* Spectral flux */ 216 void aubio_specdesc_specflux(aubio_specdesc_t *o, c vec_t * fftgrain, fvec_t * onset){216 void aubio_specdesc_specflux(aubio_specdesc_t *o, const cvec_t * fftgrain, fvec_t * onset){ 217 217 uint_t j; 218 218 onset->data[0] = 0.; … … 226 226 /* Generic function pointing to the choosen one */ 227 227 void 228 aubio_specdesc_do (aubio_specdesc_t *o, c vec_t * fftgrain,228 aubio_specdesc_do (aubio_specdesc_t *o, const cvec_t * fftgrain, 229 229 fvec_t * onset) { 230 230 o->funcpointer(o,fftgrain,onset); … … 235 235 */ 236 236 aubio_specdesc_t * 237 new_aubio_specdesc (c har_t * onset_mode, uint_t size){237 new_aubio_specdesc (const char_t * onset_mode, uint_t size){ 238 238 aubio_specdesc_t * o = AUBIO_NEW(aubio_specdesc_t); 239 239 uint_t rsize = size/2+1; -
src/spectral/specdesc.h
rce3ff2b rfeb694b 165 165 166 166 */ 167 void aubio_specdesc_do (aubio_specdesc_t * o, c vec_t * fftgrain,167 void aubio_specdesc_do (aubio_specdesc_t * o, const cvec_t * fftgrain, 168 168 fvec_t * desc); 169 169 … … 179 179 180 180 */ 181 aubio_specdesc_t *new_aubio_specdesc (c har_t * method, uint_t buf_size);181 aubio_specdesc_t *new_aubio_specdesc (const char_t * method, uint_t buf_size); 182 182 183 183 /** deletion of a spectral descriptor -
src/spectral/statistics.c
rce3ff2b rfeb694b 23 23 #include "spectral/specdesc.h" 24 24 25 void aubio_specdesc_centroid (aubio_specdesc_t * o, c vec_t * spec,26 fvec_t * desc); 27 void aubio_specdesc_spread (aubio_specdesc_t * o, c vec_t * spec,28 fvec_t * desc); 29 void aubio_specdesc_skewness (aubio_specdesc_t * o, c vec_t * spec,30 fvec_t * desc); 31 void aubio_specdesc_kurtosis (aubio_specdesc_t * o, c vec_t * spec,32 fvec_t * desc); 33 void aubio_specdesc_slope (aubio_specdesc_t * o, c vec_t * spec,34 fvec_t * desc); 35 void aubio_specdesc_decrease (aubio_specdesc_t * o, c vec_t * spec,36 fvec_t * desc); 37 void aubio_specdesc_rolloff (aubio_specdesc_t * o, c vec_t * spec,38 fvec_t * desc); 39 40 41 smpl_t cvec_sum (c vec_t * s);42 smpl_t cvec_mean (c vec_t * s);43 smpl_t cvec_centroid (c vec_t * s);44 smpl_t cvec_moment (c vec_t * s, uint_t moment);45 46 smpl_t 47 cvec_sum (c vec_t * s)25 void aubio_specdesc_centroid (aubio_specdesc_t * o, const cvec_t * spec, 26 fvec_t * desc); 27 void aubio_specdesc_spread (aubio_specdesc_t * o, const cvec_t * spec, 28 fvec_t * desc); 29 void aubio_specdesc_skewness (aubio_specdesc_t * o, const cvec_t * spec, 30 fvec_t * desc); 31 void aubio_specdesc_kurtosis (aubio_specdesc_t * o, const cvec_t * spec, 32 fvec_t * desc); 33 void aubio_specdesc_slope (aubio_specdesc_t * o, const cvec_t * spec, 34 fvec_t * desc); 35 void aubio_specdesc_decrease (aubio_specdesc_t * o, const cvec_t * spec, 36 fvec_t * desc); 37 void aubio_specdesc_rolloff (aubio_specdesc_t * o, const cvec_t * spec, 38 fvec_t * desc); 39 40 41 smpl_t cvec_sum (const cvec_t * s); 42 smpl_t cvec_mean (const cvec_t * s); 43 smpl_t cvec_centroid (const cvec_t * s); 44 smpl_t cvec_moment (const cvec_t * s, uint_t moment); 45 46 smpl_t 47 cvec_sum (const cvec_t * s) 48 48 { 49 49 uint_t j; … … 56 56 57 57 smpl_t 58 cvec_mean (c vec_t * s)58 cvec_mean (const cvec_t * s) 59 59 { 60 60 return cvec_sum (s) / (smpl_t) (s->length); … … 62 62 63 63 smpl_t 64 cvec_centroid (c vec_t * spec)64 cvec_centroid (const cvec_t * spec) 65 65 { 66 66 smpl_t sum = 0., sc = 0.; … … 78 78 79 79 smpl_t 80 cvec_moment (c vec_t * spec, uint_t order)80 cvec_moment (const cvec_t * spec, uint_t order) 81 81 { 82 82 smpl_t sum = 0., centroid = 0., sc = 0.; … … 95 95 96 96 void 97 aubio_specdesc_centroid (aubio_specdesc_t * o UNUSED, c vec_t * spec,97 aubio_specdesc_centroid (aubio_specdesc_t * o UNUSED, const cvec_t * spec, 98 98 fvec_t * desc) 99 99 { … … 102 102 103 103 void 104 aubio_specdesc_spread (aubio_specdesc_t * o UNUSED, c vec_t * spec,104 aubio_specdesc_spread (aubio_specdesc_t * o UNUSED, const cvec_t * spec, 105 105 fvec_t * desc) 106 106 { … … 109 109 110 110 void 111 aubio_specdesc_skewness (aubio_specdesc_t * o UNUSED, c vec_t * spec,111 aubio_specdesc_skewness (aubio_specdesc_t * o UNUSED, const cvec_t * spec, 112 112 fvec_t * desc) 113 113 { … … 123 123 124 124 void 125 aubio_specdesc_kurtosis (aubio_specdesc_t * o UNUSED, c vec_t * spec,125 aubio_specdesc_kurtosis (aubio_specdesc_t * o UNUSED, const cvec_t * spec, 126 126 fvec_t * desc) 127 127 { … … 137 137 138 138 void 139 aubio_specdesc_slope (aubio_specdesc_t * o UNUSED, c vec_t * spec,139 aubio_specdesc_slope (aubio_specdesc_t * o UNUSED, const cvec_t * spec, 140 140 fvec_t * desc) 141 141 { … … 165 165 166 166 void 167 aubio_specdesc_decrease (aubio_specdesc_t *o UNUSED, c vec_t * spec,167 aubio_specdesc_decrease (aubio_specdesc_t *o UNUSED, const cvec_t * spec, 168 168 fvec_t * desc) 169 169 { … … 183 183 184 184 void 185 aubio_specdesc_rolloff (aubio_specdesc_t *o UNUSED, c vec_t * spec,185 aubio_specdesc_rolloff (aubio_specdesc_t *o UNUSED, const cvec_t * spec, 186 186 fvec_t *desc) 187 187 { -
src/spectral/tss.c
rce3ff2b rfeb694b 41 41 }; 42 42 43 void aubio_tss_do(aubio_tss_t *o, c vec_t * input,43 void aubio_tss_do(aubio_tss_t *o, const cvec_t * input, 44 44 cvec_t * trans, cvec_t * stead) 45 45 { -
src/spectral/tss.h
rce3ff2b rfeb694b 70 70 71 71 */ 72 void aubio_tss_do (aubio_tss_t * o, c vec_t * input, cvec_t * trans,72 void aubio_tss_do (aubio_tss_t * o, const cvec_t * input, cvec_t * trans, 73 73 cvec_t * stead); 74 74
Note: See TracChangeset
for help on using the changeset viewer.