matlab - How to clip the amplitude of a wav file? -
I am trying to detect the pitch of the signal using an auto-correlation function with a clipping function.
I have trouble clipping the clipfunction function.
I tried to: However, when I try to plot the clip part, the program is slow, and gives an empty plot. Any thoughts? You forgot to index the sig array in the conditional statement. See below: Let me know that this does not answer your question, and I'll give it another shot. [sig Fs] = wavread ('sound.wav'); N = length (sig); For I = 1: N if sig & gt; CL SIGP (I) = CIG (i) -CL (I); Other sig & lt; -CL SIGP (I) = CIG (I) + CL (I); Other Sigp (I) = 0;
[sig Fs] = wavread ('sound.wav'); N = length (sig); For I = 1: N If sig (i) & gt; CL SIGP (I) = SIGG (I) -CL; Safe (I) & lt; -CL SIGP (I) = SIGG (I) + CL; Other Sigp (I) = 0;
Comments
Post a Comment