HISE Logo Forum
    • Categories
    • Register
    • Login

    Noob question about scriptnodes.

    Scheduled Pinned Locked Moved Scripting
    45 Posts 7 Posters 2.6k 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.
    • lalalandsynthL
      lalalandsynth
      last edited by lalalandsynth

      It does not matter what I select to display in the script editor , I can select either scriptFX or Interface and it will not show the ScriptFX.
      DSP 2.gif

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

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

        @lalalandsynth not in the script but the combobox just above

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

        lalalandsynthL 1 Reply Last reply Reply Quote 0
        • lalalandsynthL
          lalalandsynth @ustk
          last edited by

          @ustk not the combobox you can see in the gif ?

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

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

            @lalalandsynth Nope, this one:

            Untitled.png

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

            1 Reply Last reply Reply Quote 1
            • lalalandsynthL
              lalalandsynth
              last edited by lalalandsynth

              @ustk
              Thanks , working now .

              1. I see I can Export as Base64 snippet ,can I use that to make my own little modules and then import them into an existing scriptnode , wondering if I can say make a filter config and then import that into a wet/dry Reverb config ?

              2. If I am right about the snippet , how can I import it ?

              3.What are the unusednodes that are left when I delete a node ? can I not remove it fully ?

              4, What is the "create screenshot" for ?

              1. Can I create another row of parameter controls ? At some point I run out of horizontal space :)

              2. Can I make my own Meta nodes ?

              https://lalalandaudio.com/

              https://lalalandsynth.com/

              https://www.facebook.com/lalalandsynth

              https://www.facebook.com/lalalandsynth

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

                @lalalandsynth

                1. I don't really know. Might be to import in a C++ context? No other idea...

                2. ...

                3. I don't know what you mean by unused nodes... Maybe a screenshot, please?

                4. Here's the corresponding code, but it seems to be broken (or there's a subtle subtlety...)

                if (result == (int)MenuActions::CreateScreenShot)
                	{
                		auto mc = node->getScriptProcessor()->getMainController_();
                
                		auto docRepo = dynamic_cast<GlobalSettingManager*>(mc)->getSettingsObject().getSetting(HiseSettings::Documentation::DocRepository).toString();
                
                		if (docRepo.isNotEmpty())
                		{
                			auto targetDirectory = File(docRepo).getChildFile("images/scriptnode/");
                
                			auto imageFile = targetDirectory.getChildFile(node->getId()).withFileExtension("png");
                
                			targetDirectory.createDirectory();
                
                			auto g = findParentComponentOfClass<DspNetworkGraph>();
                
                			auto imgBounds = g->getLocalArea(this, getLocalBounds());
                
                			auto img = g->createComponentSnapshot(imgBounds, true);
                
                			PNGImageFormat pngFormat;
                			FileOutputStream fos(imageFile);
                			if (pngFormat.writeImageToStream(img, fos))
                			{
                				PresetHandler::showMessageWindow("Screenshot added to repository", "The screenshot was saved at " + imageFile.getFullPathName());
                			}
                		}
                	}
                
                1. I'd like that too but it's not possible at the moment. It would be a cool addition, I myself got around 120 knobs...
                  Having them automatically go to another line based on the graph's width would be cool. Also, having the possibility to re-arrange them on the fly would be an absolute killer! (even if it's possible by editing the XML...) Finger crossed @Christoph-Hart!

                2. Sure you can: https://docs.hise.audio/scriptnode/manual/cpp_generator.html#create-meta-nodes
                  Although keep in mind there will be a procedure to re-import previous patches...
                  https://forum.hise.audio/topic/2555/scriptnode-breaking-changes/3

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

                1 Reply Last reply Reply Quote 0
                • lalalandsynthL
                  lalalandsynth
                  last edited by

                  Yes, I was aware of the CPP export , I was hoping you could make your own Meta nodes within HISE , would be nice to be able to save a Node config as a meta node and recall from the module selector.

                  https://lalalandaudio.com/

                  https://lalalandsynth.com/

                  https://www.facebook.com/lalalandsynth

                  https://www.facebook.com/lalalandsynth

                  ustkU 1 Reply Last reply Reply Quote 0
                  • lalalandsynthL
                    lalalandsynth
                    last edited by

                    Here is the Unused node list.
                    When I delete a node it appears there.
                    Unused.jpg

                    https://lalalandaudio.com/

                    https://lalalandsynth.com/

                    https://www.facebook.com/lalalandsynth

                    https://www.facebook.com/lalalandsynth

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

                      @lalalandsynth said in Noob question about scriptnodes.:

                      Yes, I was aware of the CPP export , I was hoping you could make your own Meta nodes within HISE , would be nice to be able to save a Node config as a meta node and recall from the module selector.

                      That's the purpose of the CPP class, unless I don't entirely grasp what you need...

                      Here is the Unused node list.
                      When I delete a node it appears there.

                      Oh sorry, I don't use the node list...

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

                      1 Reply Last reply Reply Quote 1
                      • lalalandsynthL
                        lalalandsynth
                        last edited by

                        Yes , but that needs a recompile, right ?
                        i mean just r-click "Save as meta" or something like that and then it appears in the module list , after all its just a compilation of node modules.

                        I am aware of the cpu cost but in that case you could go the cpp route.

                        https://lalalandaudio.com/

                        https://lalalandsynth.com/

                        https://www.facebook.com/lalalandsynth

                        https://www.facebook.com/lalalandsynth

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

                          @lalalandsynth Yes you need to recompile so the custom node is made available on the list.

                          You can always copy the node in question with CMD+C (since you can't copy from right-click)
                          The copied node will appear at the top of the list so you can insert it in another project easily

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

                          lalalandsynthL 1 Reply Last reply Reply Quote 0
                          • lalalandsynthL
                            lalalandsynth @ustk
                            last edited by

                            @ustk have you done it and does it work?

                            https://lalalandaudio.com/

                            https://lalalandsynth.com/

                            https://www.facebook.com/lalalandsynth

                            https://www.facebook.com/lalalandsynth

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

                              @lalalandsynth I confirm ;)

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

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

                                The idea of SNEX is that it will create these meta nodes on the fly by JIT compiling the Cpp code that is generated, so that recompile cycle will be not be necessary anymore.

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

                                  @Christoph-Hart That's a game-changer😎

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

                                  1 Reply Last reply Reply Quote 1
                                  • lalalandsynthL
                                    lalalandsynth
                                    last edited by

                                    Indeed , sweet !

                                    https://lalalandaudio.com/

                                    https://lalalandsynth.com/

                                    https://www.facebook.com/lalalandsynth

                                    https://www.facebook.com/lalalandsynth

                                    1 Reply Last reply Reply Quote 0
                                    • AxiomCruxA
                                      AxiomCrux @Natan
                                      last edited by

                                      @Natanr said in Noob question about scriptnodes.:

                                      HiseSnippet 761.3ocwU0saSCCE1tsFVqFHPhGfncUmzXpg+uiQ+CUw5HZYL1cSdNdqVMwNxwYi.hWHd53M.NNIcIkVgPUBHW4ymOeNeme7wdZEimjnzHb6Sxh4H71D+LoY1fYTgDMYHBeexTZhgqcJf5mESSR3AHLt4as.31sP4ee+08ogTIiWAgPmpDL9ghHgoB06f2IBCGSC3mHhp48yNXBSIGnBUofdZR5ghor4zq3GQst0ffv2YTfvnz9Fpgm.9zWEj4OScirv+SEIhKB4VCWjObPEvnAyDgAdKh0DDB2xqJxaVD4OhLUDHtEuJC7f7MbpXTOGfarrjZsjjbqKod0jzXUXf8.rtrp7P0TWqB0AhPEjFRMKqLaInbCgZ4pyDogKSDlr5kn+qx8gDOggMa85swZzKTn9aq2xh+8Hit7RNyTI1VjwmsoUZ20Jk01HhWM20g3yzhXC7+sBY6RSmwm4tjfJfQ3uQbFIuRH46yzbPaCShOhatQom2cmnrlC881YWmKSkLaJ2IVyioZ9IJuPZV2DZTbH+Xf0dNWDpXy8Eeluamuzocmu1oNobQ125QW1LpTxCSV0M6sWoQqB6JSitfq2y4ZZXZ04sxE369mkCUxIRg48w7R2VJFV.CiKpoxJzaEUEzZZINVkZDxqlRMZwmPXxQoQ9vbHFePYzBX3FHK0b6dVaaGpOWFja7C3qbSWqMtbS2Eahr5fKM.dY8IuAnbMrxVs2hTTxranBfLwVioLHik4QMyrWgfQjFnGkq2mcauZ6RRtHP1+pfODxFKAiaZO4EyYKhhApnHqzrSYKW+QQf8ORv6AdTz2cLzsXmYOMo9TabC64keuhpgQ0viEViOLYH0PsQXYbC46Xt1HrEd7P90vKCEM7sIC4IyMp3+MkgHJSqNmUzTXKAaki.sFx7GZZCu3A1Ntn7tWfGo298PQvi.myX1ICOFlprdNOYC37zMfyy1.NOeC37hMfyK2.Nu52xw996aRMpnhWM..uQ4MWX7HIEFXjOOD8SjnpbwJ

                                      I get the error : Script FX1:! Line 1, column 25: Function / constant not found: Engine.createDspNetwork {U2NyaXB0IEZYMXx8MjR8MXwyNQ==}
                                      Sc

                                      Do I need to compile and use the scriptnode branch of the git repository? or does this work in the v 2.0.0 posted

                                      http://www.axiom-crux.net

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

                                        @MacroMachines Need to be using the latest version.

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

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

                                          @d-healey I figured it out. The "latest" release version doesn't seem to work, but the "scriptnode" branch in the git when I compiled it seems to work. Is that how you got the version you are using?

                                          I'm exploring this a bit, but I have been having quite a few crashes. Seems incredibly powerful and I love the design of it.

                                          http://www.axiom-crux.net

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User @Natan
                                            last edited by

                                            @Natan I somehow don't see that interface! Pretty much a noob here but really interested in the possibilities of the scriptnodes! I have a HISE scripnode version compiled here on my system... Shouldn't it work? I loaded up your snippet but I don't see anything other than Engine.createDspNetwork("dsp") ; in the script editor... Thx, Urs

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            12

                                            Online

                                            1.7k

                                            Users

                                            11.8k

                                            Topics

                                            103.0k

                                            Posts