Problems with musical note frequency

I am writing a code to identify the frequency of a musical note. The problem is, the notes are being wrongly identified for some notes in the same order. For example, it correctly identified a C note as having 261 Hz frequency, making it a middle C note, but it identified E after it as having frequency of 270 or so, making it a C# note. The problems are not consistent. I even tried getting an online repository of notes recorded in a soundless studio, but audacity returns a different peak frequency than what I had expected. How should I proceed further? This is the main point of the entire project.

댓글 수: 3

Azzi Abdelmalek
Azzi Abdelmalek 2013년 8월 7일
Post your code
Jan
Jan 2013년 8월 7일
@Samyukta Ramnath: Consider what you have written so far. Paraphrased it is: "My code does not created the wanted results". So how could we help based on this information?
Of course the only way to go is to find the bug or design error in your code. You could post the relevant part of it here. Usually codes with more than 30 lines catches less attraction than compact ones.
hey
even i am working on a similiar code..did you get the oupyput from the code you designed..ia ma having difficulties designing and understanding mine

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Just for fun에 대해 자세히 알아보기

질문:

2013년 8월 7일

댓글:

2020년 6월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by