X-Git-Url: https://git.sesse.net/?p=pitch;a=blobdiff_plain;f=pitch.cpp;h=6ec6155cde18b4c479340d9cf824c6d705240c14;hp=bc97ee50695d85747aef55b2231483efb9d963c6;hb=3fff09f828423670c99dac1681ef32c2f764dfea;hpb=c5673c13b754f921853701cf47b6195e357ed2ab diff --git a/pitch.cpp b/pitch.cpp index bc97ee5..6ec6155 100644 --- a/pitch.cpp +++ b/pitch.cpp @@ -78,19 +78,6 @@ void print_spectrogram(double freq, double amp) } #else -struct note { - char notename[16]; - double freq; -}; -static note notes[] = { - { "E-3", BASE_PITCH/4.0 * (3.0/4.0) }, - { "A-3", BASE_PITCH/4.0 }, - { "D-4", BASE_PITCH/4.0 * (4.0/3.0) }, - { "G-4", BASE_PITCH/4.0 * (4.0/3.0)*(4.0/3.0) }, - { "B-4", BASE_PITCH * (3.0/4.0)*(3.0/4.0) }, - { "E-5", BASE_PITCH * (3.0/4.0) } -}; - void print_spectrogram(double freq, double amp) { double best_away = 999999999.9;