How fast are math functions?

For general discussion related FlowStone
Post Reply
seedpress
Posts: 1
Joined: Tue May 26, 2015 12:16 pm

How fast are math functions?

Post by seedpress »

A simple question from a prospective buyer: If I add two steam data samples, then will the resultant sum take one sample delay to be available for further processing? Or will the resultant calculation be done (and available) at processor speeds? I would hope for the latter. Only asking because of this quote from the User Manual: ". . . any components which process them (streams) will also perform calculations at sampling rate."

I want to replicate a VST coded in Faust. It can do many math functions between samples, but GUI components are very limited.
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: How fast are math functions?

Post by MyCo »

No, as long as you don't have feedback loops, there are no internal delays in the stream processing. There is one necessary exception though. The Ruby to Stream/Stream to Ruby primitives introduce a delay of 1 block of samples.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: How fast are math functions?

Post by KG_is_back »

The entire "stream" part is compiled to one peace of code and flowstone simply applies it to the audio stream, sample by sample.There is no latency in connecting multiple modules in chain. Only exception being above-mentioned feedback loops and conversion to different data types (ruby frames, green floats/arrays).

I'm not sure if that answers your question...
Post Reply