开发者

Echo Sound Effect

开发者 https://www.devze.com 2023-01-13 17:09 出处:网络
I am looking to build a a small program that reads a sound file and applies echo ef开发者_高级运维fect to it. I am seeking guidance for how to accomplish this. For a simple echo (delay) effect, add a

I am looking to build a a small program that reads a sound file and applies echo ef开发者_高级运维fect to it. I am seeking guidance for how to accomplish this.


For a simple echo (delay) effect, add a time-delayed copy of the signal to itself. You will need to make the sample longer to accommodate this. Attenuating the echo by a few dB (easily accomplished by multiplying individual sample values by a constant factor < 1) will make it sound a bit more realistic.

To achieve multiple echoes, apply the effect recursively, or set up a ring buffer with an attenuated feedback (add the output to the input).

For proper reverberation, the usual approach is to pre-calculate a reverb tail (the signal that the reverb should generate for a one-sample full-amplitude click) and convolve that with the original sample, typically with a bit of additional pre-delay.

There's a pretty concise book about DSP in general called 'Getting started with DSP'. Google it, there's a free online version.


I agree with the idea of delay and mixing,

but if you directly use a structure like that :

    ----<--------[low pass]-----
    !                          !
->-(+) ---[ delay line ]-------.--->

use multiple with different delays in parallel to create echo (low pass or other filters make that easyer but it's also that in reallity most of reflected signal spectrum is low, so it sound better. and serialized to decorrelate you signal (make that more realistic like the pysical diffusion of the sound).

0

精彩评论

暂无评论...
验证码 换一张
取 消