Adding Multiple FFTs

Started by Elvis,

Elvis

I've hit the 'can't see the wood for the trees' moment and it's probably blindingly obvious. But.
I've got 10 streams any one of which, or all, could be playing. I'm using arrays for the stream handles etc. I'd like to get the FFT for each track, add them up and using similar calculations seen on this board calculate the total peak height for a simple spectrum display.
At the moment, I just keep getting bizarre results and to save my wrist rest from cutting my keyboard in half could somebody provide a simple solution in VB.

Thanks
Elvis

Ian @ un4seen

Simply adding the bins from each stream (ie. add the 1st FFT value from all the streams, add all the 2nd FFT values, etc...) should be fine. You may also want to downscale the results (eg. divide by something), if they're getting too high to display nicely.

Elvis

Thanks Ian.
I was trying to be clever using loops and multidimensional arrays, when just simple addition of 10 arrays would have sufficed.
Any chance you could have Homer Simpson icons for this sort of question ?  ;)