HISE Logo Forum
    • Categories
    • Register
    • Login

    Input level ?

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 151 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.
    • lalalandsynthL
      lalalandsynth
      last edited by lalalandsynth

      What is the correct way to set up an input level to an fx plugin ?
      My current setup is a "Normalized percentage" Slider controlling a gain module using this code.

      const var inputGain = Synth.getEffect("InputGain");
      
      var inputLabel = createLabel("INPUT", "%", 77, 356 + 15, 83, 22);
      
      inline function onInputKnbControl(component, value)
      {
      	local wValue = Engine.getDecibelsForGainFactor(value);
      	inputGain.setAttribute(inputGain.Gain, wValue);
      
          displayValue(inputLabel, Math.round(value*1000)/10);
      };
      
      Content.getComponent("sliderInput").setControlCallback(onInputKnbControl);
      

      But the behaviour is "strange" bringing the slider down to 1% is -40dB and then it jumps from there to -100 from the 1% to the 0% , I am aware of the logarithmic nature of decibels but wondering if this is correct behaviour?

      gain.gif

      As opposed to the convolution reverb in reaper.

      gain2.gif

      https://lalalandaudio.com/

      https://lalalandsynth.com/

      https://www.facebook.com/lalalandsynth

      https://www.facebook.com/lalalandsynth

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @lalalandsynth
        last edited by

        @lalalandsynth why use normalized percentage and not the decibel slider range?

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        lalalandsynthL 2 Replies Last reply Reply Quote 0
        • lalalandsynthL
          lalalandsynth @DanH
          last edited by

          @DanH Not sure, old project and found a post that recommended that, might have been some changes since then.

          Link Preview Image
          Decibel to Linear value to make Dry/Wet Slider...

          Use Engine.getDecibelsForGainFactor() and its brother Engine.getGainFactorForDecibels() for the conversion between db values and 0...1. No need to reinvent t...

          favicon

          Forum (forum.hise.audio)

          https://lalalandaudio.com/

          https://lalalandsynth.com/

          https://www.facebook.com/lalalandsynth

          https://www.facebook.com/lalalandsynth

          1 Reply Last reply Reply Quote 0
          • lalalandsynthL
            lalalandsynth @DanH
            last edited by

            @DanH With that setting I now jump from -70 to -100 at the bottom range of the slider.

            https://lalalandaudio.com/

            https://lalalandsynth.com/

            https://www.facebook.com/lalalandsynth

            https://www.facebook.com/lalalandsynth

            VorosMusicV 1 Reply Last reply Reply Quote 0
            • VorosMusicV
              VorosMusic @lalalandsynth
              last edited by

              @lalalandsynth I suppose you could try lowering the middlePosition of the slider in its Properties.

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

              38

              Online

              1.7k

              Users

              11.7k

              Topics

              102.2k

              Posts