HISE Logo Forum
    • Categories
    • Register
    • Login

    Quick ScriptNode Tutorial

    Scheduled Pinned Locked Moved ScriptNode
    12 Posts 5 Posters 1.3k 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.
    • clevername27C
      clevername27
      last edited by clevername27

      I haven't seen this documented, so thought I'd lay this out quick.

      1. Add a ScriptNode effect to your Module Tree.

      2. Create your network.

      3. Right-click on the header of the outer-most element. (This will be on at the top of the screen. )

      4. Select the option for compilation. (Also select if you want to the Poly or Tail options.)

      5. Save your Network, if you haven't already.

      6. Select Compile DSP networks as dll in the Export menu.

      7. Wait for compilation. Check the terminal to ensure compilation finished successfully.

      8. Remove the ScriptNode effect from your Module Tree. (This will delete your Network, unless you saved it.)

      9. Compile all Scripts, and save the XML file.

      10. Quit and Relaunch HISE.

      11. In the place of where your ScriptNode Effects were, add Hard-Coded Effects. (Also, choose Master or poly, depending what you chose when compiling them.)

      12. When you open the Hard-Coded Effect, you should see your compiled Network(s) as options to choose. Make your selection.

      / END

      EDIT: To those saying this isn't necessary because there are videos about this, so it's not necessary - look at the second comment. Videos are great, but not everyone knows about them, and they're not written documentation.

      Here's is @d-healey's video on the subject. (Rule 35 - for any HISE topic, Dave has a video.)

      Christoph HartC HISEnbergH 2 Replies Last reply Reply Quote 3
      • Christoph HartC
        Christoph Hart @clevername27
        last edited by

        @clevername27 Pretty much yes, but Step 7 must come before Step 5 - the exporter takes the XML file to create the C++ code, not the currently loaded network, so if you haven't saved the network between ticking the Allow Compilation flag and Export to Dll, it won't show up in the export popup.

        Also I think there are 1-2 videos floating around somewhere that show how this works.

        clevername27C 1 Reply Last reply Reply Quote 1
        • M
          Mighty23
          last edited by

          Thank you for the tutorial. As someone new to this, I'd like to understand a few things. Apart from when we need to export script nodes to other projects, when exactly is it necessary to compile script nodes? Sometimes, I find that I need to compile the script node to get the sound output, while other times everything works smoothly without needing to compile

          Free Party, Free Tekno & Free Software too

          LindonL clevername27C 2 Replies Last reply Reply Quote 1
          • HISEnbergH
            HISEnberg @clevername27
            last edited by

            @clevername27 I think @d-healey pretty well covers almost all of this in this video https://www.youtube.com/watch?v=24vH-oxX1m4

            1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @Mighty23
              last edited by

              @Mighty23 said in Quick ScriptNode Tutorial:

              Thank you for the tutorial. As someone new to this, I'd like to understand a few things. Apart from when we need to export script nodes to other projects, when exactly is it necessary to compile script nodes? Sometimes, I find that I need to compile the script node to get the sound output, while other times everything works smoothly without needing to compile

              you should always be getting the same rtesult in compiled and uncompiled node sets. Several reasons to compile:

              • CPU
              • convivence
              • a truck load more...

              HISE Development for hire.
              www.channelrobot.com

              M 1 Reply Last reply Reply Quote 1
              • M
                Mighty23 @Lindon
                last edited by

                @Lindon said in Quick ScriptNode Tutorial:

                CPU

                Are we talking about CPU performance in HISE or in compiled files?

                Free Party, Free Tekno & Free Software too

                LindonL 1 Reply Last reply Reply Quote 0
                • LindonL
                  Lindon @Mighty23
                  last edited by

                  @Mighty23 both

                  HISE Development for hire.
                  www.channelrobot.com

                  1 Reply Last reply Reply Quote 0
                  • clevername27C
                    clevername27 @Christoph Hart
                    last edited by clevername27

                    @Christoph-Hart Thank you, Chris. Fixed.

                    1 Reply Last reply Reply Quote 0
                    • clevername27C
                      clevername27 @Mighty23
                      last edited by

                      @Mighty23 You don't need to compile them at all. But I'd suggest compiling them as soon as possible because things will run faster, including while you're still working on the plugin.

                      M 1 Reply Last reply Reply Quote 1
                      • M
                        Mighty23 @clevername27
                        last edited by

                        @clevername27 said in Quick ScriptNode Tutorial:

                        You don't need to compile them at all.

                        The non-compilation requirement for Script Node also applies in cases where there are Faust nodes?

                        Free Party, Free Tekno & Free Software too

                        clevername27C LindonL 2 Replies Last reply Reply Quote 0
                        • clevername27C
                          clevername27 @Mighty23
                          last edited by

                          @Mighty23 I believe so, yes. But, the genius thing about ScriptNode is that it compiles to C++ code, so do compile everything.

                          1 Reply Last reply Reply Quote 0
                          • LindonL
                            Lindon @Mighty23
                            last edited by

                            @Mighty23 said in Quick ScriptNode Tutorial:

                            @clevername27 said in Quick ScriptNode Tutorial:

                            You don't need to compile them at all.

                            The non-compilation requirement for Script Node also applies in cases where there are Faust nodes?

                            no, you should compile your ScriptNode graphs that include Faust modules...if you can.

                            HISE Development for hire.
                            www.channelrobot.com

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

                            24

                            Online

                            1.7k

                            Users

                            11.8k

                            Topics

                            102.7k

                            Posts