query by humming in matlab

I'm trying to find code examples for query by humming in matlab but seems very rare in the web.can anyone help me.
Transferred from earlier, now deleted, question:
I'm trying to search songs through humming a song using matlab. I have read few articles and search in the internet but hard to fine best way to do that. Some article says converting signals into frequency graphs and then comparing the signals.but my question is: how can I compare humming sound with a Mp3 file in efficient way in matlab. I have no previous experience with matlab. So how can I start to develop this?.
UPDATE- I started work like this. I converted the sample mp3 file into .wave file and generated its frequency domain graph using matlab (let say graph Y).
%Load File
file = 'E:\FFOutput\oneMinute_Output\new_01 Pata Dedunu.wav';
[y,Fs,bits] = wavread(file);
Nsamps = length(y);
t = (1/Fs)*(1:Nsamps) %Prepare time data for plot
%Do Fourier Transform
y_fft = abs(fft(y)); %Retain Magnitude
y_fft = y_fft(1:Nsamps/2); %Discard Half of Points
f = Fs*(0:Nsamps/2-1)/Nsamps; %Prepare freq data for plot
%Plot Sound File in Time Domain
figure
plot(t, y)
xlabel('Time (s)')
ylabel('Amplitude')
title('Tuning Fork A4 in Time Domain')
if I get the frequency graph of the hum audio file as well (let say graph X) ,will I able to compare them in matlab for similarities?. [humming in close mouth.I need to compare this humming audio file with few songs.]

4 commentaires

Jan
Jan le 18 Oct 2015
Please explain any details. Would it be enough Matlab, if the code calls an online tool to solve this? Which kind of database is available to identify the music? Should the code be able to distinguish 2 songs or find one song in a million of examples?
Walter Roberson
Walter Roberson le 19 Oct 2015
I have tried Shazam, which does a pretty reasonable job of matching precise versions of songs that are in its database given a portion of the music in the song. However, Shazam completely utterly fails when I try to hum a song, even though it is intended to support that.
I think this is probably a difficult problem. Humming would have a much different frequency range than the original songs, and people seldom hum in tune, and people seldom hum in the same time signature. Is the humming open mouth or closed mouth?
Image Analyst
Image Analyst le 19 Oct 2015
Answer to " I have no previous experience with matlab. So how can I start to develop this?" http://www.mathworks.com/matlabcentral/answers/8026-best-way-s-to-master-matlab
Fernando JoseMaria
Fernando JoseMaria le 17 Avr 2016
I would add one more apps for query by humming. acrcloud , they provide api/sdks for developers, in C/C++, Java, C# and so on. I am not sure whether they provide matlab code, but could be baseline for the testing.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by