File Exchange Pick of the Week

PianoTuner

Posted by Will Campbell,

Will's pick this week is Piano Tuner by John Bender.

If you want the distinguished honor of a Will Pick of the Week, here are some easy guidelines to follow:

  1. Choose an interesting or fun topic.
  2. Package the submission so that it's easy to figure out how to use.
  3. Ensure that it actually works for standard user inputs.
John's PianoTuner contribution meets all three criteria. It provides a simple, intuitive user interface that displays how well-tuned your piano is. I downloaded the file, launched it in MATLAB, walked my laptop downstairs, and had meaningful data on my piano's performance in seconds.

C note F#


I'll probably want to get a second opinion, but PianoTuner tells me that my keys are all falling flat. As to how it figures this out, the algorithm is about 80 lines of code embedded into the UI callback functions. It looks like there's a fast Fourier transform and a polynomial curve fit in there.

Incidentally, you can run the tool against non-piano instruments as well. I played a random song on my computer speakers and found that musicians with professional instruments do much better.

A well-tuned D


Comments
Let us know what you think here or leave a comment for John.

Add A Comment

What is 5 + 9?

Preview: hide

These postings are the author's and don't necessarily represent the opinions of MathWorks.