Anyone want to check out my math?
C = 8.17579892 where i = 0 (MIDI note 0)
To calculate the frequency Fi of any given MIDI note i :
Fi = 2^(i/12) * C
To find the MIDI note number i for a given Frequency of i:
Round( Log( Fi / C ) / .025083, 0 ) = i
I think this works?
Anyone have any code for natural log() function w/o using a library?