HISE Logo Forum
    • Categories
    • Register
    • Login

    Scriptnode, how to use getNumParameters ?

    Scheduled Pinned Locked Moved Scripting
    scriptnodeparameter
    8 Posts 2 Posters 440 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.
    • d.healeyD
      d.healey
      last edited by

      Can you tell me what I'm doing wrong?

      const dsp = Engine.createDspNetwork("dsp"); 
      
      const add = dsp.create("math.add", "add");
      add.setParent(dsp, -1);
      
      Console.print(add.getNumParameters());
      

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @d.healey
        last edited by

        @d-healey Bumpy bump

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        ustkU 1 Reply Last reply Reply Quote 0
        • ustkU
          ustk @d.healey
          last edited by

          @d-healey There's simply no function called getNumParameters(), what do you want to do? Can't you just call the parameter you want by id or name using getParameter / set?

          Can't help pressing F5 in the forum...

          d.healeyD 1 Reply Last reply Reply Quote 0
          • d.healeyD
            d.healey @ustk
            last edited by d.healey

            @ustk said in Scriptnode, how to use getNumParameters ?:

            @d-healey There's simply no function called getNumParameters()

            What you smokin? :p

            16025ea8-e5f1-4128-b268-ccc579fb6457-image.png

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            ustkU 1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @d.healey
              last edited by

              @d-healey said in Scriptnode, how to use getNumParameters ?:

              What you smokin? :p

              :see-no-evil_monkey:

              That's what the console trows and the autocomplete menu of the module doesn't show it either, so there might be a discrepancy somewhere...

              Screenshot 2022-03-07 at 15.25.33.png

              Can't help pressing F5 in the forum...

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @ustk
                last edited by

                @ustk

                so there might be a discrepancy somewhere...

                Well I'm guessing that the function isn't meant to be called on the object I'm calling it. I want to know how the function is meant to be used.

                Libre Wave - Freedom respecting instruments and effects
                My Patreon - HISE tutorials
                YouTube Channel - Public HISE tutorials

                ustkU 1 Reply Last reply Reply Quote 0
                • ustkU
                  ustk @d.healey
                  last edited by

                  @d-healey Seeing that none of the functions in the DspModule API corresponds to the autocomplete menu, this is not where it should be called. Isn't the DspModule the entire DSP or the ScriptFX in question?

                  Can't help pressing F5 in the forum...

                  d.healeyD 1 Reply Last reply Reply Quote 0
                  • d.healeyD
                    d.healey @ustk
                    last edited by

                    @ustk said in Scriptnode, how to use getNumParameters ?:

                    @d-healey Isn't the DspModule the entire DSP or the ScriptFX in question?

                    Possibly. I did try calling the function on other parts of the network and had the same result.

                    Libre Wave - Freedom respecting instruments and effects
                    My Patreon - HISE tutorials
                    YouTube Channel - Public HISE tutorials

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

                    57

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    101.8k

                    Posts