HISE Logo Forum
    • Categories
    • Register
    • Login

    Is there a way to find out which was the last clicked EQ band?

    Scheduled Pinned Locked Moved Unsolved Scripting
    equalizerfilterbandclick
    26 Posts 4 Posters 1.9k 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.
    • d.healeyD
      d.healey @Matt_SF
      last edited by

      @Matt_SF What I want is for the user to click on a band, then I can move a knob to change that band. Just like with the actual effect.

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

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @d.healey
        last edited by

        @d-healey I'm currently just learning it so I don't know, but, maybe the broadcaster can handle this :man_shrugging:

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

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

          @ustk I tried that but as far as I can tell it doesn't provide the index of the clicked node.

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

          Matt_SFM 1 Reply Last reply Reply Quote 0
          • Matt_SFM
            Matt_SF @d.healey
            last edited by Matt_SF

            @d-healey I know this topic has been covered previously (doing things in LAF functions) but this could work :

            HiseSnippet 1304.3ocuWssaaaCFlJNJc1cqKEnXWLrKD7UN.oF1IoocKXX4j8pQSR8pSyFPQQGsDsLmoIconygUDfh8jLfcWeJxiR2aPud2j8SJIKoDmDWuCFAwl+mzG+3+AplRgKIHPHQV42+jADj0mZ25Dtp6VcwTNpw1Hq6XuKNPQjNgh17jA3f.hGxxJ22qEXkeVj4yG9tMwLL2kjHBgNPPcI6P6SUIRat9SnLVcrGYeZ+TVux5MbE7sDLwP.O4rqfFfc6g8I6g0lMiMxZtZdTkP1RgUj.j0raJ7NoUWwQ7P6OfFPayH5EUQsf.EJttf4oQrVJZqtTlWy38c.BhRyDVHWHKbO6codzQxSXi4MJbR7HMeX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rT1a8x8V9hBVIQv7FWdPh.myzBVMNnm8W+lwhGdwX7nKJ3quXPqFC02+t28kgRhw5u+G+4fPIWBrUuDZqlAt0queMttQP34Vt+ktTK5Yhg51R6hgyBnqjMv9sf1EtDHqgCMaLGBynGmDtthdsFRsHlCEaKnWy4QJqpWaEorZrx+WdF8wtRwqbCm4oSB+DiDXeyMunRd3Mlf0NiFyZaWobETe3EGdkqqtz39PY038YoovmkmBeVYJ74ASgOqNE97vovmGcs9nemsMFpD8CaaBBZVKbvjUpLczeCnhGALI
            

            Edit : I'm not skilled enough in Broadcasters so I won't be of any help here 😛

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

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

              @Matt_SF Ah that's an interesting solution. I'm not sure LAF is meant to be used by that, but if it works it works. @Christoph-Hart What do you think?

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

              Matt_SFM 2 Replies Last reply Reply Quote 0
              • Matt_SFM
                Matt_SF @d.healey
                last edited by

                @d-healey I'm using it to simply display the nodes freq/Q/gain values into labels and I got no problems with it so far...

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

                1 Reply Last reply Reply Quote 1
                • Matt_SFM
                  Matt_SF @d.healey
                  last edited by

                  @d-healey one thing I didn't thought about is that this snippet will throw an error if you don't have enough knobs to display, depending on how many nodes the user adds. If only we could limit the number of nodes... Hint hint @Christoph-Hart ;)

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

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

                    @Matt_SF That's ok, for my purpose I don't have a fixed number of nodes. The user can add as many as they want. Just like with the effect's stock UI.

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

                    1 Reply Last reply Reply Quote 1
                    • ForeverLiveF
                      ForeverLive
                      last edited by

                      Sorry, i also have a question - What is parameterId for Frequency 2 or 3? For Frequency 0 in EQ you can just use Freq, but i tried Freq2, or Freq 2 - it's not working.

                      Matt_SFM ForeverLiveF 2 Replies Last reply Reply Quote 0
                      • Matt_SFM
                        Matt_SF @ForeverLive
                        last edited by Matt_SF

                        @ForeverLive go with :

                        yourEqFx. setAttribute(yourEqFx. Freq + int bandNum * yourEqFx. BandOffset, value) 
                        

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

                        ForeverLiveF 1 Reply Last reply Reply Quote 1
                        • ForeverLiveF
                          ForeverLive @Matt_SF
                          last edited by

                          @Matt_SF Thank you alot! Can i use it in JSON of a slider or it should be in a custom callback?

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

                            @ForeverLive It goes in a callback.

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

                            1 Reply Last reply Reply Quote 1
                            • ForeverLiveF
                              ForeverLive @ForeverLive
                              last edited by

                              @ForeverLive for some reason it's controlling gain instead of Frequency.

                              d.healeyD ForeverLiveF 2 Replies Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @ForeverLive
                                last edited by

                                @ForeverLive Show your code

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

                                1 Reply Last reply Reply Quote 0
                                • ForeverLiveF
                                  ForeverLive @ForeverLive
                                  last edited by

                                  const CurveEq = Synth.getEffect("EQ_slot_CurveEq");
                                  
                                  inline function onEQHiKnobControl(component, value)
                                  {
                                  	CurveEq. setAttribute(CurveEq. Freq0 * CurveEq. BandOffset, value);
                                  };
                                  
                                  Content.getComponent("EQHiKnob").setControlCallback(onEQHiKnobControl);
                                  
                                  d.healeyD Matt_SFM 2 Replies Last reply Reply Quote 0
                                  • d.healeyD
                                    d.healey @ForeverLive
                                    last edited by d.healey

                                    @ForeverLive Ok, the problem here is you have copied Matt's typos.

                                    When you call a function on an object (or access one of its properties) using a . you mustn't leave a space between the object name and the .

                                    Also the property name is Freq not Freq0 (use the auto-complete popup to help you). You need to add the band number as Matt showed.

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

                                    ForeverLiveF 1 Reply Last reply Reply Quote 1
                                    • Matt_SFM
                                      Matt_SF @ForeverLive
                                      last edited by

                                      @ForeverLive yep sorry about that 🙏 it's the damn autocorrect from my cellphone, which forces me to put spaces after dots...

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

                                      1 Reply Last reply Reply Quote 2
                                      • ForeverLiveF
                                        ForeverLive @d.healey
                                        last edited by

                                        @d-healey My apologies but it says error when i trying to add Band identifier like in example. Found identifier when expecting ','

                                        Thank you for help!

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

                                          @ForeverLive Post code

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

                                          ForeverLiveF 1 Reply Last reply Reply Quote 1
                                          • ForeverLiveF
                                            ForeverLive @d.healey
                                            last edited by

                                            @d-healey sorry that was my mistake, i set const bandNum and then it's int inside of a function. Now it's working! Thank you alot!!! You are really the best.

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

                                            18

                                            Online

                                            1.8k

                                            Users

                                            12.0k

                                            Topics

                                            104.0k

                                            Posts