java – Split audio file (mp3, wav, wma) into 1s chunks – Stack Overflow

I know this doesn’t address your problem directly but typical technique is to divide into 2^n samples chunks and process; possibly with overlapping blocks, possibly applying a window function (Google it) depending on desired frequency response. If you are modifying the FFT and applying an inverse you will want overlapping blocks, cross-faded in output, because you will get audible clicks between blocks if the apparent phase (or the 0Hz constant term) changes. BTW, frequency (Hz) is index * sample_rate / block_size

Source: java – Split audio file (mp3, wav, wma) into 1s chunks – Stack Overflow

Advertisements