Faust compiler options
-
Where can I change the compile options that Hise uses when compiling faust nodes?
I can open the .cpp file generated by Hise for my faust dsp and it has the compile options Hise used commented out at the top, but I don't know where in Hise I can edit those.
As an example I would like to use double precision floats. Hise is currently set to use single.
-
Note that using double internally in the Faust generated code also requires the "architecture" wrapping code to be adapted, see for instance https://faustdoc.grame.fr/manual/architectures/#external-and-internal-audio-sample-formats.
-
@sletz said in Faust compiler options:
Note that using double internally in the Faust generated code also requires the "architecture" wrapping code to be adapted, see for instance https://faustdoc.grame.fr/manual/architectures/#external-and-internal-audio-sample-formats.
I tried replacing the CPP file in the source folder for the faust node with one that was compiled through the normal faust compiler with the same options that Hise uses except double instead of single and Hise doesn't have a problem. It packaged my plugin fine and the audio path is clearly using double precision now for that DSP.
Are you saying this is wrong and shouldn't work?
This method seems to work fine but it's a little jank because if I use the standard compile DSP networks function in Hise it overwrites my custom CPP with one that has the single flag again.
Does anyone know if it's possible to change that compile option?
I'm guessing the "proper" way to do this would be to compile my DSP to cpp with faust and then use the third party cpp node function in hise? That's kind of a pain because then I have to deal with writing a header file with linked parameters while my faust node already has that handled for me.
-
- I don't remember in detail how the HISE Faust DSP wrapper works (that is the code this connect Faust DSP to the HIS audio layer) but possibly it already adapts input/output audio buffers
- and yes the proper way would be to open access to the compiler options in the Faust LLVM JIT path as well as the C++ generation path, but I don't where it can be done. @Christoph-Hart has to help here.