Page 1 of 1

How fast are math functions?

Posted: Tue May 26, 2015 12:35 pm
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.

Re: How fast are math functions?

Posted: Tue May 26, 2015 5:44 pm
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.

Re: How fast are math functions?

Posted: Tue May 26, 2015 9:50 pm
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...