Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Suchithra K S
Suchithra K S le 29 Nov 2018
Commenté : Walter Roberson le 29 Nov 2018
[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

Réponses (1)

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

Catégories

En savoir plus sur Measurements and Spatial Audio dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by