HISE Logo Forum
    • Categories
    • Register
    • Login

    ScriptNode: problems when compiling network to dll

    Scheduled Pinned Locked Moved ScriptNode
    13 Posts 3 Posters 728 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.
    • alhugA
      alhug @ulrik
      last edited by

      @ulrik unfortunately, that didn't work either.

      "HISE is for software developers. If you're not one you must become one." - David Healy

      ulrikU 1 Reply Last reply Reply Quote 0
      • ulrikU
        ulrik @alhug
        last edited by ulrik

        @alhug sorry to hear, I think someone more familiar with scriptnode than me, should take a look at this, sorry I couldn't help

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

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

          @ulrik I think I've lifted the max parameter limit - if you exceed 16, then it will dynamically allocate more parameters.

          It seems to be a quite complex patch and I noticed two issues:

          1. The last container (Tone) has a recursive parameter connection (xfader to the container parameters). This causes an endless loop at code generation, which is why it crashed on you. I've added a failsafe to detect that on both the UI level (trying to connect a modulation output to a parent container's parameter will show a invalid icon) as well as the codegen stage (will abort compilation and show the error message with the parameter that has the recursive connection). In order to solve that, just connect the eq gain parameters directly to the fader without going through their parent parameter.
          2. If you do this, the compilation goes through but it crashes because you have a slider bank with an unconnected slider at index 1. The compiled node expects all sliders to be connected, however that is not coherent with the scriptnode version, so I've changed that. There's a small performance overhead when modulating a slider bank, but now it's consistent with the scriptnode behaviour.

          I've pushed the fixes for this and I can compile and load your network now. Attached is the updated snippet with the recursive connection removed.

          HiseSnippet 3738.3oc6c0sbaiaElxNP9m3r6llrs6E8BcQuH6zDMDf+O8hMI1waxz3DuVoI6cYXjfr4ZJRsjT1wamdeer5iPeD5iPeCZO.jTBjhRlT+X4jXmYxHB.BbvAmy24.b..OLvuMMLzOPp1Vu4h9ToZ6fZcgWzI6dhsimzK1Sp1WgNvNLhFzHNom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eabl2F8N6yn7OwERwwJk8bW+fdM9QJP7rizOdJejK92k8ibQ+R+Qt30si.R3MA1dg88CoXwZNWdDw71iFMvKawiSJSoXcu8gtmP417woIRDSDFlxTYvyYpoCXW76oO9e9g3YK1hB8lNudz0gfvmsfCG3FR4phXwWbTxDwjetcPGXboclOp.qm89q+Vk69qO62WAgxWv08e8UvGBjEyGogU32QhLejD1JkFa4vVlqm4cF0ETMkhMYrGsq8.2nzTypawvnRuV9GMpeDMJv43ioYDlJrC8jnH9V2LMk6+3intT1Utvvj9SONNdZ7ULY13EU+61RgiWeGJlbav.DZ7o62+i0+r96+Q409.7vq2ih+ADfKSZvGJarZFKuJ9rgbUzF8raG3+9jsK.SoeSdJP+1i+soZKvkK34FXoyD8bpGXt38samdSZT76Plg2QYFdG0Y3czlg2QeFdGiY3cLm56vrTmrh+LYdHgCeVb.UpktN2f3uz+G.8WMz1
          
          ulrikU alhugA 2 Replies Last reply Reply Quote 2
          • ulrikU
            ulrik @Christoph Hart
            last edited by

            @Christoph-Hart said in ScriptNode: problems when compiling network to dll:

            @ulrik I think I've lifted the max parameter limit - if you exceed 16, then it will dynamically allocate more parameters.

            Ok, I was not aware of that. Great!

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            ulrikU 1 Reply Last reply Reply Quote 0
            • alhugA
              alhug @Christoph Hart
              last edited by

              @Christoph-Hart fantastic. For some reason I had to recompile HISE. But now everything's working perfectly. Thanks.

              "HISE is for software developers. If you're not one you must become one." - David Healy

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

                @alhug said in ScriptNode: problems when compiling network to dll:

                For some reason I had to recompile HISE

                Well if you don't recompile it, you don't get the changes I made :)

                alhugA 1 Reply Last reply Reply Quote 1
                • alhugA
                  alhug @Christoph Hart
                  last edited by

                  @Christoph-Hart ohh I see. you made the changes to the develop branch. Well, thank you sir, it's highly appreciated.

                  "HISE is for software developers. If you're not one you must become one." - David Healy

                  1 Reply Last reply Reply Quote 0
                  • ulrikU
                    ulrik @ulrik
                    last edited by

                    @ulrik said in ScriptNode: problems when compiling network to dll:

                    @Christoph-Hart said in ScriptNode: problems when compiling network to dll:

                    @ulrik I think I've lifted the max parameter limit - if you exceed 16, then it will dynamically allocate more parameters.

                    Ok, I was not aware of that. Great!

                    @Christoph-Hart are you sure it's working with more than 16 parameters?
                    I have a network with more than 20 parameters, I can compile the network to a dll but when loading Hise again it will crash, I have to delete the compiled dll, then Hise will open the project without crashing. So there is something strange with more than 16 parameters...

                    Hise Develop branch
                    MacOs 15.3.1, Xcode 16.2
                    http://musikboden.se

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

                      @ulrik Can you make a minimal example with more than 16 parameters and check if it works? If not, please upload it then I'll take a look. The limitation is lifted, but it might be a problem at some other point in the process, however I'm pretty sure I've build and loaded an effect with more than 16 parameters recently.

                      ulrikU 2 Replies Last reply Reply Quote 0
                      • ulrikU
                        ulrik @Christoph Hart
                        last edited by

                        @Christoph-Hart ok, I'll do that

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

                        1 Reply Last reply Reply Quote 0
                        • ulrikU
                          ulrik @Christoph Hart
                          last edited by

                          @Christoph-Hart said in ScriptNode: problems when compiling network to dll:

                          @ulrik Can you make a minimal example with more than 16 parameters and check if it works? If not, please upload it then I'll take a look. The limitation is lifted, but it might be a problem at some other point in the process, however I'm pretty sure I've build and loaded an effect with more than 16 parameters recently.

                          I think you're right, I have successfully built an effect with 17 parameters and everything is working.

                          What I was referring to before, was a project I had with more than 20 parameters, but my project seems to be badly built and crashed Hise every time I tried to load the dsp.
                          So I removed a lot of parameters and found other solutions to reduce the amount of parameters, but the compiled network still crashes Hise, my bad...

                          This is the project I'm talking about https://forum.hise.audio/topic/8258/what-s-wrong-with-my-network

                          Hise Develop branch
                          MacOs 15.3.1, Xcode 16.2
                          http://musikboden.se

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

                          40

                          Online

                          1.7k

                          Users

                          11.8k

                          Topics

                          103.0k

                          Posts