Forum
    • Categories
    • Register
    • Login

    Filter gain modulation not working correctly

    Scheduled Pinned Locked Moved Bug Reports
    14 Posts 4 Posters 725 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
      last edited by

      In this example I have a waveform gen with a peak filter applied. I've set the filter's gain to +6dB and added a velocity modulator. The modulator's curve is set so that the range of the gain is -6dB to 0dB.

      However it doesn't produce the correct values, it seems to be just going between 0dB and +6dB even though the modulator is showing the correct numbers.

      HiseSnippet 1167.3oc0X0saaaCEVJwLH1cqnsnas6NcwFP5VPgksm6B1Ew4O2Fr5Dm3zzcWAC0QwDghTShxqFC6kZ2ra2iPA1KvdD1avFoncjTigiiaR2htPPmCOGxOd9iGptQBBDGKhrrqbzvPvx9SP8Fxk82pOlxs1caK66h5fikPjig0lCCwwwfmks8hOWyvtbIqzm+d8MwLLm.YrrrNVPIvKoATYF2ts9AJi0F6AGQCxIciV6RD7sDLQhBOKhpZEhImgOE1CqEaAj0Kvw8sr+ZDlT2sZ0FM8peBFehWs0Z3C0a1rgac+0p1.uFtY00ZVsgqk8R63QkhndRrDhUS5lBug85K9YtYANlFSOgAZBWqdpU1v1Zq9TlW2wFmXKKaT2LS0hFS0CQcndzy4mYxtW5.NYZj2nYuvzfj6U.R14fTICjtOpGIhFJyFQim6f1kq7f9XkuIOTLxZY+GnsDJA3xmFfOCZGoHNWgUZVs5pNpWO468S3DIUvcD78DRXe9JOoxuTobkeshy6Oju+DGSuLQBFChl3v5vgnoo3J7jfSfnUcFfYIv4Bp19EsoKMa1ThYWmSPAeWNUteHLhtsf4osU5uunGvZjYS80q1carDqcJi3ojKDhjTMbr2FFnRCLtnxnsg3yjhPUhvE7epHGgWBCKKFNoSzFMfxdTvGpcT7XpbX9DwqPLV0oFiMqP79ntTIo+jw3BS.iJK0MAFGkY9onc78AhLCfkPs+w4MMb1W9GYV96fdMd.jVGMcw+rTZeQTfyyANDosctSoR56l0Jogybkz8IREDNJByiCEwfa9YtGDPORvg3BbeOMpMQMJvcaPlvKN0FVEjRaJZqLE4ja4ViYlSxG1pKlWXxTzEloNz2lQ9WquCGqbX8.0N2a+Xhxvnsy4SK5lvhgWS8j8cyqXF6Z4Y+BbjmxGRJDztXwnlRyVglh4u4jeBU0W5l5flRyVD9kTx6++0rJbtX4wXrGMHjA6vG.LUg4TL9.UkXebBSNlawbxNBtHrufSKDAbHHinmdJTHvZhanMjRU6K4CnODX.NNWd5W15kTNfiT1IXNsEW8dDln+5wHCbczERb9P7aeTCyl54NKNSm6bsi24+LnqEnLov+Gf5JXCMAysoLUqco.pLxPLsyhdbq1QvOk.bRlUL72acvHhV0q+mqWL78dsNHAyxr5N+1puaiMogBFN5CsSfKIZuzLF174ny2T2lh00dlaJ75NQ7do0TV1.3JniUUPI5k2zvyXRmy2HtWNbeULbDNEO4KsNP0FsVo7cUPnm.rhgcpNjFsloyQZ631eEpVimV7Yv9pW9ei9ymsUJ80W.3r5J+Bzn7AGcb3smPv6hN31CX0MG81aOv8QHUSq0bROOy4+9CzNTjHo7S6fUs6nZyFsWRPO0sIHfBwbNvTKDxdA8cfMzU0zl6Fv8RI9G0ynAc0z1iFzc7feTVi.LIR7Fh4+GnqdsbJG09lm9WkJi5nocbsR+mB4MrApdqeCgTbptfh0lWEqOuJ1XdU7amWEaNuJ9r4Uwu6xUTe0mMRjh.Sdh59fc2wT021bUvzTFq+EQmMHk
      

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

      dannytaurusD 1 Reply Last reply Reply Quote 0
      • dannytaurusD
        dannytaurus @David Healey
        last edited by

        @David-Healey Have you fixed it yet? ๐Ÿ˜‚

        Meat Beats: https://meatbeats.com
        Klippr Video: https://klippr.video

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

          @dannytaurus going back through the commits now to see where it appeared

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

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @David Healey
            last edited by

            @David-Healey try April last year.....

            HISE Development for hire.
            www.channelrobot.com

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

              @Lindon My thought too. I've tried builds all the way back to 2023 and the issue is still there, so maybe this is a bug that has always been and I just never noticed - although I thought I'd used filters like this in the past without issue...

              I'll see about implementing a fix.

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

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @David Healey
                last edited by

                @David-Healey afaik it was always like this it used the gain mode to modulate between zero position and the target value

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

                  @Christoph-Hart

                  The dB readout for the modulator shows the correct value (I've increased it to 18dB here to make it clear) but that value doesn't make it to the filter. Maybe that's why I thought it used to work because I was seeing the correct number.

                  Peek 2026-04-15 16-17.gif

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

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

                    Turned out to be a nice simple one, Claude fixed it.

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

                    Christoph HartC 1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart @David Healey
                      last edited by

                      @David-Healey yeah but doesnโ€˜t that just break existing projects?

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

                        @Christoph-Hart Might do... or fixes them :D

                        Preprocessor definition? Or another idea?

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

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

                          Another little weirdness I noticed with the filter. Once a voice ends the filter value jumps to its previous value, this causes artifacts (clicks/pops) with other voices that are still playing.

                          Peek 2026-04-16 18-06.gif

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

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

                            So after more poking around this issue with the filter values for voices overwriting each other also seemed to be present in the harmonic filter. It's very easy to recreate I don't know why it hasn't come up before, I think not many people are using voice start mods with poly filters or something.

                            I've updated the PR with the additional fix from Claude. In the process I also got it to fix a smoothing issue and a display issue.

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

                            Christoph HartC 1 Reply Last reply Reply Quote 1
                            • Christoph HartC
                              Christoph Hart @David Healey
                              last edited by

                              @David-Healey alright, I checked your pull request, but it still is not sitting right.

                              I think we need to completely change that to use the combined modulation mode with a zero position of 0.5 - that's the convention for all modulated parameters that have a default position in the middle.

                              Then you can set per modulator scale / unipolar / bipolar and everything should work correctly. It's a pain to check and AI won't help us there as it's too brittle to explain to the robot (yay), but once it's setup properly it should handle all cases.

                              The default would be the scale modulation mode which should behave exactly as the pre-pull request non-bipolar mode (with the exception that the filter display matches the audio rendering). If you then want a modulation to go from -6db to +6dB, you just leave the knob position at 0dB and add a bipolar modulator with +6dB intensity.

                              David HealeyD 1 Reply Last reply Reply Quote 1
                              • David HealeyD
                                David Healey @Christoph Hart
                                last edited by

                                @Christoph-Hart Sounds good to me

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

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

                                22

                                Online

                                2.3k

                                Users

                                13.7k

                                Topics

                                118.8k

                                Posts