This code/sketch displays the approximate frequency as well as the musical note played on an electronic keyboard or piano app.

See the full project description HERE.