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.

You can look at the code here:

https://github.com/kmatheussen/radium/tree/master/audio

Seems like the filter smoothing modifications are placed here:
https://github.com/kmatheussen/radium/blob/master/audio/filter_smoothing.lib

Running a diff between that file, and the normal filter.lib, might enlighten.

------------------------------------------------------------------------------
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