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.
    • 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
                                • ForeverLiveF
                                  ForeverLive
                                  last edited by

                                  One more small question if it's ok. Is there a way to make some bands on EQ has no ability to be deleted via Draggable Filter Panel? Like the ones that are connected to the knobs? So it's possible to add or delete bands but not the ones that are connected to the knobs? Thank you!

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

                                    @ForeverLive Not as far as I know (well you can if you edit the source code).

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

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

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • ForeverLiveF
                                        ForeverLive @d.healey
                                        last edited by

                                        @d-healey Thank you. God bless!

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

                                        21

                                        Online

                                        1.8k

                                        Users

                                        12.0k

                                        Topics

                                        104.1k

                                        Posts