Re: [linux-audio-dev] newbie has problems with FIR filters

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] newbie has problems with FIR filters
From: Frank Neumann (franky_AT_viona.de)
Date: Fri Mar 02 2001 - 13:12:39 EET


Hi,
Remco Poelstra wrote:

> A litle program I'm working on does some FIR-filtering.
> Every thing is converted from integers to reals (in the range from 0 to 1)
> and back to integers to be writen to file.
> The samples and the FIR-filter data is so small, that when the FIR-filter
> is aplyed and the reals are converted back to integers, there are only
> zero's.
>
> What can I do to solve this?
> (I like to keep the samples real)

Uhmm..why don't you just scale up your float to a range like, say, -32768.0
to +32767.0, do your computations in that (float) space and then convert
back to int? (Of course, this might require clipping checks if the signal
can be amplified by your filter to beyond that range).

Regards,
Frank


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Fri Mar 02 2001 - 13:29:04 EET