필터 지우기
필터 지우기

Sir, I tried to calculate the pitch of an audio but it showing the error.

조회 수: 2 (최근 30일)
Suchithra K S
Suchithra K S 2018년 11월 29일
댓글: Walter Roberson 2018년 11월 29일
[audioIn,fs] = audioread('cryrumble.wav');
[f0,idx] = pitch(audioIn,fs);
Plot the audio signal and pitch contour.
subplot(2,1,1)
plot(audioIn)
ylabel('Amplitude')
subplot(2,1,2)
plot(idx,f0)
ylabel('Pitch (Hz)')
xlabel('Sample Number')
The error is like this"featurepitchc
Undefined function or variable 'pitch'.
Error in featurepitchc (line 3)
[f0,idx] = pitch(audioIn,fs);"
how to rectify the error

답변 (1개)

Walter Roberson
Walter Roberson 2018년 11월 29일
pitch() is from the Audio System Toolbox, R2018a and later.
The Audio System Toolbox itself was new in R2017b.

카테고리

Help CenterFile 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