", cast it into a slow signal in some cases where the results of, the 
calculation only needs updating once per buffer cycle."

Do you have a concrete example of such a need?

Stéphane

Début du message réexpédié :

> De : Jonatan Liljedahl <[email protected]>
> Objet : Rép : [Faudiostream-users] controlrate
> Date : 14 novembre 2013 19:56:29 UTC+01:00
> À : Harry van Haaren <[email protected]>
> Cc: faudiostream-users users <[email protected]>
> 
> Hi Harry,
> 
> Yes, I usually do that too. Divide a more complex graph into sub units
> so that I can switch them in and out on the C side. I would love to
> see a way to really switch parts in and out directly in faust, it
> would make life easier in many cases :)
> 
> But I think my question actually relates to something different. As
> far as I can see, faust does *not* calculate everything per sample.
> Any calculations done on a slider/button "signal" will be calculated
> once per block, outside the loop. If you look at the generated code,
> you'll see them as fSlowN variables, for example:
> 
>    float fSlow25 = powf(10,(0.05f * float(fslider12)));
> 
> So my question is, is there any way to downsample/cast a signal into
> controlrate (fSlow)? If some variable in the calculation is not from a
> UI element but from an audio-rate signal, it would be useful to be
> able to cast it into a slow signal in some cases where the results of
> the calculation only needs updating once per buffer cycle.
> 
> /Jonatan
> 
> On Thu, Nov 14, 2013 at 2:29 AM, Harry van Haaren <[email protected]> 
> wrote:
>> On Wed, Nov 13, 2013 at 7:54 PM, Jonatan Liljedahl <[email protected]>
>> wrote:
>>> 
>>> Is it possible to mark part of the graph as control (slow) rate even
>>> if it doesn't come from a slider or button etc? like casting a signal
>>> into slow rate?
>> 
>> 
>> No: the language sematics are that everything is processed per-sample.
>> This does unfortunatly cause significant extra CPU load in some
>> circumstances.
>> 
>> I'm going to presume that's the reason you posted this question: I bypass
>> this
>> issue by building a C++ wrapper around the FAUST generated DSP, and breaking
>> the actual FAUST DSP units into smaller chunks. This allows deciding to
>> process a
>> DSP unit or not in C++, and not have to code the DSP in C++... I'm not sure
>> if
>> you're a C++ developer, so perhaps the above is irrelevant to you: I'm
>> posting
>> this for completeness if people search the archives in future :)
>> 
>> -Harry
> 
> 
> 
> -- 
> /Jonatan
> http://kymatica.com
> 
> ------------------------------------------------------------------------------
> DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
> OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
> Free app hosting. Or install the open source package on any LAMP server.
> Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
> http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users

Reply via email to