The question is how do i define multiple numerical data ranges as characters? I have a circuit and program that reads input sound wave data and outputs the frequency over the serial port . Thats working just fine. What I'm trying to do is translate the frequencies into the corresponding note and have them displayed over an LCD screen.
For example, if my frequency data is say between 555hz && 622hz I'm looking for the out put on the serial monitor and LCD screen to read "D5". Im trying to incorporate all the main tones between C1 and C6.. Its around 40 different possible outcomes.. Im not sure if i have to put in 40+ if then statements or do something else.. Thanks for checking it out and i fixed forum message above to include the #'s for the code..