Distinguishing 2 notes of a wav file.

5 ビュー (過去 30 日間)
Syed Farez
Syed Farez 2018 年 5 月 26 日
回答済み: Image Analyst 2018 年 5 月 26 日
I have a .wav file. I've obtained and plot the signal for a segment of between x(670000:689000). The plot shows about 2 different notes in the segment. How do I plot and determine the frequency of each notes? Below is my codes:
clear all; close all; clc;
[x,fs] = audioread('Bass.wav');
x = x(670000:689000,:);
sound(x,fs);
t=0:1/fs:(length(x)-1)/fs;
plot(t,x);
n=length(x)-1;
f=0:fs/n:fs;
wavefft=abs(fft(x));
plot(f,wavefft);

回答 (1 件)

Image Analyst
Image Analyst 2018 年 5 月 26 日
Try fft() or pwelch() or spectrogram().

カテゴリ

Help Center および File ExchangeTime-Frequency Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by