Xavier Amatriain
Mon, 18 Feb 2008 13:21:53 -0800
Karsten Krispin wrote:
Yes, you are absolutely right here... I thought about it after I replied yourAlso this is not correct :-( You can't just take the first frameSize*2 samples and feed them to the OLA. You need to take the center frameSize*2. Else the inverse window you are applying does not correspond to the one you applied in the analysis (in terms of where the center is).Well, but I looked up the code and SSynth does take the centerFreq +/- hopSize by itself. So the Audio size after the _specSynth.Do() is 1024 and not 2048.
previous email. SpectralSynth takes care of taking the appropriate chunk so you should be able to feed its output directly to OLA. So the problem must be in the analysis part.Btw, you should avoid creating temporary audio objects and setting their size during processing: this operation implies memory allocations and is likely to ruin your performance. You would be better off declaring audio objects as members of your class and setting the correct size at initialization/configuration time.
X _______________________________________________ Clam-devel mailing list Clam-devel@llistes.projectes.lafarga.org https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel