HISE Logo Forum
    • Categories
    • Register
    • Login

    Noob question about scriptnodes.

    Scheduled Pinned Locked Moved Scripting
    45 Posts 7 Posters 3.0k 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

      Looking at this again , for some reason when using this snippet , it shows the interface designer but shows nothing int the DSP network , also when I just start fresh with initializing the DSP Network , when I add an interface ,the DSP network disappears ?

      HiseSnippet 1619.3ocwX06iaTDEe1y2bD6DhRfHjnyJz3HcXY6b4KkBatymCVDewI6kiTQzlcGedzs6LK6tN24DRETveBITvGcHJnFnJRzRj.cUzEDUo6BEoflvLyN6mdy4EGH2VMe7dy626i48dy12gpibcoN.khqO1FATNBTcLwa3JC0vDP21.kiB6o45gbJ6uzxis0bcQF.EkBWhufRw4Ahu8ZtrloFQGEsD.rAEqitL1B6EsZ+Ve.1zrilAZcrULpWpUWcJYEpIcDCOEf0.1Z5aosIZMMNYyAAJKrpA1i5n5o4gbAJyuL0Xr5P51De52.6hukIhOoNPkcP9K2gZZvQLeUvJCwlF8CzaW.6T5GYEJ3aENArG1.Gtdj03XhMJGwQb6gxb6G7pOc3UKK3oDCdy6CuiCU0cv1dQ6vw1ggcILG0.MlKHNr7oEn7P3JTFADupVZag53vlDxPk5MN+hkaTq1ot3fQDcOLkTlRVi5gtBoxoJc2REKcuRkSu0fAYtGWLNTSSjSlay85N6GiUHirtExYwx2VybDJjPl5mz9d37Ye0805XDRIcIXuqXijyiGfDn0A6VCDprwWJRGiupP0xfrnklzACjdEdjnjbFodBG8QkNZUSrAxAfM3d4NNnOdDhnOFHrOxKPe8a+a+PKPNNfRvqVtilNyNlj+G7fh4h+Ef8nFnD7Jt8+B4c4QddThf2CA8CLyf6q2sslmFOdWZOX1HajiGl6oUZitMKQhezeQXaj6VdTagAyxlR3VOkijKS1N.EnBWji4CZvFXgMLLQ8otX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FW3B0NCX0cXsN35JTVV5ZPZGQTK64MmyL3F3Og7kyMvSG8Ra9eUkIUX9O6Rmq94mp4WdWJuWpijrnUqoZ48e8vKkkWhv+ih8eUlqZZ19TOe6fyGb3o4CJACaaZV7CyMopsWyIUMd2eS5GdbpKA9A7OMC+vieA9gj0Elk+myqj2MXoo6Puot+Sg39nCIVg4lIh+ybQXO97x0C9IU7ze03+lH7M004O87cYuULadZLC7b5YfmklAdNyLvyYmAdN2Lvy42Wd3+x82ajG0x+2RvVn+phfKEkUIZrWjJRBA9Gbn72pA
      
      

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

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

        Disappearing Scriptnode when I add interface even when I switch to ScriptFX in the script Editor
        DSP.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 the dsp is a script as is the interface. When creating the interface, Hise just switch to display it in place of the dsp. On the top left combobox, you can choose what script is displayed, so you'll find the dsp in there

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

          1 Reply Last reply Reply Quote 0
          • 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
                                            • First post
                                              Last post

                                            25

                                            Online

                                            1.8k

                                            Users

                                            12.1k

                                            Topics

                                            105.0k

                                            Posts