Next  |  Prev  |  Up  |  Top  |  REALSIMPLE Top

Matlab for Localized Peak Removal

        freq = 104.98;  % estimated peak frequency in Hz
        bw = 10;        % peak bandwidth estimate in Hz

        R = exp( - pi * bw / fs);            % pole radius
        z = R * exp(j * 2 * pi * freq / fs); % pole itself
        B = [1, -(z + conj(z)), z * conj(z)] % inverse filter numerator
        r = 0.9;     % zero/pole factor (notch isolation)
        A = B .* (r .^ [0 : length(B)-1]);   % inverse filter denominator

        residual = filter(B,A,bodyIR);       % apply inverse filter


Next  |  Prev  |  Up  |  Top  |  REALSIMPLE Top

Download BodyFactoring.pdf
Download BodyFactoring_2up.pdf
Download BodyFactoring_4up.pdf

``Resonator Factoring'', by Julius O. Smith III and Nelson Lee,
REALSIMPLE Project — work supported by the Wallenberg Global Learning Network .
Released 2009-03-13 under the Creative Commons License (Attribution 2.5), by Julius O. Smith III and Nelson Lee
Center for Computer Research in Music and Acoustics (CCRMA),   Stanford University
CCRMA