Quote:
Originally Posted by Nonlinear
Seems pretty CPU intensive to me.
|
It's not that bad because you are running these calculations per window, not per sample. If your window size is 1024, you aren't running 1024 envelopes processes per sample.
If you aren't worried about the time constants being tight, you run your envelopes in the GUI thread. You can always run your interpolation in the GUI thread.
If you want your time constants correct, you can set it up like this:
Audio thread: FFT->magnitued->envelope
GUI thread: interpolation/smoothing.