Get the frequency sequence of an audio file
3 views (last 30 days)
Show older comments
Lochana Prasadi
on 12 Mar 2016
Commented: Divyamshu Surabhi
on 13 Feb 2019
Hello all,
I have an audio signal of a piano melody (.wav) and would like to get the frequency sequence of that to matlab command window. I don't want to plot the graph. Can anybody help me in this manner?
Thanks in advance.
1 Comment
Accepted Answer
Star Strider
on 12 Mar 2016
Use the spectrogram function with outputs.
From the documentation:
- [s,f,t] = spectrogram(_,fs) returns a vector of cyclical frequencies, f, expressed in terms of the sample rate, fs.
0 Comments
More Answers (0)
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!