Changeset d37400c
- Timestamp:
- Sep 28, 2009, 9:19:40 PM (15 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:
- 6940b55
- Parents:
- fd6b90f
- Location:
- src/spectral
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/filterbank.c
rfd6b90f rd37400c 25 25 #include "spectral/filterbank.h" 26 26 #include "mathutils.h" 27 28 #define VERY_SMALL_NUMBER 2e-4229 27 30 28 /** \brief A structure to store a set of n_filters filters of lenghts win_s */ … … 79 77 out->data[i][fn] += in->norm[i][j] * f->filters->data[fn][j]; 80 78 } 81 82 /* threshold to VERY_SMALL_NUMBER to avoid log oveflow */83 out->data[i][fn] = MAX (VERY_SMALL_NUMBER, out->data[i][fn]);84 85 /* compute logarithm */86 out->data[i][fn] = LOG10 (out->data[i][fn]);87 79 } 88 80 } -
src/spectral/mfcc.c
rfd6b90f rd37400c 23 23 #include "fvec.h" 24 24 #include "cvec.h" 25 #include "mathutils.h" 25 26 #include "spectral/fft.h" 26 27 #include "spectral/filterbank_mel.h" … … 102 103 aubio_filterbank_do (mf->fb, in, mf->in_dct); 103 104 105 /* compute log10 */ 106 fvec_log10 (mf->in_dct); 107 108 /* raise power */ 109 //vec_pow (mf->in_dct, 3.); 110 104 111 /* zeros output */ 105 112 fvec_zeros(out);
Note: See TracChangeset
for help on using the changeset viewer.