On Thu, Dec 5, 2013 at 2:41 PM, Kjetil Matheussen
<[email protected]> wrote:
> On Thu, Dec 5, 2013 at 2:26 PM, Jonatan Liljedahl <[email protected]> wrote:
>> Hi,
>>
>> I have a parametric EQ with lowshelf, two midbands and a highshelf,
>> which gives a total of 10 parameters. In the original I get around 7%
>> cpu usage. If I run each parameter slider through a smooth(0.999)
>> filter, the cpu usage goes up to around 30%. That's quite a lot to
>> just get rid of some subtle clicks while moving a slider.. Any ideas
>> if this could be done more efficiently?
>>
>
> Hi,
>
> I had the same problem in Radium over a year ago, and (if I remember 
> correctly),
> spent some time moving the smooth calls to get them out of the inner loop.
> I don't remember exactly what I did, but I think there were some other
> side effects (not clicks), although those were not a problem for radium.
> I don't remember right now what difference they made to the sound though.

Oh, I wrote it down in the file:

"
// Changes:
// I have inserted some smooth calls here and there to make parameter
changes smooth.
// Just putting the smooth calls directly after slider input causes
many calls to powf,
// tan, cos and sqrt to be inserted into the inner DSP loop.
// This version should be faster (although I don't know how much
faster). -Kjetil
"

------------------------------------------------------------------------------
Sponsored by Intel(R) XDK 
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to