Problem 379. Chromatic Tuner

Given a frequency, return the number of cents difference between the given frequency and its nearest semitone (in 12-tone equal temperament with A440) as well as the semitone it is closest to (in scientific pitch notation, using # for sharp and using natural pitches whenever possible) with A440 referring to A4. Refer to the wikipedia articles below for more information.

References:

Solution Stats

33.33% Correct | 66.67% Incorrect
Last Solution submitted on Apr 15, 2024

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers11

Suggested Problems

More from this Author56

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!