Changeset d88ea06 for src/mathutils.h
- Timestamp:
- Sep 29, 2006, 4:50:37 PM (18 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:
- 366f811
- Parents:
- 3b3ec6c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.h
r3b3ec6c rd88ea06 119 119 */ 120 120 smpl_t vec_alpha_norm(fvec_t * DF, smpl_t alpha); 121 /* dc(min) removal */121 /** dc(min) removal */ 122 122 void vec_dc_removal(fvec_t * mag); 123 123 /** alpha normalisation */ 124 124 void vec_alpha_normalise(fvec_t * mag, uint_t alpha); 125 125 /** add a constant to all members of a vector */ 126 126 void vec_add(fvec_t * mag, smpl_t threshold); 127 127 128 /** compute adaptive threshold of input vector */ 128 129 void vec_adapt_thres(fvec_t * vec, fvec_t * tmp, 129 130 uint_t win_post, uint_t win_pre); … … 182 183 uint_t vec_peakpick(fvec_t * input, uint_t pos); 183 184 185 /** convert frequency bin to midi value */ 184 186 smpl_t aubio_bintomidi(smpl_t bin, smpl_t samplerate, smpl_t fftsize); 187 /** convert midi value to frequency bin */ 185 188 smpl_t aubio_miditobin(smpl_t midi, smpl_t samplerate, smpl_t fftsize); 189 /** convert frequency bin to frequency (Hz) */ 186 190 smpl_t aubio_bintofreq(smpl_t bin, smpl_t samplerate, smpl_t fftsize); 191 /** convert frequency (Hz) to frequency bin */ 187 192 smpl_t aubio_freqtobin(smpl_t freq, smpl_t samplerate, smpl_t fftsize); 193 /** convert frequency (Hz) to midi value (0-128) */ 188 194 smpl_t aubio_freqtomidi(smpl_t freq); 195 /** convert midi value (0-128) to frequency (Hz) */ 189 196 smpl_t aubio_miditofreq(smpl_t midi); 190 197 198 /** check if current buffer level is under a given threshold */ 191 199 uint_t aubio_silence_detection(fvec_t * ibuf, smpl_t threshold); 200 /** get the current buffer level */ 192 201 smpl_t aubio_level_detection(fvec_t * ibuf, smpl_t threshold); 193 202 /**
Note: See TracChangeset
for help on using the changeset viewer.