Changeset d37400c for src/spectral/filterbank.c
- 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
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.