Changeset dc467b5d for tests/src/spectral/test-filterbank_mel.c
- Timestamp:
- Oct 27, 2013, 12:44:29 PM (11 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:
- 8247249
- Parents:
- dd15573 (diff), 7fc5ba2 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/spectral/test-filterbank_mel.c
rdd15573 rdc467b5d 9 9 cvec_t *in_spec = new_cvec (win_s); // input vector of samples 10 10 fvec_t *out_filters = new_fvec (n_filters); // per-band outputs 11 fmat_t *coeffs; // pointer to the coefficients12 11 13 12 // create filterbank object … … 17 16 aubio_filterbank_set_mel_coeffs_slaney (o, samplerate); 18 17 18 // apply filterbank ten times 19 uint_t n = 10; 20 while (n) { 21 aubio_filterbank_do (o, in_spec, out_filters); 22 n--; 23 } 24 25 // print out filter coefficients 26 fmat_t *coeffs; // pointer to the coefficients 19 27 coeffs = aubio_filterbank_get_coeffs (o); 28 fmat_print (coeffs); 20 29 21 aubio_filterbank_do (o, in_spec, out_filters); 22 23 // fmat_print (coeffs); 24 // cvec_print(in_spec); 25 // fvec_print(out_filters); 30 //fvec_print (out_filters); 26 31 27 32 del_aubio_filterbank (o);
Note: See TracChangeset
for help on using the changeset viewer.