Hot answers tagged

3

There is a way to do it, it is really similar to a moving average $N$ : number of samples per period $Z$ : Accumulator $x[n]$ : current sample $$Z[n] = Z[n-1]+ x[n]^2 - x[n-N]^2 $$ $$x_{RMS}[n] = \sqrt{\frac{1}{N}Z[n]}$$ Basically, you need a delay line to store the previous $x[n]$ samples or better yet the previous $x[n]^2$ samples and you need an ...


3

Zeroing out bins / attenuating them in discrete Fourier domain is universally a bad idea, due to the undesirable time-domain effects of that. Instead, use a audio processing program to apply an adjustable equalizer to the song of choice. Let's walk you through Free software: Get audacity; load your song in that, open "Effects"->"Equalizer" start with one ...


1

In @ederwander 's excellent answer, I can add that there are also parametric techniques, mostly based on some sinusoidal model: there are pitch and time shifting techniques for Quatieri's classic paper on sinusoidal modeling (here), some simpler but efficient alternatives in this thesis, some more recent advances in STRAIGHT vocoder, inlcuding speech ...


Only top voted, non community-wiki answers of a minimum length are eligible