Experimenting with FIRs

Post any examples or modules that you want to share here
steph_tsf
Posts: 249
Joined: Sun Aug 15, 2010 10:26 pm

Re: Experimenting with FIRs

Post by steph_tsf »

This is an upgrade featuring the Analyzer.
The .zip file contains three files.
You need to load one such file upon running the .fsm. This defines the FIR filter. There is a "Load File" button for that.
Attachments
FIR_99 coefficients.zip
(2.16 KiB) Downloaded 1750 times
FIR_99 with coeffs from a text file (Analyzer).fsm
(1.91 MiB) Downloaded 1767 times
FIR_99 with coeffs from a text file (Analyzer) (600).png
FIR_99 with coeffs from a text file (Analyzer) (600).png (92.58 KiB) Viewed 20645 times
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Experimenting with FIRs

Post by MyCo »

I've added the FIR coeff generator from Martin (from the Stream FFT project) to the FIR that I posted earlier... works quite well...
Attachments
optimized FIR Filter +Draw (MyCo).fsm
(280.81 KiB) Downloaded 1851 times
steph_tsf
Posts: 249
Joined: Sun Aug 15, 2010 10:26 pm

Re: Experimenting with FIRs

Post by steph_tsf »

MyCo wrote:I've added the FIR coeff generator from Martin (from the Stream FFT project) to the FIR that I posted earlier...
Wow! Your two FIR implementations (non optimized / optimized) look impressive. They both work on "packed audio" (four channels), applying a common FIR filter (defined by an external .txt file) to four audio channels. Actually, I need to apply a different FIR filter on each of two audio channels. Is there a speed penalty when using two "packed audio" FIRs instead of using two FIRs designed for single audio ?
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: Experimenting with FIRs

Post by MyCo »

I wouldn't call it penalty, but if you don't use all 4 channels, you can optimize the code by removing those memory accesses for the unused channels. This is only possible in the assembler version.
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

FIR Filter Design

Post by martinvicanek »

MyCo wrote:I've added the FIR coeff generator from Martin (from the Stream FFT project) to the FIR that I posted earlier... works quite well...

Cool. 8-)
This reference was mentioned in a recent discussion over at KVR regarding FIR Filter design. Below is an implementation in FS, it is quite easy to use and fun to play with. So far it only generates filter coefficients and shows transfer functions, I haven't plugged it into an actual FIR filter yet. Comments appreciated.
FIR_Design.png
FIR_Design.png (97.43 KiB) Viewed 20626 times
Attachments
FIR_Iteration.fsm
(126.69 KiB) Downloaded 1826 times
Post Reply