Increasing the performance

Put your problem here if it does not fit any of the other categories.

Increasing the performance

Postby arcane » Mon Mar 26, 2012 2:39 am

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...
Junior Developer
Junior Developer
Posts: 11
Joined: Thu Mar 01, 2012 7:39 am


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests