HISE Logo Forum
    • Categories
    • Register
    • Login

    Faust compiler options

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 186 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • whoopsydoodleW
      whoopsydoodle
      last edited by

      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.

      1 Reply Last reply Reply Quote 1
      • S
        sletz
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • whoopsydoodleW
          whoopsydoodle
          last edited by whoopsydoodle

          @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.

          S 1 Reply Last reply Reply Quote 0
          • S
            sletz @whoopsydoodle
            last edited by

            @whoopsydoodle

            • 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.
            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            26

            Online

            1.7k

            Users

            11.8k

            Topics

            102.3k

            Posts