AllenDowney / ThinkDSP

Think DSP: Digital Signal Processing in Python, by Allen B. Downey.
https://allendowney.github.io/ThinkDSP/
3.93k stars 3.2k forks source link

Question about decaying noise generation #62

Closed terrytykuo closed 5 years ago

terrytykuo commented 5 years ago

Hi. The question is about noise generation. More specifically, I would like to generate white/ pink noise that decays (exponentially) by given time parameters. Could anyone share some advice about it? Thanks a lot.

AllenDowney commented 5 years ago

Do you mean you want the amplitude to decay exponentially? If so, you could generate white noise and then multiply by an exponential function.