Changeset fe28ff3 for src/aubiofilterbank.c
- Timestamp:
- Sep 5, 2007, 9:37:09 PM (17 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:
- 71d3bf0
- Parents:
- 88199ce
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/aubiofilterbank.c
r88199ce rfe28ff3 25 25 // Initialization 26 26 27 int aubio_mfcc_init(int N, float nyquist, int style, float freq_min, float freq_max, int freq_bands, float **fft_tables){27 int aubio_mfcc_init(int N, smpl_t nyquist, int style, smpl_t freq_min, smpl_t freq_max, int freq_bands, smpl_t **fft_tables){ 28 28 29 29 int n, i, k, *fft_peak, M, next_peak; 30 float norm, mel_freq_max, mel_freq_min, norm_fact, height, inc, val,30 smpl_t norm, mel_freq_max, mel_freq_min, norm_fact, height, inc, val, 31 31 freq_bw_mel, *mel_peak, *height_norm, *lin_peak; 32 32 … … 39 39 freq_bw_mel = (mel_freq_max - mel_freq_min) / freq_bands; 40 40 41 mel_peak = ( float *)malloc((freq_bands + 2) * sizeof(float));41 mel_peak = (smpl_t *)malloc((freq_bands + 2) * sizeof(smpl_t)); 42 42 /* +2 for zeros at start and end */ 43 lin_peak = ( float *)malloc((freq_bands + 2) * sizeof(float));43 lin_peak = (smpl_t *)malloc((freq_bands + 2) * sizeof(smpl_t)); 44 44 fft_peak = (int *)malloc((freq_bands + 2) * sizeof(int)); 45 height_norm = ( float *)malloc(freq_bands * sizeof(float));45 height_norm = (smpl_t *)malloc(freq_bands * sizeof(smpl_t)); 46 46 47 47 if(mel_peak == NULL || height_norm == NULL ||
Note: See TracChangeset
for help on using the changeset viewer.