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

From: James Morris <james@email-addr-hidden-art.net>
Date: Thu Jul 15 2010 - 20:31:56 EEST

On 15 July 2010 18:23, Harry Van Haaren <harryhaaren@email-addr-hidden> 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
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-dev
Received on Fri Jul 16 20:15:28 2010

This archive was generated by hypermail 2.1.8 : Fri Jul 16 2010 - 20:15:28 EEST