ar1st0crat / NWaves

.NET DSP library with a lot of audio processing functions
MIT License
453 stars 71 forks source link

size of istft is not same size of input signal #34

Closed hungcuiga1 closed 3 years ago

hungcuiga1 commented 3 years ago

when i get input signal audio,size of signal is: image but i use stft.Inverse size of the result is different input: image how to make it sample. please help me!

ar1st0crat commented 3 years ago

Hi,

There are quite a lot nuances related to STFT. Without diving deep into details: the reconstructed signal may have slightly different length. If there's a need, truncate it:

reconstructed = reconstructed.Take(4608).ToArray();

Regards, Tim