i wish to design a guitar tuner using pic16f84, got 3 led to indicate the frequency whether they are too high, low or ok. but i got some question about how to write the code. let say a=100hz, b=200hz, but if input frequency is 150hz, so should i light on the high led or low led? because if he is plucking A string, then should light on high led, but if he is plucking B string, then light on low led.so how should i determine?