Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Test it on different sound data, and summarize your observations. Try modifying the MATH equation, swap coefficients, and summarize your observations. u = audioread('FunkyDrums-44p1-stereo-25secs.mp3'); %
Test it on different sound data, and summarize your observations.
Try modifying the MATH equation, swap coefficients, and summarize your observations.
u = audioread('FunkyDrums-44p1-stereo-25secs.mp3');
% average RIGHT and LEFT channel data for MONO sound
u = (u(:,1) + u(:,2))/2;
plot(u);
apu = audioplayer(u,44100);
play(apu);
% sine wave example
%Ts=1e-3;
%u=sin(2*pi*3*[0:5000]*Ts);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
N=length(u);
y=zeros(N,1);
for k=2:N
y(k)=0.99*y(k-1)+0.01*u(k);
end
% for the sine wave example, comment out the next line
y=y/max(abs(y));
plot(y);
apy = audioplayer(y,44100);
play(apy);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started