HISE Logo Forum
    • Categories
    • Register
    • Login

    Add EQ Band programmatically

    Scheduled Pinned Locked Moved Solved Scripting
    9 Posts 4 Posters 202 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.
    • Oli UllmannO
      Oli Ullmann
      last edited by

      Happy New Year to all! :-)

      Is there a way to programmatically add a band to a ParametriqEQ?

      Thank you very much
      Oli

      Matt_SFM 1 Reply Last reply Reply Quote 0
      • Oli UllmannO Oli Ullmann marked this topic as a question on
      • Matt_SFM
        Matt_SF @Oli Ullmann
        last edited by

        @Oli-Ullmann unfortunately no...

        Happy new year to you too!

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

        Oli UllmannO 1 Reply Last reply Reply Quote 0
        • Oli UllmannO
          Oli Ullmann @Matt_SF
          last edited by

          @Matt_SF
          Thank you for your answer.
          Happy New Year to you too! 😊

          1 Reply Last reply Reply Quote 0
          • Oli UllmannO Oli Ullmann has marked this topic as solved on
          • A
            aaronventure
            last edited by

            you should be able to using .setAttribute

            the indexes of the attribute go in order for each band, and there's the band offset property.

            Here's my example, where I have the reference in the FX namespace

            FX.solidEQ.setAttribute(FX.solidEQ.Freq + FX.solidEQ.BandOffset * 1, value);
            

            Multiply the band offset with the band number, 0-based.

            the properties you have at disposal are Type, Freq, Q, Gain, BandOffset. BandOffset is 0-based.

            Keep going with as many bands as you wish. They'll be added automatically the moment you try to control them. I don't know how or whether you can delete them programatically.

            A 1 Reply Last reply Reply Quote 1
            • A
              aaronventure @aaronventure
              last edited by

              @aaronventure Alright, it's been a bit since I used this so I went digging a bit more There's also the Enabled property, but I was wrong, the bands don't get added automatically as you reference them.

              But you can add as many as you'd like to possibly use, disable them and only enable them when in use.

              Oli UllmannO 2 Replies Last reply Reply Quote 0
              • Oli UllmannO
                Oli Ullmann @aaronventure
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • Oli UllmannO
                  Oli Ullmann @aaronventure
                  last edited by

                  @aaronventure said in Add EQ Band programmatically:

                  @aaronventure Alright, it's been a bit since I used this so I went digging a bit more There's also the Enabled property, but I was wrong, the bands don't get added automatically as you reference them.

                  But you can add as many as you'd like to possibly use, disable them and only enable them when in use.

                  That's right. But then they cannot be generated dynamically by the user at runtime.

                  Thanks anyway! :-) I have now found a solution. I limit the possible number of EQ bands. Not the best solution but it works for my project.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    aaronventure @Oli Ullmann
                    last edited by

                    @Oli-Ullmann well, you can give them the impression that they can, but up to a certain limit. In any case, 32 biquads will add a decent amount of noise, and 32 SVF bands will boink the CPU a bit harder, so in both cases it's a bit of a push

                    1 Reply Last reply Reply Quote 0
                    • JulesVJ
                      JulesV
                      last edited by

                      @Christoph-Hart It's a good idea to limit the addition of filters with AllowFilterResizing.

                      But can you give an example of allowing adding up to a certain number of bands and then locking the adding?

                      Also, how can we monitor the number of active filter bands? There is no such thing in Broadcaster events.

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

                      19

                      Online

                      1.8k

                      Users

                      12.1k

                      Topics

                      104.9k

                      Posts