What is the name of the tune that contains the frequency of f=494;440;392;440;494;494;494?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dear experts, I have a problem to ask.
....we have one-seconded sinusoidal wave with a decaying exponential envelope: t=[0; 1] f(t) = exp(-5t) sin(2*f0t): where fo=[494;440;392;440;494;494;494]; create seven signals with di fferent frequencies and concatenate them into signal array before play sound. By listening to the sound of this sequent wave, what is the name of the tune???...
Actually, I have listen to the sound, but I really can recognize the tune! So, someone help me please!!!
please help me as soon as possible....!!!
3 Commenti
Matt Tearle
il 31 Ott 2014
From the frequencies alone you can see that the tune is clearly B-A-G-A-B-B-B... you couldn't figure it out from there? Pfft. I guess that's why you're an image analyst ;)
Risposte (1)
Star Strider
il 30 Ott 2014
Mary Had A Little Lamb!
Reasonable approximation:
fo=[494;440;392;440;494;494;494];
f = @(f0,t) exp(-0.05*t) .* sin(2*pi*f0*t);
t = [0:500]/1000;
s = [];
for k1 = 1:length(fo)
s = [s f(fo(k1),t)];
end
sound(s,1000)
5 Commenti
Matt Tearle
il 31 Ott 2014
Not bad, but how about adding a bit of timbre...?
fo=[494;440;392;440;494;494;494];
overtones = [1;0.6;0.5;0.4]; % play with these
f = @(f0,t) exp(-0.05*t) .* sum(bsxfun(@times,overtones,sin(2*pi*f0*bsxfun(@times,(1:length(overtones))',t))));
t = (0:5000)/10000;
s = [];
for k1 = 1:length(fo)
s = [s f(fo(k1),t)];
end
sound(s,10000)
(And the award for Most Pointless MATLAB Code I've Written Today goes to...)
Vedere anche
Categorie
Scopri di più su Audio and Video Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!