Timestamp of Pitch in Audio file

3 ビュー (過去 30 日間)
jcclar12
jcclar12 2022 年 11 月 1 日
コメント済み: jcclar12 2022 年 11 月 2 日
Hi,
I am a beginner with Matlab. I have a very very large audio file and I want to extract the pitch from the audio file with a timestamp of when the pitch request happened. So far this is how I am extracting the pitch:
%Input Audio file
[audioIn,fs]= audioread('M2_1.wav');
%Refine Pitch
windowLength = round(0.03*fs);
overlapLength = round(0.025*fs);
f0 = pitch(audioIn,fs,WindowLength=windowLength,OverlapLength=overlapLength,Range=[50,400]);

採用された回答

jibrahim
jibrahim 2022 年 11 月 2 日
The pitch function has a second output argument that returns the location of the corresponding pitch values in f0.
[f0, loc] = pitch(audioIn,fs,WindowLength=windowLength,OverlapLength=overlapLength,Range=[50,400]);
  1 件のコメント
jcclar12
jcclar12 2022 年 11 月 2 日
Thank you this worked!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by