- Timestamp:
- Mar 6, 2013, 9:28:36 PM (12 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:
- c965b33
- Parents:
- e1bfde5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
re1bfde5 r037319a 399 399 aubio_freqtomidi (smpl_t freq) 400 400 { 401 if (freq < 2. || freq > 100000.) return 0.; // avoid nans and infs 401 402 /* log(freq/A-2)/log(2) */ 402 403 smpl_t midi = freq / 6.875; … … 410 411 aubio_miditofreq (smpl_t midi) 411 412 { 413 if (midi > 140.) return 0.; // avoid infs 412 414 smpl_t freq = (midi + 3.) / 12.; 413 415 freq = EXP (freq * 0.69314718055995);
Note: See TracChangeset
for help on using the changeset viewer.