Skip to content

# wokashi-rg/Matchering

Matchering rewrite for GitHub

• Loading branch information...
wokashi-rg committed Sep 28, 2018
1 parent 6fb239b commit 815cfe3c1cc33a4518abfe987b9fe9d01b75e31a
Showing with 745 additions and 0 deletions.
1. +27 −0 fconv.m
2. +675 −0 matchering.m
3. +1 −0 run.bat
4. +1 −0 runconsole.bat
5. +41 −0 runscript.m
27 fconv.m
 @@ -0,0 +1,27 @@ function [y] = fconv(x, h) %FCONV Fast Convolution % [y] = FCONV(x, h) convolves x and h, and normalizes the output % to +-1. % % x = input vector % h = input vector % % See also CONV % % NOTES: % % 1) I have a short article explaining what a convolution is. It % is available at http://stevem.us/fconv.html. % % %Version 1.0 %Coded by: Stephen G. McGovern, 2003-2004. Ly = length(x) + length(h) - 1; % Ly2 = pow2(nextpow2(Ly)); % Find smallest power of 2 that is > Ly X = fft(x, Ly2); % Fast Fourier transform H = fft(h, Ly2); % Fast Fourier transform Y = X .* H; % y = real(ifft(Y, Ly2)); % Inverse fast Fourier transform y = y(1:1:Ly); % Take just the first N elements %y=y/max(abs(y)); % Normalize the output (commented by SOUND.TOOLS, we don't need this normalization) #### 0 comments on commit `815cfe3`

Please sign in to comment.
You can’t perform that action at this time.