Original Post
guys im a dummy when it comes to c++ buy our professor gave us a project that uses capturesound, low pass filter, downsampling and fft...i implemented it first in MATLAB but the problem is that i cant translate it into c++.. guys please help me find a code source code for the low pass filter and downsampling since i already got capturesoung and fft...tnx guys for your help.. MATLAB code: b=fir1(120,Wc,hanning(121)) y=filter(b,1,x(:,1)); z=y(1:30:length(y)) H=specgram(z,512,735*2,hanning(512)); for i=1:60;plot(abs(H(:,i)));pause;end please help me guys translate this one... i just need a starting point..