Changeset bcc5387
- Timestamp:
- Nov 26, 2018, 11:34:01 AM (6 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
- Children:
- 1cf031a
- Parents:
- 381a44e (diff), eda95c9 (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. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/filterbank.c
r381a44e rbcc5387 43 43 /* allocate space for filterbank object */ 44 44 aubio_filterbank_t *fb = AUBIO_NEW (aubio_filterbank_t); 45 46 if ((sint_t)n_filters <= 0) { 47 AUBIO_ERR("filterbank: n_filters should be > 0, got %d\n", n_filters); 48 goto fail; 49 } 50 if ((sint_t)win_s <= 0) { 51 AUBIO_ERR("filterbank: win_s should be > 0, got %d\n", win_s); 52 goto fail; 53 } 45 54 fb->win_s = win_s; 46 55 fb->n_filters = n_filters; … … 54 63 55 64 return fb; 65 fail: 66 AUBIO_FREE (fb); 67 return NULL; 56 68 } 57 69 -
tests/src/spectral/test-filterbank.c
r381a44e rbcc5387 8 8 cvec_t *in_spec = new_cvec (win_s); // input vector of samples 9 9 fvec_t *out_filters = new_fvec (n_filters); // per-band outputs 10 11 if (new_aubio_filterbank(0, win_s)) return 1; 12 if (new_aubio_filterbank(n_filters, 0)) return 1; 10 13 11 14 // create filterbank object
Note: See TracChangeset
for help on using the changeset viewer.