HISE Logo Forum
    • Categories
    • Register
    • Login

    Matching Gain Before And After Effects

    Scheduled Pinned Locked Moved Scripting
    68 Posts 10 Posters 4.0k 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.
    • d.healeyD
      d.healey @orange
      last edited by

      @orange Read Aarron's post from a few hours ago in this thread :face_with_tongue:

      That normalization thing doesn't appear to be the same as makeup gain

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

      1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @orange
        last edited by

        @orange You're right, the approach depends on the FX itself, and on the result you want to achieve too (transparent, or as part of the effect)...

        Christoph's example seems to act like a compressor, this proves the gain fluctuation issue one might have

        So, should the gain compensation act as a compressor (or expander) with noticeable fluctuations, or transparently with non-input-level-dependency (apart from parameter indexation) should be the question one wants to ask first.

        Can't help pressing F5 in the forum...

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

          @ustk Maybe I'm too simple but my thought is if a human can look at the input volume level before, and adjust a gain knob so the output level is the same as the input, why can't this be done automatically?

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

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk
            last edited by

            the example of input dependency giving nasty fluctuations, might be:

            • An input containing all frequencies
            • A LPF in the effect, let say set to 1KHz

            -> The difference between input an output will vary for high frequencies, leading to effect pumping while the output frequency content doesn't change (because those high freq are not passing through)

            in short, the gain of the effect will fluctuate because of the input, while the effect itself doesn't sound different.

            Can't help pressing F5 in the forum...

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

              @ustk If the attack/release is slow enough it should smooth out the pumping?

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

              ustkU 1 Reply Last reply Reply Quote 0
              • ustkU
                ustk @d.healey
                last edited by

                @d-healey Saying this is just another way for what I am saying too.
                A user compensating manually IS a fixed compensation (the user is not moving the knob permanently while the signal changes). So this is the "automatic" case covered by parameter compensation. (so automatic, but fixed because not input dependent, only parameter dependent)

                Compensation by IN/OUT comparison will necessarily introduce comp/expand like behaviour, more or less noticeable depending on the integration time (Smooth parameter in Chris's example, or att/rel of an enveloppe follower, or any integration value that a comparison requires if you don't want a sample to sample accuracy (which would be even nastier anyway)

                Can't help pressing F5 in the forum...

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

                  @ustk said in Matching Gain Before And After Effects:

                  (the user is not moving the knob permanently while the signal changes

                  Sure they are, the knob is automatable for exactly this purpose. If the input goes up during playback they can bring down the output, and vice versa.

                  So maybe what I need is a threshold for the amount of variation to compensate for?

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

                  orangeO ustkU 2 Replies Last reply Reply Quote 0
                  • ustkU
                    ustk @d.healey
                    last edited by

                    @d-healey said in Matching Gain Before And After Effects:

                    @ustk If the attack/release is slow enough it should smooth out the pumping?

                    Exactly you are right, reducing is not removing though, so if this is not an issue then you can go this way.
                    The issue is that if you reduce the integration time, it won't react fast enough and let the difference "pass-through" without being taken into account. You see, in the end you'll have a compressor/expander setting questioning. Fast enough to react or slow enough to be transparent?

                    Can't help pressing F5 in the forum...

                    1 Reply Last reply Reply Quote 0
                    • orangeO
                      orange @d.healey
                      last edited by orange

                      @d-healey

                      So maybe what I need is a threshold for the amount of variation to compensate for?

                      You are now describing limiter/compressor/expander 😊

                      develop Branch / XCode 13.1
                      macOS Monterey / M1 Max

                      d.healeyD 1 Reply Last reply Reply Quote 1
                      • ustkU
                        ustk @d.healey
                        last edited by

                        @d-healey said in Matching Gain Before And After Effects:

                        Sure they are, the knob is automatable for exactly this purpose. If the input goes up during playback they can bring down the output, and vice versa.

                        In this case effectively you fall in the slow integration case and you might go down the input/output compensation. After all, the ancestor of a compressor was a fader adjusted manually...

                        Can't help pressing F5 in the forum...

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

                          @orange Some compressors have auto makeup gain, how does that work because that's what I want :)

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

                          ustkU Dan KorneffD 2 Replies Last reply Reply Quote 0
                          • ustkU
                            ustk @d.healey
                            last edited by ustk

                            @d-healey To me, auto make up is a fixed compensation based on the different settings you adjusted, not an IN/OUT comparison (but I might have wrong here, or at least for some references)

                            in this case, Auto make-up is not assimilable to gain line automation (the fluctuating signal has no impact on the auto gain that is set. On many compressors, make-up gain is simply a gain control, auto-make-up is a gain control compensated when you dial the comp parameters

                            @orange exactly, Dave eventually described a comp/expander.

                            Can't help pressing F5 in the forum...

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

                              @ustk

                              Dave eventually described a comp/expander.

                              Not quite, I didn't mean a fixed input gain threshold, I meant a threshold of gain difference between the input and the output. So if the difference between the two is more than X turn the gain knob to compensate.

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

                              ustkU 1 Reply Last reply Reply Quote 0
                              • ustkU
                                ustk @d.healey
                                last edited by

                                @d-healey I see... Are you not afraid a threshold can lead in some nasty fluctuations?

                                I'll try to make scriptnode example that should work...

                                Can't help pressing F5 in the forum...

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

                                  @ustk

                                  Are you not afraid a threshold can lead in some nasty fluctuations?

                                  I don't know what I'm doing or talking about so I have no fear 🐶

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

                                  ustkU 1 Reply Last reply Reply Quote 1
                                  • ustkU
                                    ustk @d.healey
                                    last edited by

                                    @d-healey "FearlessDave" :beaming_face_with_smiling_eyes:

                                    Can't help pressing F5 in the forum...

                                    1 Reply Last reply Reply Quote 0
                                    • Dan KorneffD
                                      Dan Korneff @d.healey
                                      last edited by Dan Korneff

                                      @d-healey said in Matching Gain Before And After Effects:

                                      Some compressors have auto makeup gain, how does that work because that's what I want

                                      I had to calculate a formula for a makeup curve depending on the settings of the compressor controls. It looks like this:

                                      Math.log(((-Threshold.getValue() * 10) * Ratio.getValue() +1) + (((200 - Attack.getValue())+1)/100));
                                      

                                      Results may vary :beaming_face_with_smiling_eyes:

                                      Dan Korneff - Producer / Mixer / Audio Nerd

                                      d.healeyD ustkU 2 Replies Last reply Reply Quote 1
                                      • d.healeyD
                                        d.healey @Dan Korneff
                                        last edited by

                                        @Dan-Korneff Thank you! Looks like I don't want that after all, but still useful to know.

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

                                        ustkU 3 Replies Last reply Reply Quote 0
                                        • ustkU
                                          ustk @Dan Korneff
                                          last edited by

                                          @Dan-Korneff said in Matching Gain Before And After Effects:

                                          Results may vary

                                          Thought we didn't want gain fluctuations... 🤔 🤣

                                          Can't help pressing F5 in the forum...

                                          Dan KorneffD 1 Reply Last reply Reply Quote 1
                                          • Dan KorneffD
                                            Dan Korneff @ustk
                                            last edited by Dan Korneff

                                            @ustk "Results may vary" means the calculation isn't perfect. It's a constant level, but doesn't work great for light compression or extreme compression since peak Gain Reduction isn't factored in. Every other setting seems to balance out nicely.

                                            Dan Korneff - Producer / Mixer / Audio Nerd

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

                                            13

                                            Online

                                            1.8k

                                            Users

                                            11.9k

                                            Topics

                                            103.9k

                                            Posts