On 15 July 2010 18:23, Harry Van Haaren <[email protected]> wrote: > >> LADSPA vocoder in JACK Rack has the same problem. Being already pretty >> experienced in this regard (hehehe) I can say that this is because of an >> effect which I forgot how is called when the plugin stops receiving the >> signal but continues to try to process data and starts going into >> calculations of really small numbers and it triggers a software part of your >> CPU and it uses a lot of resources, these calculations. The developer should >> find a way to fix this somehow. > > Your thinking of "Denormal" numbers. > http://en.wikipedia.org/wiki/Denormal_number > > A nice "quick" fix for these is: > if ( number < 0.000000001) > number = 0.0; > > ;-)
Don't forget about negative numbers ;-) n = ((n > 0.0 && n < 0.000000001) || (n < 0.0 && n > -0.000000001)) ? 0.0 : n; _______________________________________________ Linux-audio-dev mailing list [email protected] http://lists.linuxaudio.org/listinfo/linux-audio-dev
