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.
    • 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

                                30

                                Online

                                1.8k

                                Users

                                12.0k

                                Topics

                                104.6k

                                Posts