HISE Logo Forum
    • Categories
    • Register
    • Login

    How to Change Order of the Stacked Effects

    Scheduled Pinned Locked Moved General Questions
    26 Posts 11 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.
    • DabDabD
      DabDab @Natan
      last edited by

      @Natan @thank you.. but I need FX order should change (e.g Delay after Reverb sounds different than Reverb After Compressor) as soon as I change the FX panels.. Is this possible?

      Bollywood Music Producer and Trance Producer.

      MikeBM NatanN 2 Replies Last reply Reply Quote 0
      • MikeBM
        MikeB @DabDab
        last edited by

        @DabDab

        You can also possibly take up Lindon's idea and select the effects via ComboBox in slots - it's the same but without drag&drop.

        Link Preview Image
        Anyone Done a Rerdering FX?~

        @Natan Oh sorry, bad habbit..I never say Hi in a forum. But Hi :) I just thought to make another try on this today. And I totally agree with you. Using HeatU...

        favicon

        Forum (forum.hise.audio)

        "One hour of trial and error can save 10 minutes of reading the manual."
        "It's easier to hit the developer with feature requests than to spend 10 minutes reading the manual. :-)))"
        HISE Develop - Mac Pro 5.1, OS X 10.14.6, Projucer 6.02, Xcode 10.3

        DabDabD 1 Reply Last reply Reply Quote 2
        • ustkU
          ustk @UD AUDIO
          last edited by

          @UD-AUDIO Scriptnode has nothing to do with this, it's more a modular DSP environment.

          @DabDab On the interface, you'll need to master the panel painting/mouse callback (so all in one panel). But it might be doable with simple dragging panels though (one panel per effect), but I never tried...

          On the FX side, you'll need to use the "Effect Slot" FX so you can swap FXs at runtime using the "SlotFX" API.
          It should also be possible in Scriptnode with some basic routing and send/receive nodes.

          Hise made me an F5 dude, browser just suffers...

          Christoph HartC 1 Reply Last reply Reply Quote 2
          • NatanN
            Natan @DabDab
            last edited by

            @DabDab So Make 2 Chains.

            Delay > Reverb
            Reverb > Delay

            Simply Bypass / First One Using A Button, And Enable Second Chain.
            Also To Make It More User Friendly, Just Move The Graphics Around By Adding Some X,Y Positioning.

            Kinda Cheating, But It Works 👋

            DabDabD 1 Reply Last reply Reply Quote 1
            • Christoph HartC
              Christoph Hart @ustk
              last edited by

              @ustk said in How to Change Order of the Stacked Effects:

              Scriptnode has nothing to do with this, it's more a modular DSP environment.

              Actually it is a bit more convenient to implement a dynamic signal chain that can be scripted using scriptnode.

              // Create a DSP Network
              const var dsp = Engine.createDspNetwork("dsp") ;
              
              // Create a list of all effects that you want to assign
              const var fx = [dsp.get("reverb"), dsp.get("delay")];
              
              // Create the ID list for the slots 
              // (they are just simple containers but it helps avoiding
              // fiddling with the indexes)
              const var slots = ["slot1", "slot2"];
              
              
              // This function will take an array with slot indexes
              // and move them into the slots defined above
              inline function setOrder(order)
              {
                  local i = 0;
                  
                  for(i = 0; i < order.length; i++)
                  {   
                      local idx = order[i];
                      fx[i].setParent(slots[idx], 0);
                  }
              }
              
              
              // Use -1 to remove the effect (not assign it to anything)
              setOrder([-1, -1]);
              
              setOrder([0, -1]);
              
              setOrder([1, 0]);
              

              Now all you need to do is to implement a dragging UI using script panels and then call setOrder with the updated index array (this is rather a tedious task but you would have to implement it anyway).

              ? OrvillainO 2 Replies Last reply Reply Quote 7
              • DabDabD
                DabDab @Natan
                last edited by

                @Natan I like the idea... I have a lower knowledge of HISE. So I need your help. I will post the project tomorrow along with your idea. I need some corrections.

                Bollywood Music Producer and Trance Producer.

                1 Reply Last reply Reply Quote 0
                • DabDabD
                  DabDab @MikeB
                  last edited by

                  @MikeB Yup.. :)

                  Bollywood Music Producer and Trance Producer.

                  1 Reply Last reply Reply Quote 0
                  • UD AUDIOU
                    UD AUDIO
                    last edited by UD AUDIO

                    Drag&drop swapping for comboboxes would be insane :D
                    (FL Studio mixer does work similar to this)
                    99 problems but f-x ain't one!

                    1 Reply Last reply Reply Quote 0
                    • DabDabD
                      DabDab
                      last edited by

                      Hi, @ustk @ulrik @Natan @MikeB
                      How can I change FX Order stack from Interface and via DSP.

                      HiseSnippet 955.3oc4W8zabSDEebxNzraJnVTkfi6wToRk2lT.INra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N+Vlpdcra9l8GPqyh+mzwuI9FQL2D4ycKtjkterVNBl2h7+SnK9CKnb+Aj7qRh9QsenMIBuC+ycc0Gb+QX8ocedzR3ylKgOasD973kvmOdI74SVBe9zqzG8uOsclRFUv+Q.m8xuzqk0dBFxjy2JP9K..R92xC
                      

                      Bollywood Music Producer and Trance Producer.

                      1 Reply Last reply Reply Quote 0
                      • Tania GhoshT
                        Tania Ghosh
                        last edited by Tania Ghosh

                        Hi....Snippet is not openning

                        Tania Ghosh

                        1 Reply Last reply Reply Quote 0
                        • DabDabD
                          DabDab
                          last edited by

                          @Natan @ustk @MikeB @ I have done FX Slot Reorder via comboBox and FXSlot . Now my problem is You to change order Of Panel?

                          FXOrder.jpg
                          I can understand dynamically it is impossible to make stunning Animated Things, like Serum/Vital does. Till now can anybody tell me how to change order of panel? Something virtual to make End user believe . I hope this will be my only solution for now.
                          I hope HISE developer @Christoph-Hart will implement this features in future.

                          Bollywood Music Producer and Trance Producer.

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

                            @DabDab Well, if you use comboboxes, this means an effect type can be select multiple times unless you added some safety. So moving panel isn't the solution, because this is more apparently related to effect selection than effect reordering... This would mean all panels have to exist prior to being called. If you have 5 effect types with 3 slots, this is 15 panels... imagine if you have more effects and/or slots...

                            Dynamic reordering is absolutely doable, but this requires some learnings on how to manipulate panels (or child panels). And this is not combobox friendly as they don't suggest re-ording by nature, but straight selection.
                            If you don't want to reorder but just call the good panel (like your screenshot suggests), then instead of creating 15 panels like mentioned above, a panel factory would be much better. But again, this requires some learning about panels and how to make a factory, as well as child panels. because child panels can be dynamic, not straight panels from a factory (they can be created but not deleted like child panels)

                            Seeing all of this it's hard to tell you how because it depends on the behaviour that you want and the skill level. In any case, you'll need to learn a lot about panel manipulation and/or how to make a factory using child panels, as no easy or ready solution will come to you (at least none I can think of to replace 15 or more panels, which is absolutely not a good start). I strongly advise you to learn everything about panel recipes in the doc, this will keep you busy for a while:

                            404 Not Found

                            favicon

                            (docs.hise.audio)

                            go step by step, create one child panel using a button first, then a combobox for two children, and add difficulty step by step.

                            It is not necessary to think effects like a list though. Each of the 3 panels above can have its own list of 1 panel ;)
                            Just make a child factory per effect type, and call it when and where you need it. I must say I've never done it this way for effects reordering.

                            Hise made me an F5 dude, browser just suffers...

                            LindonL DabDabD 2 Replies Last reply Reply Quote 1
                            • LindonL
                              Lindon @ustk
                              last edited by Lindon

                              @ustk said in How to Change Order of the Stacked Effects:

                              (at least none I can think of to replace 15 or more panels, which is absolutely not a good start).

                              Why? It works like a dream for me...as you can see in the example I posted 5 slots with 7 FX in each = 35 panels, works fine, no CPU or graphics overload....

                              HISE Development for hire.
                              www.channelrobot.com

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

                                @Lindon For two reasons:
                                It's good you don't have graphic overloads because I had some in the first tests I've made long ago. So I would be afraid to get glitchy graphics on some user smaller systems...
                                But the main reason (if the graphic load is ok) is the maintenance and the UI list growing exponentially, requiring huge component declarations.
                                I don't say it doesn't work or it is bad, but I prefer dynamic stuff with only one panel and some factory. The only issue with child panels is the impossibility of inserting something else than a panel. So knobs have to be panels too...

                                Hise made me an F5 dude, browser just suffers...

                                1 Reply Last reply Reply Quote 0
                                • DabDabD
                                  DabDab @ustk
                                  last edited by

                                  @ustk Ok... Thank you :)

                                  Bollywood Music Producer and Trance Producer.

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

                                    @Christoph-Hart This is really interesting!! I think I'll try this one! But what I don't quite get yet is the dsp.get("reverb") for example. So the reverb is a container in your DspNetwork? Or wrapped ones?

                                    1 Reply Last reply Reply Quote 0
                                    • OrvillainO
                                      Orvillain @Christoph Hart
                                      last edited by

                                      @Christoph-Hart said in How to Change Order of the Stacked Effects:

                                      @ustk said in How to Change Order of the Stacked Effects:

                                      Scriptnode has nothing to do with this, it's more a modular DSP environment.

                                      Actually it is a bit more convenient to implement a dynamic signal chain that can be scripted using scriptnode.

                                      // Create a DSP Network
                                      const var dsp = Engine.createDspNetwork("dsp") ;
                                      
                                      // Create a list of all effects that you want to assign
                                      const var fx = [dsp.get("reverb"), dsp.get("delay")];
                                      
                                      // Create the ID list for the slots 
                                      // (they are just simple containers but it helps avoiding
                                      // fiddling with the indexes)
                                      const var slots = ["slot1", "slot2"];
                                      
                                      
                                      // This function will take an array with slot indexes
                                      // and move them into the slots defined above
                                      inline function setOrder(order)
                                      {
                                          local i = 0;
                                          
                                          for(i = 0; i < order.length; i++)
                                          {   
                                              local idx = order[i];
                                              fx[i].setParent(slots[idx], 0);
                                          }
                                      }
                                      
                                      
                                      // Use -1 to remove the effect (not assign it to anything)
                                      setOrder([-1, -1]);
                                      
                                      setOrder([0, -1]);
                                      
                                      setOrder([1, 0]);
                                      

                                      Now all you need to do is to implement a dragging UI using script panels and then call setOrder with the updated index array (this is rather a tedious task but you would have to implement it anyway).

                                      Hey Chris, is this the right approach in 2025?

                                      I was thinking I'd add slotFX instances, and then write a callback to update each slot with the specified network name. But which is better or more future proof?

                                      Musician - Instrument Designer - Sonic Architect - Creative Product Owner
                                      Crafting sound at every level. From strings to signal paths, samples to systems.

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

                                        @Orvillain Yup you are on the right track. I find it best to follow the Module order (which networks are placed in which Hardcoded Master FX) and update your UI components from there, but you can do it either way.

                                        I made a template about this a few months ago:

                                        Link Preview Image
                                        Modular FX Template - changing Fx order with drag and drop panels

                                        Alright this is probably the least frustrating way to set this up to share on the forum. I realize the effects won't be shared either unless they are in Scri...

                                        favicon

                                        Forum (forum.hise.audio)

                                        OrvillainO 1 Reply Last reply Reply Quote 1
                                        • OrvillainO
                                          Orvillain @HISEnberg
                                          last edited by Orvillain

                                          @HISEnberg Nice one! I'll take a looksie. I'm not really bothered about dragging and dropping right now. Just the raw mechanics of switching the effect order across a bunch of SlotFX entries.

                                          Musician - Instrument Designer - Sonic Architect - Creative Product Owner
                                          Crafting sound at every level. From strings to signal paths, samples to systems.

                                          HISEnbergH Christoph HartC 2 Replies Last reply Reply Quote 0
                                          • HISEnbergH
                                            HISEnberg @Orvillain
                                            last edited by

                                            @Orvillain Understandable. You can replace that whole "drag n drop" system with simple comboboxes.

                                            The code is pretty verbose but I tried to keep it modular enough to follow the different functions. I recommend putting it through an AI and directing it to just remove the drag and drop panels so you can study the SlotFX API.

                                            As a side note, it isn't ready yet but I know Christoph is working on a DynamicContainer Component which will allow you to attach/detach the UI components to the module, so eventually this whole system will be a lot cleaner.

                                            On the audio/module side it is quite clean to switch networks in the HardcodedMasterFx. For that reason I really recommend starting from the Engine.addModuleStateToUserPreset and building your UI accordingly.

                                            Hope my ranting is clear here!

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

                                            24

                                            Online

                                            2.0k

                                            Users

                                            12.6k

                                            Topics

                                            109.5k

                                            Posts