HISE Logo Forum
    • Categories
    • Register
    • Login

    Reference Multiple Convolution Nodes in ScriptNode

    Scheduled Pinned Locked Moved Solved ScriptNode
    11 Posts 4 Posters 377 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.
    • bendursoB
      bendurso
      last edited by

      How can I reference multiple convolution nodes to load an audio file into each convolution?

      HISEnbergH 1 Reply Last reply Reply Quote 0
      • HISEnbergH
        HISEnberg @bendurso
        last edited by

        @bendurso I hope there is a better solution, but you could compile a different network for each convolution you are using, then load those into a scriptnode and use a soft bypass to cycle through them.

        Definitely don't recommend this if it is a lot of Audio files though.

        bendursoB 1 Reply Last reply Reply Quote 0
        • bendursoB
          bendurso @HISEnberg
          last edited by

          @HISEnberg Thank you. But I'm pretty sure it's possible, because even in the compiled effect I can even see the two convolutions.

          Screenshot 2024-10-31 at 5.13.26 PM.png

          bendursoB 1 Reply Last reply Reply Quote 0
          • bendursoB
            bendurso @bendurso
            last edited by

            @bendurso Bump :)

            Anyone knows how can I load the samples into multiple convolution nodes inside one scriptnode effect?

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

              @bendurso Enable the external slot for each convo node. On your UI add two audio waveforms, set the processor ID for both to your Script FX. Set the sample index of the first one to 0 and the second one to 1.

              3bc8a0d1-f33c-4b95-bc42-a587df968816-image.png

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

              1 Reply Last reply Reply Quote 0
              • bendursoB
                bendurso
                last edited by

                Thanks. Yes, I did select an external node for each node. But how can I load via scripting?

                This only loads the samples for the first slot:

                const var ConvolutionReverb = Synth.getAudioSampleProcessor("HardcodedMasterFX1");
                
                ConvolutionReverb.setFile(sample);
                
                d.healeyD 1 Reply Last reply Reply Quote 0
                • d.healeyD
                  d.healey @bendurso
                  last edited by

                  @bendurso Ah ok, I thought you could load into the UI component via scripting but it seems that's not possible.

                  @Christoph-Hart I think this is a missing feature?

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

                  bendursoB 1 Reply Last reply Reply Quote 0
                  • bendursoB
                    bendurso @d.healey
                    last edited by

                    @d-healey oh, I found the solution on this post: https://forum.hise.audio/topic/4355/changing-impulses-in-scriptnode/15

                    Matt_SFM d.healeyD 2 Replies Last reply Reply Quote 2
                    • bendursoB bendurso marked this topic as a question on
                    • bendursoB bendurso has marked this topic as solved on
                    • Matt_SFM
                      Matt_SF @bendurso
                      last edited by

                      @bendurso thank you, I knew it rang a bell but I couldn't remember how to do it (and couldn't recall this discussion 😅)

                      Develop branch
                      Win10 & VS17 / Ventura & Xcode 14. 3

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

                        @bendurso Oh that makes sense, nice find!

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

                        1 Reply Last reply Reply Quote 1
                        • bendursoB
                          bendurso
                          last edited by bendurso

                          I’ve encountered another related issue. I want to use setSampleRange for each convolution.

                          However, it doesn’t work when referencing the audioslot, for example:

                          const var first = ConvolutionReverb.getAudioFile(0);
                          

                          Has anyone managed to do this successfully?

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

                          43

                          Online

                          1.7k

                          Users

                          11.7k

                          Topics

                          101.9k

                          Posts