frequency calculation from well tempered scale

#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);
}

source

Leave a Reply