Sir, I tried to calculate the pitch of an audio but it showing the error.
1 回表示 (過去 30 日間)
古いコメントを表示
[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
0 件のコメント
回答 (1 件)
Walter Roberson
2018 年 11 月 29 日
pitch() is from the Audio System Toolbox, R2018a and later.
The Audio System Toolbox itself was new in R2017b.
2 件のコメント
参考
カテゴリ
Help Center および 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!