Changes in src/mathutils.c [5ce504d:630191c]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mathutils.c
r5ce504d r630191c 523 523 /* log(freq/A-2)/log(2) */ 524 524 midi = freq / 6.875; 525 midi = LOG (midi) / 0.6931471805599 453;525 midi = LOG (midi) / 0.69314718055995; 526 526 midi *= 12; 527 527 midi -= 3; … … 535 535 if (midi > 140.) return 0.; // avoid infs 536 536 freq = (midi + 3.) / 12.; 537 freq = EXP (freq * 0.6931471805599 453);537 freq = EXP (freq * 0.69314718055995); 538 538 freq *= 6.875; 539 539 return freq;
Note: See TracChangeset
for help on using the changeset viewer.