Changeset a5c6182 for src/spectral
- Timestamp:
- Nov 17, 2018, 3:20:41 PM (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:
- c5de692
- Parents:
- c853c1d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/filterbank_mel.c
rc853c1d ra5c6182 173 173 uint_t retval; 174 174 175 if (samplerate <= 0) {176 AUBIO_ERR("filterbank: set_mel_coeffs_slaney samplerate should be > 0\n");177 return AUBIO_FAIL;178 }179 180 175 /* Malcolm Slaney parameters */ 181 176 smpl_t lowestFrequency = 133.3333; … … 192 187 193 188 /* buffers to compute filter frequencies */ 194 fvec_t *freqs = new_fvec (n_filters + 2); 189 fvec_t *freqs; 190 191 if (samplerate <= 0) { 192 AUBIO_ERR("filterbank: set_mel_coeffs_slaney samplerate should be > 0\n"); 193 return AUBIO_FAIL; 194 } 195 196 freqs = new_fvec (n_filters + 2); 195 197 196 198 /* first step: fill all the linear filter frequencies */
Note: See TracChangeset
for help on using the changeset viewer.