[audioIn,fs] = audioread('G:\guitar tune\guitartunes\A_String.wav'); [f0,idx] = pitch(audioIn,fs); subplot(2,1,1) plot(audioIn) ylabel('Amplitude')
subplot(2,1,2) plot(idx,f0) ylabel('Pitch (Hz)') xlabel('Sample Number')
This is my code. If i run this, its show like this as output.
Undefined function or variable 'pitch'.
Error in Siva2109 (line 10) [f0,idx] = pitch(audioIn,fs);

댓글 수: 2

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 21일
Which Matlab version you are using?
kanuparthi chaithanya
kanuparthi chaithanya 2018년 9월 21일
matlab 2016

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

 채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 21일
편집: KALYAN ACHARJYA 2018년 9월 21일

1 개 추천

Please note that picth function was Introduced in R2018a
For older version, this link may be helpful: How to extract the pitch of a signal?

댓글 수: 2

kanuparthi chaithanya
kanuparthi chaithanya 2018년 9월 21일
Can i know which command i can use for 2016 version to get same results ?
KALYAN ACHARJYA
KALYAN ACHARJYA 2018년 9월 21일
편집: KALYAN ACHARJYA 2018년 9월 21일
Wait I have to figure out. As the question is answered, why it is not working.
I have added one extra line in the answer, please check.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by