A program to automatically tune a guitar. Written by Justin Reidhead and Steven Swenson
Dependencies: FFT FrequencyFinder Motor NewTextLCD PinDetect mbed strings
Diff: FrequencyFinder/FrequencyFinder.cpp
- Revision:
- 12:03c189de6e2e
- Parent:
- 11:bdad1acccdad
- Child:
- 14:fd59e7acf2e5
diff -r bdad1acccdad -r 03c189de6e2e FrequencyFinder/FrequencyFinder.cpp --- a/FrequencyFinder/FrequencyFinder.cpp Wed Apr 25 00:42:46 2012 +0000 +++ b/FrequencyFinder/FrequencyFinder.cpp Wed Apr 25 04:09:25 2012 +0000 @@ -46,13 +46,13 @@ if (j<200)//~48Hz signal_array[j]=0; else if (j<400)//~97Hz - signal_array[j]=signal_array[j]*5; + signal_array[j]=signal_array[j]*3; else if (j<600)//~146Hz signal_array[j]=signal_array[j]*6; else if (j<900)//~219Hz - signal_array[j]=signal_array[j]*7; + signal_array[j]=signal_array[j]*10; else if (j<1200)//292Hz - signal_array[j]=signal_array[j]*25; + signal_array[j]=signal_array[j]*12; else signal_array[j]=signal_array[j]*30; }