frequency calculation from well tempered scale


/ Published in: C++
Save to your folder(s)



Copy this code and paste it in your HTML
  1. #include "math.h"
  2.  
  3. float frec_calc( float octave, float note ) {
  4. const float base_frec = 27.5; // reference A0=27.5Hz
  5. return pow(2.0f,octave) * base_frec * pow(2.0f,note/12.0f);
  6. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.