How to extract the pitch of a signal ?
7 ビュー (過去 30 日間)
古いコメントを表示
Hello everybody, I am new to Matlab and I'm trying to extract the pitch of an speech signal but I don't have the signal and I have the below information:
- A vector of frequency
- A vector of time
- A vector of Instantaneous Loudness Level
- A histogram giving the Loudness Level versus time and frequency (spectrogram)
- If anyone knows how to re-synthesize a signal with this information, it'll be very useful and easy to extract the pitch.
Thank you everyone for your help
0 件のコメント
回答 (2 件)
Image Analyst
2016 年 8 月 11 日
What do you mean by pitch? Each stretch of time has a frequency range. spectrogram() shows you that. Maybe you just want to pick out the highest magnitude frequency for that chunk of time. From wikipedia https://en.wikipedia.org/wiki/Pitch_(music)
Pitch is an auditory sensation in which a listener assigns musical tones to relative positions on a musical scale based primarily on their perception of the frequency of vibration.[6] Pitch is closely related to frequency, but the two are not equivalent. Frequency is an objective, scientific attribute that can be measured. Pitch is each person's subjective perception of a sound wave, which cannot be directly measured. However, this does not necessarily mean that most people won't agree on which notes are higher and lower.
Sound waves themselves do not have pitch, but their oscillations can be measured to obtain a frequency. It takes a sentient mind to map the internal quality of pitch.
2 件のコメント
Image Analyst
2016 年 8 月 12 日
Well, like I said, then just pick out the max of the spectrum. You can either use spectrogram() if you want the peak (dominant frequency) as a function of time, or you can take the whole waveform and use pwelch(), or fft() if you don't have the Signal Processing Toolbox, which would be fine if you don't expect the dominant frequency to change over the length of the sound. See help demos for pwelch().
[signal, Fs] = audioread('guitartune.wav'); % Open demo sound
spectrum = pwelch(signal);
plot(10*log10(spectrum))
drawnow;
sound(signal, Fs);
Manpreet Sivia
2017 年 6 月 1 日
how to extract pitch of sound file without using toolbox functions
2 件のコメント
Image Analyst
2022 年 5 月 18 日
@Vanya Meegan what was wrong with find the frequency of the peak of the spectrum like I suggested here:
参考
カテゴリ
Help Center および File Exchange で Time-Frequency Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!