Return to Snippet

Revision: 1614
at October 29, 2006 01:27 by yuconner


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

Initial URL
http://audiores.uint8.com.ar/blog/?p=53

Initial Description


Initial Title
frequency calculation from well tempered scale

Initial Tags


Initial Language
C++