HISE Logo Forum
    • Categories
    • Register
    • Login

    assign FX to Effect slot

    Scheduled Pinned Locked Moved Bug Reports
    67 Posts 16 Posters 4.5k 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.
    • ulrikU
      ulrik @ulrik
      last edited by

      @Christoph-Hart is there a way to dynamically check an effect modules attributes type (suffix), max and min values?

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      1 Reply Last reply Reply Quote 0
      • MikeBM
        MikeB
        last edited by

        @ulrik You are the hammer Ulrik. You get everything out of HISE one after the other. Unbelievable. Admirable. It's fun to learn from you. :-)

        "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

        1 Reply Last reply Reply Quote 1
        • MikeBM
          MikeB @ulrik
          last edited by

          @ulrik Does the factory method of creating panels, buttons and knobs when they are needed help?

          HiseSnippet 1615.3ocsX0saZbDEdWGuowzRUhTkxsi3ltnPI7aRSnQIwXSiaisQkjzJEEEMr6.LMKyh1c1XPQ9cnW0mj9X0K50UUp8blYWXw1PAr.Ii2YlyOemu4bl8vzNv2gEF5GXXt2qlLhYX9EVclHjCZNfxEFGc.NQKpizOXB40GYr+jQzvPlqgo4M9dTBy810P84ud59TOpvgMaJCi23ycXujOjKmMa6m8ibOuVTW1q3CSIcsmcjiunoumeDflaXUxXD04Cz9rSnnX6XYXdyCc4.R5HoRVng4t666Noy.+yDZ4eCOj20igCJazALjd5V9dtHhwYMZNf641NIpCM.qzdFGbCMG7UVGyc4SmeFWba0BjYZjlOL2YYvqbZ3UZ0gmYJ3sqFd2wpiS.ejb1JH19bqiDRVPOJrEjFVZYM14O9Lql9fDBYwgzOvZE.Clpg8CKUp.odoR4ajMS1L2+9jel80ddjnPFY.BvfPRnO4LF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Yc.K7CR+Qp8t3pL3YsiylzvH5KkeuU7lmwXHkx7eLMLlfObWvopVQ.KdyeOFE5dVvYbimwbmK6i+mLDkexXD6G7ArBF+0EZYvW1ZbgWQkBlFKNnTuXcN+Au76B9yFdXwFWiDKK3Hmk4nKwdk0d4uSXueaavdkWA1q7RYuxqE6Ud8XuxaL6UQ6klId4O2FrWkUf8prT1qxZwdUVO1qxFydU0d4t6D6k1laA1q5JvdUWJ6UcsXupqG6UciYuZZubPhW3aC1q1Jvd0VJ6UasXuZqG6UaiYu5Zu7hDujaaT4VeEXu5Kk8puVrW80i8pOO6c4Ko41VG66F4Qkye+Q3klEu.z+2bWTCdYLhPtbR5KUaqboRqJbuiUatzYvUi2ctB7haxaY7FeEcYsNrWOlibFX20p0ur8uONC88oz+XpLfioKmDMrieTfCCPh.+cnXlyNX2e5wkvwHyzgIbUC9W3S7hkwwlwKVNYQigTm.+26naeDuDvaolAvjPcWn6YcLNlTNomQKqREKYLj6xeuiCREeCf8qVmJafNU2.cpsA5TeCz4AafNObCz4aWpN30B+7Ho+PcYBLQ6CU8taZdnfBYYpLRi+Cr0gNYA
          

          "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

          ulrikU 1 Reply Last reply Reply Quote 1
          • ulrikU
            ulrik @MikeB
            last edited by

            @MikeB thank you Mike!
            and thank you for the factory method, it might be useful :)

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

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

              @ulrik Man! This is awesome...

              ulrikU 1 Reply Last reply Reply Quote 0
              • ulrikU
                ulrik @A Former User
                last edited by

                @UrsBollhalder thank you, but beware, I'm only experimenting with this, maybe I'm doing something really stupid 🤪

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

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

                  @ulrik Of course... I'll just study your code and then try to come up with something myself. That way I learn how to do it myself and am also responsible for my own stupid mistakes! 😂

                  But just seeing the possibility of it is really nice!

                  I would want to have the boxes move while dragging for example, even if there's no mouseUp happening, so you get a preview of things so to speak.

                  ulrikU 1 Reply Last reply Reply Quote 0
                  • ulrikU
                    ulrik @A Former User
                    last edited by

                    @UrsBollhalder said in assign FX to Effect slot:

                    I would want to have the boxes move while dragging

                    If you're refering to the "not dragged boxes" I agree, this is a swap so it would take some maths to calculate though, consider moving the last fx to slot 2 for instance :)

                    Hise Develop branch
                    MacOs 15.3.1, Xcode 16.2
                    http://musikboden.se

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

                      @ulrik I am studying keep practicing from the Practical Examples /projects. If you come up with the actual solution Drag Knob Button etc Panel and Swap FX Slot do share the snippet. I really want to study your works. Another Work I am big fan of yours.. That is Color Chart. I guess you made it few months ago. You are a big inspiration for us.

                      Bollywood Music Producer and Trance Producer.

                      1 Reply Last reply Reply Quote 0
                      • ulrikU
                        ulrik
                        last edited by

                        @d-healey @ustk how would you decide what type of value, the min and max, and suffix, to get from getAttribute()?

                        Would you make a long, long, very long array with the attribute names from all Effects and use as a look up table, or would you use another way, which?

                        This what I have so far, as you can see I can manipulate all values and set them with setAttribute, but I don't know what type it is, is it a boolean, values from a cmb, etc...

                        effect slot.gif

                        Hise Develop branch
                        MacOs 15.3.1, Xcode 16.2
                        http://musikboden.se

                        ustkU MikeBM 2 Replies Last reply Reply Quote 2
                        • FortuneF
                          Fortune @ulrik
                          last edited by

                          @ulrik Thank you man, you're great!!!

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

                            @ulrik I would almost certainly use a 2D array. I don't see where it would be very long, FXs don't have hundreds of parameters…
                            But why would you access min and max values? They are fixed values, so you just need to know if you are building a gain or a freq parameter or anything else. All gain are -100 to 0, all freq 20 to 20000, etc…

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

                            ulrikU 1 Reply Last reply Reply Quote 1
                            • MikeBM
                              MikeB @ulrik
                              last edited by MikeB

                              @ulrik Once again a perhaps pointless suggestion from me
                              Maybe via LAF (obj.valueSuffixString) and obj.text?

                              if (obj.text.indexOf("group2") != -1){
                                       g.setFont("GUI-Barlow-Medium", 17.0);
                                    g.setColour(grau); 
                                  
                                    g.drawAlignedText(obj.valueSuffixString, [0,-4,90,36], "centred");
                              
                                      g.setColour(hellgrau);
                                      g.setFont("GUI-Barlow-Medium", 17.0);
                              
                                      g.drawAlignedText(text , [0,32,80,20], "centred");
                                  };```

                              "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

                              ulrikU 1 Reply Last reply Reply Quote 0
                              • ulrikU
                                ulrik @MikeB
                                last edited by

                                @MikeB I don't have any knobs, I get all values from the module directly, and there is no information about type, suffix or anything, I have to create them myself so I will go with ustk's suggestion with arrays or objects per parameter

                                Hise Develop branch
                                MacOs 15.3.1, Xcode 16.2
                                http://musikboden.se

                                MikeBM 1 Reply Last reply Reply Quote 1
                                • MikeBM
                                  MikeB @ulrik
                                  last edited by

                                  @ulrik
                                  Tonight (we've come this far - that I dream of sliders and curly brackets at night) :-)

                                  It occurred to me that if you don't have knobs you can't save the values you set as presets - can you?

                                  "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

                                  ulrikU 1 Reply Last reply Reply Quote 2
                                  • ulrikU
                                    ulrik @MikeB
                                    last edited by

                                    @MikeB all gets stored in the panel, and the panel is stored in presets

                                    Hise Develop branch
                                    MacOs 15.3.1, Xcode 16.2
                                    http://musikboden.se

                                    MikeBM ulrikU 2 Replies Last reply Reply Quote 1
                                    • MikeBM
                                      MikeB @ulrik
                                      last edited by

                                      @ulrik Very good - I'll think about it at night :-))

                                      "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

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

                                        @MikeB said in assign FX to Effect slot:

                                        @ulrik Very good - I'll think about it at night :-))

                                        I find that the best ideas come in the early mornings, while still being wrapped in curly brackets and paint routines... Today I tried sending an e-mail off by hitting F5! 🤣

                                        1 Reply Last reply Reply Quote 3
                                        • ulrikU
                                          ulrik @ulrik
                                          last edited by ulrik

                                          @ulrik progress so far
                                          I had to remove the Degrade and Limiter modules because they gave me crazy values reported here:
                                          https://forum.hise.audio/topic/4705/effects-degrade-limiter

                                          This is using 1 panel for all Effect settings, maybe a bit limiting cause you can't have 2 modules in editing mode at the same time except for the CurveEq, I might change that.

                                          effect slot.gif
                                          I should say that the CurveEq is FloatingTile

                                          Hise Develop branch
                                          MacOs 15.3.1, Xcode 16.2
                                          http://musikboden.se

                                          DabDabD 1 Reply Last reply Reply Quote 6
                                          • DabDabD
                                            DabDab @ulrik
                                            last edited by

                                            @ulrik Awesome (y)

                                            Bollywood Music Producer and Trance Producer.

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

                                            57

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.7k

                                            Posts