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 3.8k 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.
    • David HealeyD
      David Healey @ForeverLive
      last edited by

      @ForeverLive Show your code

      Free HISE Bootcamp Full Course for beginners.
      YouTube Channel - Public HISE tutorials
      My Patreon - 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);
        
        David HealeyD Matt_SFM 2 Replies Last reply Reply Quote 0
        • David HealeyD
          David Healey @ForeverLive
          last edited by David 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.

          Free HISE Bootcamp Full Course for beginners.
          YouTube Channel - Public HISE tutorials
          My Patreon - 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 @David 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!

              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @ForeverLive
                last edited by

                @ForeverLive Post code

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

                ForeverLiveF 1 Reply Last reply Reply Quote 1
                • ForeverLiveF
                  ForeverLive @David 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!

                    David HealeyD 1 Reply Last reply Reply Quote 0
                    • David HealeyD
                      David Healey @ForeverLive
                      last edited by

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

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

                      ForeverLiveF 2 Replies Last reply Reply Quote 1
                      • ForeverLiveF
                        ForeverLive @David Healey
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • ForeverLiveF
                          ForeverLive @David Healey
                          last edited by

                          @d-healey Thank you. God bless!

                          1 Reply Last reply Reply Quote 0
                          • David HealeyD David Healey referenced this topic on
                          • First post
                            Last post

                          48

                          Online

                          2.1k

                          Users

                          13.0k

                          Topics

                          112.8k

                          Posts