Faust: Functional programming language for sound synthesis and audio processing
faust.grame.fr
faust.grame.fr
[0] https://hackage.haskell.org/package/YampaSynth
[1] https://www.researchgate.net/publication/234793878_Switched-...
There’s also an F# implementation with some documentation here: https://github.com/brianberns/FYampaSynth
For some reason the win64 version hangs the host (Reaper), but seeing it work that simply is super exciting.
What did you use to learn Faust? Just the online tutorial or some specific video? Do you make vsts/vstis of the things you mention? Are they published somewhere?
I also learned by looking at the standard libraries' source code [2] and the online manual [3]. For the actual DSP knowledge, which I was learning at the same time and which isn't specific to Faust, I was reading J. O. Smith III's writings [4] (in particular, Physical Audio Signal Processing was most relevant to me).
I published my trombone simulator [5] as a web app but without the source. I haven't published the speech synthesizer or spatial audio stuff but I may in the future.
[1] https://faustide.grame.fr/
[2] https://github.com/grame-cncm/faustlibraries/
[3] https://faustdoc.grame.fr/
It’s been an inspiration for me too in building Elementary Audio [1], which you might find interesting if you’re a JavaScript developer
Galois has done work in Haskell for developing hard real-time applications. Here’s a dataflow language they built for example: https://leepike.github.io/pub_pages/rv2010.html
The best marriage of functional concepts and realtime I've seen is Supercollider (https://supercollider.github.io/) which basically has a smalltalk-like lang control a realtime backend. I'd love to see something like this for Haskell + Faust!
Math operations on a DSP/CPU require cycle time. Cycle time can vary, but even a simple comparison can be 1-2 cycles, which could be nanoseconds of latency.
It compiles down to deterministic C++. Each frame of audio takes exactly the same computation path; ditto for each sample within each frame. (Although some parameters might be updated once per frame, and others updated once per sample.)
You could inspect the output C++ and count up the number of cycles for each frame of audio, if you wanted.
faust programs basically define a signal flow that gets compiled down to various languages, there won't be any latency besides the one that may be part of your own algorithm.