Forum
    • Categories
    • Register
    • Login

    This script processor has a network that consumes the parameters

    Scheduled Pinned Locked Moved General Questions
    scriptnodecallbacknetwork
    15 Posts 7 Posters 1.5k 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.
    • Adam_GA
      Adam_G @David Healey
      last edited by

      @d-healey any recollection how you figured this one out?

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

        @argon Use the solution I posted above. And don't type in DspNetwork.xxx but use your object name instead:

        const var dsp = Engine.createDspNetwork("whatever");
        dsp.setForwardControlsToParameter(true);
        
        Adam_GA HISEnbergH J 3 Replies Last reply Reply Quote 0
        • Adam_GA
          Adam_G @Christoph Hart
          last edited by Adam_G

          @Christoph-Hart thanks so much, that set me on the right path. it works now :)

          1 Reply Last reply Reply Quote 0
          • HISEnbergH
            HISEnberg @Christoph Hart
            last edited by HISEnberg

            @Christoph-Hart I think I am missing something but this won't work for me.

            The "whatever" here is just the name of the scriptFx correct (whatever we named the xml file)?

            ** Edit: Something strange with how the project was set up. There is something buggy about this feature that I can't quite put my finger on. Does the scriptnode have to be compiled to dll first? I solved the issue but I can't say exactly how. This has happened to me numerous times in the past.

            Sonic Architect && Software Mercenary

            1 Reply Last reply Reply Quote 0
            • HISEnbergH HISEnberg referenced this topic
            • J
              Jeetender @Christoph Hart
              last edited by

              @Christoph-Hart Unknown function 'setForwardControlsToParameter'

              dannytaurusD 1 Reply Last reply Reply Quote 0
              • dannytaurusD
                dannytaurus @Jeetender
                last edited by dannytaurus

                @Jeetender Check the docs. Looks like you're missing an 's' at the end - setForwardControlsToParameters

                https://docs.hise.dev/scripting/scripting-api/dspnetwork/index.html#setforwardcontrolstoparameters

                Meat Beats: https://meatbeats.com
                Klippr Video: https://klippr.video

                J 1 Reply Last reply Reply Quote 0
                • J
                  Jeetender @dannytaurus
                  last edited by

                  @dannytaurus said in This script processor has a network that consumes the parameters:

                  @Jeetender Check the docs. Looks like you're missing an 's' at the end - setForwardControlsToParameters

                  https://docs.hise.dev/scripting/scripting-api/dspnetwork/index.html#setforwardcontrolstoparameters

                  Yes it was missing am 's' at the end, thank you. it works but gives out a warning in almost every script "Warning: 'local' used outside of callback/inline function, treating as 'var' "

                  David HealeyD 1 Reply Last reply Reply Quote 1
                  • David HealeyD
                    David Healey @Jeetender
                    last edited by David Healey

                    @Jeetender The only place you should use var is within functions and paint routines. In on init you should use const as much as possible, followed by reg. In MIDI callbacks and inline functions you should use local.

                    That warning is telling you you've used local where you should use var (or possibly const/reg) but HISE is still going to accept it and behind the scenes treat it as a var. This is for the benefit of AI agents who don't understand HISE script.

                    Free HISE Bootcamp Full Course for beginners.
                    YouTube Channel - Public HISE tutorials
                    My Patreon - HISE tutorials

                    dannytaurusD 1 Reply Last reply Reply Quote 0
                    • dannytaurusD
                      dannytaurus @David Healey
                      last edited by

                      @David-Healey said in This script processor has a network that consumes the parameters:

                      The only place you should use var is within functions and paint routines. In on init you should use const as much as possible, followed by reg. In MIDI callbacks and inline functions you should use local.

                      We should just use var everywhere and let the parser/compiler sort it out.

                      Meat Beats: https://meatbeats.com
                      Klippr Video: https://klippr.video

                      David HealeyD 1 Reply Last reply Reply Quote 1
                      • David HealeyD
                        David Healey @dannytaurus
                        last edited by

                        @dannytaurus said in This script processor has a network that consumes the parameters:

                        We should just use var everywhere and let the parser/compiler sort it out.

                        😢 Probably true...

                        Free HISE Bootcamp Full Course for beginners.
                        YouTube Channel - Public HISE tutorials
                        My Patreon - HISE tutorials

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

                        29

                        Online

                        2.2k

                        Users

                        13.5k

                        Topics

                        117.4k

                        Posts