Increasing the performance
<p>I was implementing an android FFT guitar tuner. Here, I have 2 text views, 1 for displaying the frequency of the sound coming from the mic port and the other 1 for displaying the pitch notation. To match with the frequency, I wrote an if condition which is having about 35 if else if conditions consisting of 150 lines (approximately). Now, when a sound is heard, the value is updated in the frequency text view, but the note pitch text view is getting late to updated since there are so many conditions to be checked before updating the text view, so when the conditions are checked, again the frequency text view may have changed and got itself updated. What can I do to get rid of this problem? The final output is not efficient..Please help me with this...</p>

<pre><code>if(frequency &gt;= 62 &amp;&amp; frequency &lt;= 65)
{
   note.setText("C");
}
else if(frequency &gt;= 70 &amp;&amp; frequency &lt;= 74)
{
  note.setText("C#");
}
else if(frequency &gt;= 77 &amp;&amp; frequency &lt;= 81)
{
  note.setText("D");
}
else
{
  note.setText("Frequency is out of range");
}
</code></pre>
