HISE Logo Forum
    • Categories
    • Register
    • Login

    Dynamic reassignment of effect slots

    Scheduled Pinned Locked Moved General Questions
    36 Posts 8 Posters 1.3k 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.
    • HISEnbergH
      HISEnberg @Christoph Hart
      last edited by

      @Christoph-Hart said in Dynamic reassignment of effect slots:

      Just a small heads up that we have this now:

      https://docs.hise.dev/tutorials/ui/index.html#draggable-fx-chain

      I noticed one small anomaly about this example. If you add more effects to the example script, you need to set the panel's saveInPreset to false temporarily to update the JSON effect list, then reenable it again!

      Sonic Architect && Software Mercenary

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

        @Christoph-Hart said in Dynamic reassignment of effect slots:

        Just a small heads up that we have this now:

        https://docs.hise.dev/tutorials/ui/index.html#draggable-fx-chain

        As it turns out, that was reasonably easy to add.

        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 1
        • HISEnbergH
          HISEnberg @Orvillain
          last edited by

          @Orvillain Agreed so far I am really happy about this! Very simple to use. Need to test it out in some real world examples still!

          Sonic Architect && Software Mercenary

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

            I'm bumping up against an issue I can't solve in this snippet. How do you filter the list of effects so only certain ones can be rearranged?

            In my case I may have certain effects like Routing Matrices, or Input and Output Gains that I want in fixed places (beginning and end of chain).

            **Edit I did resolve this with some back and forth with AI. I think someone can come up with a cleaner solution since it should hypothetically be fairly simple to filter the list of effects.

            What A(I) did was make edits to the make() and onChange() functions.

            On make() I manually created the Fx List and added a startIndex and endIndex. Then in onChange I you just need to offset the indices (add startIndex) so setEffectChainOrder() get's the right positions.

            I'll spare the forum some AI slop but here is a sloppy HISE snippet in case anyone needs it and no better solutions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KqXWBF.Rdw8X6y7c6isaZNKqne0x6HXQLNPSj3updHoyix6NCUxL6Eaply9l2m6Yu55E2N9MQE0uInwHpSD+wNpqsDU9WVBAj6.4uX8Jk2DGSRuuxrfhQP4hG63jeqlBwEtnHd8KJh23hh3MunHdqKJhu2EEwa+zQDql2drfqdPYXAat0ZxaVtTo0BvmASFlX8eAjtAwbG
            

            Sonic Architect && Software Mercenary

            ustkU 2 Replies Last reply Reply Quote 0
            • ustkU
              ustk @HISEnberg
              last edited by ustk

              @HISEnberg if it's just in the beginning and the end of the chain, then you can re-order them using the range parameter and an offset. In fact, even in the case you have fixed FXs in the middle, it should be possible to re-order in two chunks, before and after.

              In the end it is just juggling with position numbers.

              if you have 10 fx in total, and want to re-order from 3 to 7 (0 based, 3 fixed at start and 2 at the end)

              the the slotRange is [3, 7] and chainOrder is for instance [4, 7, 6, 3, 5]
              This leaves 0,1,2 and 7,8,9 untouched

              If your chainOrder is based on indexes from 0 to 4, just add an offset of 3

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

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

                @HISEnberg Quickly looking at the snippet, it's more or less what it does 👍

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

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

                  @ustk Nice ya I shouldn't have used AI for that it was actually simple enough. I think it's time I get a new T-Shirt :)

                  Frame_214-removebg-preview.png

                  Sonic Architect && Software Mercenary

                  ustkU 1 Reply Last reply Reply Quote 2
                  • ustkU
                    ustk @HISEnberg
                    last edited by

                    @HISEnberg oh boy I missed that one so much 🤣

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

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

                      @ustk 😆

                      Just trying to get his attention so we can finally have another HISE Meetup.

                      If it's too audacious of me @Christoph-Hart I can remove the photo, just gave me a good laugh....

                      Sonic Architect && Software Mercenary

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

                        @HISEnberg Not sayin' Chris isn't strong... But having biceps as large as his brain might be the main reason you'll get banned...

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

                        HISEnbergH 2 Replies Last reply Reply Quote 1
                        • HISEnbergH
                          HISEnberg @ustk
                          last edited by

                          @ustk Those are the kinds of biceps you can only get by writing enough Hisescript...

                          Sonic Architect && Software Mercenary

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

                            @ustk Also I don't need to worry about being kicked off the forum, I know David will protect me.

                            Frame_214-removebg-preview.png

                            Sonic Architect && Software Mercenary

                            Christoph HartC d.healeyD 2 Replies Last reply Reply Quote 1
                            • Christoph HartC
                              Christoph Hart @HISEnberg
                              last edited by

                              Just trying to get his attention so we can finally have another HISE Meetup.

                              Soon...

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

                                😲

                                Sonic Architect && Software Mercenary

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

                                  @HISEnberg said in Dynamic reassignment of effect slots:

                                  @ustk Also I don't need to worry about being kicked off the forum, I know David will protect me.

                                  Frame_214-removebg-preview.png

                                  @HISEnberg Damn, I thought I'd burnt every copy of that picture

                                  Free HISE Bootcamp Full Course for beginners.
                                  YouTube Channel - Public HISE tutorials
                                  My Patreon - HISE tutorials

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

                                  13

                                  Online

                                  2.0k

                                  Users

                                  12.8k

                                  Topics

                                  111.4k

                                  Posts