We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

FIR Filter

From SnesLab
Revision as of 01:28, 16 November 2019 by Vitor Vilela (talk | contribs) (Mathematical Definition (testing formulas))
Jump to: navigation, search

FIR Filter (Finite impulse response filter) is a type of filter used on signal processing. It works by taking the sum of last Nth samples multiplied by a value, called FIR taps. It's finite because if you pass a FIR filter in an impulse response, the impulse will fade out after passing the N filter taps. That's easy to notice since the FIR filter never uses itself as feed unlike the IIR Filter.

On the SNES, the FIR filter is used together Echo feedback to determine how echo will reverb back to the echo buffer, with total 8 taps which a 8-bit 1.7 fixed point values.

The S-DSP echo has a buffer which the samples are stored and works like a FIFO: after 8*EDL milliseconds, the samples are played back multiplied by the echo volume. Once these samples have been played, they are inserted back to the buffer but before multiplied by the echo feedback and by the FIR filter to determine how much it will attenuate, allowing to the echo reverb to the buffer with some effects. This however implies that on the SNES, if the echo feedback and the DC gain of the FIR filter is large enough, the samples will stay indefinitely on the buffer and will likely result into signal overflow.

Mathematical Definition

External links