Sign in

username:

password:



Not a member?

Search audiodsp



Search tips

Subscribe to audiodsp



audiodsp by Keywords

AAC | ADPCM | Convolution | DAFx | FFT | IIR | Mixer | MP3 | MPEG | MPEG-4

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Technical discussions related to Audio Signal Processing (digital effects, acoustics, noise reduction, musical signal processing, etc).

  

Post a new Thread

FFT precision - Curl - Nov 27 10:49:00 2001

Hello

My question may be stupid..
I have overflow problem with 16bits IFFT (inverse transform)

In audio applications : Is FFT precision at least 32 bits ??
Or (in other words) can you do audio processing with 16 bits FFT ??

Thank you
	
______________________________
Start your Android Ice Cream Sandwich development on TI's AM35x Sitara ARM Cortex-A8 processor today.



(You need to be a member of audiodsp -- send a blank email to audiodsp-subscribe@yahoogroups.com )

Re: FFT precision - tilak shetty - Nov 28 0:39:00 2001

hi curl,

    if u r doing a 16 bit IFFT there is a chance of
getting overflow in q15 formats.if u take care of
saturation by shifting after each accumulation then u
can avoid this problem.
if u  go for 32 bits still there is a chance of
getting overflow if u use Q31 ,unless u go for P.Q
format ,
where P depends on number of samples used in IFFT

hope i am right

-shetty

--- Curl <curl@curl...> wrote:
> Hello
> 
> My question may be stupid..
> I have overflow problem with 16bits IFFT (inverse
> transform)
> 
> In audio applications : Is FFT precision at least 32
> bits ??
> Or (in other words) can you do audio processing with
> 16 bits FFT ??
> 
> Thank you
> 
> 
>
	__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
	
______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of audiodsp -- send a blank email to audiodsp-subscribe@yahoogroups.com )

Re: FFT precision - Ganesan Ramachandran - Nov 28 19:23:00 2001

hi,
 i'm not an audio expert.. however here are some 
basics.. 

 if you have N bits, it is generally split as 1:I:F , 
where F=N-I-1, i.e., 1 sign bit, I integer bits and F=N-
I-1 fractional bits. you need to trade off between the 
values of I and F. 

  Higher the value of I, lesser are the chances of 
overflow. if you know the dynamic range of the input to 
the system, then you can choose a value of I that 
avoids overflow problem 100%.. however remember that it 
is done at the expense of F, which decides your output 
quality. trading them off depends on the application.

  say for example you are designing a cell-phone.. you 
can afford to hear a beep (overflow) once in a while.. 
but instead if you gain clarity in the speech, you may 
as well go for it.. but if you are designing a missile, 
you can afford that to hit 1 meter away than it 
bouncing back and tracing you :-). 

 there are some scaling methodologies like L1,L2 L 
infinity scaling etc. to decide on how to choose I. you 
can refer to any standard text on filter design.

hope this helps.
bye
ganesan

hi curl,

    if u r doing a 16 bit IFFT there is a chance of
getting overflow in q15 formats.if u take care of
saturation by shifting after each accumulation then u
can avoid this problem.
if u  go for 32 bits still there is a chance of
getting overflow if u use Q31 ,unless u go for P.Q
format ,
where P depends on number of samples used in IFFT

hope i am right

-shetty

--- Curl <curl@curl...> wrote:
> Hello
> 
> My question may be stupid..
> I have overflow problem with 16bits IFFT (inverse
> transform)
> 
> In audio applications : Is FFT precision at least 32
> bits ??
> Or (in other words) can you do audio processing with
> 16 bits FFT ??
> 
> Thank you
	
______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of audiodsp -- send a blank email to audiodsp-subscribe@yahoogroups.com )

Re: FFT precision - urin...@lamar.co.il - Nov 29 3:23:00 2001

--- In audiodsp@y..., "Curl" <curl@n...> wrote:
> Hello
> 
> My question may be stupid..
> I have overflow problem with 16bits IFFT (inverse transform)
> 
> In audio applications : Is FFT precision at least 32 bits ??
> Or (in other words) can you do audio processing with 16 bits FFT ??
> 
> Thank you

Hi Curl,

 The FFT/IFFT has a gain factor of the size of fft used, e.g. FFT16 
adds a x16 gain. You should either add guard bits to your signal 
before the FFT, or use a Block Floating Point FFT. In either way, the 
precision using 16bits is high enough for any audio processing.

cheers,
 Uri
	




(You need to be a member of audiodsp -- send a blank email to audiodsp-subscribe@yahoogroups.com )

Re: Re: FFT precision - Sundararaman Sivaraman - Nov 30 0:46:00 2001

hi all,
    Iam giving this answer as per our implementation
of AAC standard. FFT of atleast 32 bits is required
for the data to be precise and not overflow. If u
start from 16 bits ie Q15 representaion , then the
Coder fails for certain conformance testing and the
overflow happens only in the FFT module. So it is
better to start with 32 bit representation  ie Q31 and
finally truncate it to 16 bits. But it is better if
the FFT goes with 32 bit precision.
cheers
sundi

Sundararaman 
Texas Instruments India Limited
Bangalore , India.

--- urinix@urin... wrote:
> --- In audiodsp@y..., "Curl" <curl@n...> wrote:
> > Hello
> > 
> > My question may be stupid..
> > I have overflow problem with 16bits IFFT (inverse
> transform)
> > 
> > In audio applications : Is FFT precision at least
> 32 bits ??
> > Or (in other words) can you do audio processing
> with 16 bits FFT ??
> > 
> > Thank you
> 
> Hi Curl,
> 
>  The FFT/IFFT has a gain factor of the size of fft
> used, e.g. FFT16 
> adds a x16 gain. You should either add guard bits to
> your signal 
> before the FFT, or use a Block Floating Point FFT.
> In either way, the 
> precision using 16bits is high enough for any audio
> processing.
> 
> cheers,
>  Uri
> 
> 
> 
>
	=====
	__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
	
______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of audiodsp -- send a blank email to audiodsp-subscribe@yahoogroups.com )