[LAD] Routing signals in mixer (Ardour, Qtractor)

James Morris james at jwm-art.net
Thu Jul 15 17:31:56 UTC 2010


On 15 July 2010 18:23, Harry Van Haaren <harryhaaren at gmail.com> 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;



More information about the Linux-audio-dev mailing list