Author Topic: Attn Ian: FFT  (Read 6016 times)

biggyspender

  • Posts: 28
Attn Ian: FFT
« on: 18 Aug '03 - 11:50 »
Bass can do forward FFT. Is there a way to do backward FFT to put the data back in to a stream?

/chris

Ian @ un4seen

  • Administrator
  • Posts: 26266
Re: Attn Ian: FFT
« Reply #1 on: 18 Aug '03 - 21:59 »
You can't perform an inverse FFT on the data that BASS gives you (it only gives the amplitudes), but I don't think that would be much use to you anyway.

If you want to use FFT to modify the sample data, you should use a DSP callback function, in which you would perform an FFT, process the FFT output, and then perform an inverse FFT. You'll probably want to overlap the FFTs, to avoid "clicks" between the blocks of processed data (look into the "overlap-add" and "overlap-save" techniques). Note this is not particularly simple stuff :)

biggyspender

  • Posts: 28
Re: Attn Ian: FFT
« Reply #2 on: 19 Aug '03 - 10:02 »

Quote

Note this is not particularly simple stuff :)


What fun would it be if it was easy :)??? I'll get there in the end!!!