/ Published in: C++
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include "math.h" float frec_calc( float octave, float note ) { const float base_frec = 27.5; // reference A0=27.5Hz return pow(2.0f,octave) * base_frec * pow(2.0f,note/12.0f); }
URL: http://audiores.uint8.com.ar/blog/?p=53