Hi All,

I am having trouble reproducing this optimization problem in a simple 
isolated case.  It sounds like the optimization rules do not yet 
always compute things at the control rate as far as possible in the graph.

- Julius

At 06:09 AM 12/5/2013, Jonatan Liljedahl wrote:
>Thanks, indeed that works! I went from 30% to 8% cpu usage, and no clicks.
>
>This seems to be a pretty common problem, I wonder if there is a way
>to fix it except having a "smooth" version of every component?
>
>On Thu, Dec 5, 2013 at 2:43 PM, Kjetil Matheussen
><[email protected]> wrote:
> > 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
> > "
>
>
>
>--
>/Jonatan
>http://kymatica.com
>
>------------------------------------------------------------------------------
>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


Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/  


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