[code]
Double miditofreq (int keynum) {
Return 440.0 * Math.Pow (2.0, ((Double) Keynum - 69.0) / 12.0);
}
[/ code]
Source:
http://www.musicdsp.org/showone.php?id=125
"Here Is Some C C code: Double Miditofreq (Char Keynum) {Return 440.0 * Pow (2.0, ((Double) Keynum - 69.0) / 12.0);} You can double-check the table here:
http://tomscarfrff.tripod.com/midi_analyser/midi_note_frequency.htm "