#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);
}
frequency calculation from well tempered scale
Leave a Reply
You must be logged in to post a comment.