HISE Logo Forum
    • Categories
    • Register
    • Login

    scriptnode question

    Scheduled Pinned Locked Moved General Questions
    11 Posts 4 Posters 293 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.
    • Christoph HartC
      Christoph Hart
      last edited by

      1. Add a parameter to the root container
      2. Connect that parameter to any knob in the scriptnode graph
      3. Call DspNetwork.setForwardControlsToParameter(true) in the onInit callback
      4. Connect the parameters just like to a native module

      Example (turn down the volume, it's an sinewave at 0dB)...

      HiseSnippet 1363.3ocyX8zbaSDEekSTZhSSmzY5YFM8jyPvibHokNcXraRry3owIl3zPOvLc1HsNdGKsqX05j3V3DvLbiyvE9FvY3FeA5INwM5MXfC4a.7VIYKIakhigPwmz912S6u2+9sO4lBtEw2mKPZKbXeOBR6l5s5yjc1pClxP02FocK8FXeIQXDJZy9dXeehMRSalcTBzVXVTvuKJuI1AyrHwhPni3TKxtTWpLVZyJOl53TCaSNj5lP60qT2hy1h6v6A3YFcSjG1pK9DxdXkZ4zQZyU0lJ4hVRrj3C5rI2teqN7yXg5eD0mdrCQsnDpE7hBEi1pC0wt4.e0GgzlsYrmOSnmeG8FTa5P4wQfkC1vH1hjw.sbogzrofToKCR03N1pWvk.OsDva1P3ca8VVBpmLdGE1VTuNCRNswPXOIrB0Eo8i5awAEXxht3tjZBXwPCJbOSyUM1vzbkG1tGyRR4LCNaOtjrOqvJ4eQ9Ex+o4MFcq1sybO0wH3NNDQlaqxzhWmgEX8bOlHV03TrSOxPEA2Oc7cwIK9ZE50ITjypynx88HQqiy.p8B85A6ZhF5rIEE6iIkF3ZYnVrnwSvnnrBjpyEoNnpLHQeqnDcKGpMQfn.Fug9iY7iKgBhMQMLFe2NupLZhMdsTFC+9kxnmTearDqJ2hfC.QOhPRUAZssImB8tgEeKnuMwuqj6EfWWONSAds49aQ74wG3GUoe7hcp3MHbT2Nf0I3MXT6okftdAzvCEog6bXGA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A3.FB
      
      A 1 Reply Last reply Reply Quote 0
      • Y
        yall
        last edited by

        ah cool thanks, I tried to do it like this but I found it weird to have to create some kind of button for one controller another.
        thank you ;)

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

          The button (knob) is just a visual representation. Think of it as definition of public available properties of your algorithm.

          ustkU 1 Reply Last reply Reply Quote 0
          • Y
            yall
            last edited by

            @Christoph-Hart I see, so if I want for example to link parameters for example, wet reverb button, freq 2 volume of an eq, + a gain .. (for example). I create a configurable button in the script node which will be connected to my reverb eq gain .. and suddenly on my graphical interface, I simply assign a single button script fx / button parameter. a bit like a macro in the end. I understand :)

            1 Reply Last reply Reply Quote 0
            • ustkU
              ustk @Christoph Hart
              last edited by

              @Christoph-Hart wait, what? i've never used DspNetwork.setForwardControlsToParameter(true) but it still work without 🤔

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

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

                Ah it might be the default behaviour, would make sense actually. Good one past Christoph!

                1 Reply Last reply Reply Quote 3
                • A
                  alepan @Christoph Hart
                  last edited by

                  @Christoph-Hart said in scriptnode question:

                  DspNetwork.setForwardControlsToParameter(true)

                  Hi Christoph, I tried to add that line to the OnInit but I get an error of unknown function...
                  I bet I'm doing something wrong but I don't know what

                  A ustkU 2 Replies Last reply Reply Quote 0
                  • A
                    alepan @alepan
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • ustkU
                      ustk @alepan
                      last edited by ustk

                      @alepan said in scriptnode question:

                      Hi Christoph, I tried to add that line to the OnInit but I get an error of unknown function...
                      I bet I'm doing something wrong but I don't know what

                      For two reasons, the first being DspNetwork is a generic name, use your own variable
                      The second is a typo (Parameters with an 's')

                      const var mySuperDsp = Engine.createDspNetwork("superDSP");
                      mySuperDsp.setForwardControlsToParameters(true);
                      

                      But as Christoph said above and following my small experience with DSP network, you simply don't need that additional line... Parameters are directly available from the script straight away like any other module by default

                      @Christoph-Hart It is effectively true by default:

                      bool forwardControls = true;
                      

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

                      A 1 Reply Last reply Reply Quote 1
                      • A
                        alepan @ustk
                        last edited by

                        @ustk Thanks a lot mate, you're always very supportive and quick in your answers, I appreciate that!

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

                        19

                        Online

                        1.7k

                        Users

                        11.8k

                        Topics

                        103.2k

                        Posts