HISE Logo Forum
    • Categories
    • Register
    • Login

    Retrieve Value From Scriptnode

    Scheduled Pinned Locked Moved General Questions
    9 Posts 2 Posters 505 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.
    • DanHD
      DanH
      last edited by

      Hi guys. Is there any way to get a value out of a scriptnode node?

      For example I am modulating the frequency of a filter with a Global Modulator. I'd like to get the value of the Frequency and send that to a knob on the interface, so the knob will move accordingly. I can get the LFO level and modulate a knob using a timer. Perhaps there's a way to convert that into frequency, but what I actually want is the level of the signal in scriptnode, as I'm planning on changing the intensity of the LFO signal within scriptnode.

      Any ideas welcome!

      Screenshot 2023-01-04 at 12.12.32.png

      HiseSnippet 2132.3oc2Ys0aijTEtZmTYlXxrrKyHj.IjZkm7Jl0xssShMHz3INwyZs4hYs2rCBgFpzc43lzcWMc2Ny3YzHsOvC6a7H+K3E9A.+DPBw6K+C3cdX4bppul3byjcXAGoHWmSUmy24TmKUUdPfvjGFJBHZqNZlOmnsFc3LunIcmvr8H82gn8dz8YgQ7.cEosm4yBC4VDMskdFRPa0kIxO+ymrMyg4YxyHQHGIrM46Y6ZGkQcPmOw1woGyhOx1M2ra1ouovqqvQLEvyRzZDel4orS3GvvoUhRzVYWK6HQvvHVDOjnQ2VXMa3DwK8Ty+H6P6ic33.CxPPPJx8DNVHhwue3Y7fyr4uLOMR2I1NVCR7EgDPxCx7LKo7LOhtuskcJ8LOz6KYnmsh79HsREg7REfrwkA44.IsbPZYEj9.5Py.a+nLNHd9Nz9dvF1XFrUjGJp4RJ8uzncEvL7hp5xNk2K.FjthJaVq1i0g+8g+zxkgsivH8yXA5606v8EVScXfoXn+yzkAIUOgGkRsx5vbzylz5f.xV+m3INtNrtDECqrqv0W3ACprtjKtf.9InpL1ieF2I+5wHk.X865chsGupY.GbmRhGd7ugaFUAgqbb0Pdj7KcYNNGCAPUFO0yLxV3U4CK+lxqlJdP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pHPXvtpJ6ZosOzVh7uAXOtoTA
      

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @DanH
        last edited by

        @DanH this maybe?Screenshot 2023-01-04 at 13.15.37.png

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

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

          If you don't plan to compile the network, use a global_cable node and modulate its parameter, then attach a script callback to the cable.

          If you need to compile the network, you'll need to set that peak node to an external DisplayBuffer slot and then grab it and find the maximum value (you might want to decrease the buffer size then).

          DanHD 1 Reply Last reply Reply Quote 1
          • DanHD
            DanH @Christoph Hart
            last edited by

            @Christoph-Hart Thanks, so the Global Mod would feed the Global Cable (for example) and then send the modulation output of the GCable to the filter frequency?

            And how to reference the cable for the callback? In fact I don't think I've ever scripted in scriptnode before 😆

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

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

              Yes. If you process the modulation value before connecting it to the frequency, just make sure that the cable uses the same source.

              The docs for using it in scripting are pretty complete for this subject:

              https://docs.hise.audio/scripting/scripting-api/globalroutingmanager/index.html
              https://docs.hise.audio/scripting/scripting-api/globalcable/index.html

              DanHD 3 Replies Last reply Reply Quote 0
              • DanHD
                DanH @Christoph Hart
                last edited by

                @Christoph-Hart thanks, will dig in, cheers!

                DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                https://dhplugins.com/ | https://dcbreaks.com/
                London, UK

                1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @Christoph Hart
                  last edited by

                  @Christoph-Hart This is great, thanks!

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  1 Reply Last reply Reply Quote 0
                  • DanHD
                    DanH @Christoph Hart
                    last edited by

                    @Christoph-Hart ok, this is still great BUT.... when I reload the project all the global cable nodes that I use in scriptnode vanish. I save the xml, save the scriptnode patch, reload, and they are gone. I put them back, save, re-open, gone again...

                    bug?

                    DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                    https://dhplugins.com/ | https://dcbreaks.com/
                    London, UK

                    DanHD 1 Reply Last reply Reply Quote 0
                    • DanHD
                      DanH @DanH
                      last edited by

                      @DanH friendly bump

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

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

                      27

                      Online

                      1.7k

                      Users

                      11.8k

                      Topics

                      102.8k

                      Posts