HISE Logo Forum
    • Categories
    • Register
    • Login

    'unable to open file stdfaust.lib'

    Scheduled Pinned Locked Moved Solved Faust Development
    22 Posts 4 Posters 1.4k 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.
    • DabDabD
      DabDab @toxonic
      last edited by

      @toxonic Great got it. now please help me to convert any FAUST Example code to HISE friendly so that it work inside it.

      Bollywood Music Producer and Trance Producer.

      toxonicT 1 Reply Last reply Reply Quote 0
      • toxonicT
        toxonic @DabDab
        last edited by

        @DabDab Add parameters to the DSP network container and connect them to the faust node. Then you can enable compilation in the DSP network properties and compile the network via Export menu in hise -》Export DSP network as DLL. After compilation and restarting hise, you can load the Network into a hardcoded master fx module.

        DabDabD 1 Reply Last reply Reply Quote 0
        • DabDabD
          DabDab @toxonic
          last edited by

          @toxonic Ok.
          Actually my point was How to get FAUST code that will work in HISE. I have go a code from build simple UI from a FAUST Tutorials.

          import("stdfaust.lib");
          ctFreq = hslider("[0]cutoffFrequency",500,50,10000,0.01) : si.smoo;
          q = hslider("[1]q",5,1,30,0.1) : si.smoo;
          gain = hslider("[2]gain",1,0,1,0.01) : si.smoo;
          t = button("[3]gate") : si.smoo;
          process = no.noise : fi.resonlp(ctFreq,q,gain)*t <: dm.zita_rev1;
          

          But this is showing this error. HE.jpg

          Bollywood Music Producer and Trance Producer.

          Christoph HartC toxonicT 2 Replies Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @DabDab
            last edited by

            Take a look at the error message. Your Faust code is assuming monophonic signal but the node expects a stereo signal.

            S 1 Reply Last reply Reply Quote 0
            • S
              Sawer @Christoph Hart
              last edited by Sawer

              @Christoph-Hart
              In my case, I'm not receiving any errors, but nothing is happening.
              Still wondering what is the case... the faust path is correct, I'm coding on the Faust editor, and the compilation works but without any form of graphical output change in the scriptnode.

              Screenshot 2022-11-15 at 12.58.20.png

              Please do not mind the file name, just copy and paste the code on this thread to actually see if the error was also happening on my end. Which is not.

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @Sawer
                last edited by Christoph Hart

                1. Recompile HISE, I've added a compile toolbar at the bottom of the faust editor in the last commits
                2. Remove the [0] stuff from the parameter, this might mess with the detection of parameters (I'm not too deep into Faust, but I think this syntax applies some metadata to the parameter which might not be processed correctly by HISE).
                3. Try "Rebuild Faust parameters" from the context menu of the faust node.
                S 1 Reply Last reply Reply Quote 0
                • S
                  Sawer @Christoph Hart
                  last edited by

                  @Christoph-Hart Ok thanks. Another note:
                  When I paste the desired code in the editor and I click the button shown below in the image, everything resets to importing the library and processing... Am I not saving in the correct way?
                  Screenshot 2022-11-15 at 13.04.38.png

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @Sawer
                    last edited by

                    Yes, if you don't press F5 (or click on the Compile button in the new HISE version), the changes will not be saved to disk.

                    1 Reply Last reply Reply Quote 0
                    • toxonicT
                      toxonic @DabDab
                      last edited by toxonic

                      @DabDab and @Christoph-Hart This is strange though, bacause the code has stereo out (indicated by the signal split "<:" to the zita reverb in the "process" line.
                      I tried the code on my machine and it works without issues.
                      Faust_Test.png
                      PS: I prefer to use an external editor, so don't care about strange look...

                      DabDabD 1 Reply Last reply Reply Quote 0
                      • DabDabD
                        DabDab @toxonic
                        last edited by

                        @toxonic Oh.. But not working here on my PC.

                        Bollywood Music Producer and Trance Producer.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        27

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        103.1k

                        Posts