Forum

    • Register
    • Login
    • Search
    • Categories

    Connect Knob to Master Chain correctly

    General Questions
    3
    5
    45
    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.
    • S
      Sawer last edited by

      I forgot how to link knob to master chain correctly without having any values offset. Can someone kindly remind me how? I've tried with ```

      Engine.getGainFactorForDecibels(double decibels)
      

      and

      Engine.getDecibelsForGainFactor(double gainFactor)
      

      Without any result. Any help is very appreciated.

      d.healey DabDab 3 Replies Last reply Reply Quote 0
      • d.healey
        d.healey @Sawer last edited by

        @nesta99 said in Connect Knob to Master Chain correctly:

        I've tried with

        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
        • DabDab
          DabDab @Sawer last edited by

          @nesta99 You will need to set Knob mode to Decibel.

          Trance Producer and Presets Designer.

          1 Reply Last reply Reply Quote 0
          • DabDab
            DabDab @Sawer last edited by DabDab

            @nesta99 Here is a example

            Content.makeFrontInterface(500, 400);
            const var SineWaveGenerator1 = Synth.getChildSynth("Sine Wave Generator1");
            const var Vol = Content.getComponent("Vol");
            
            
            inline function onVolControl(component, value)
            {
            	SineWaveGenerator1.setAttribute(SineWaveGenerator1.Gain,Engine.getGainFactorForDecibels(value));
            };
            
            Content.getComponent("Vol").setControlCallback(onVolControl);
            

            Don't forget to change Content specific property Mode to Decibel.

            Trance Producer and Presets Designer.

            S 1 Reply Last reply Reply Quote 0
            • S
              Sawer @DabDab last edited by

              @dabdab Thanks. I've missed the "value" part. Thanks again.

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

              28
              Online

              792
              Users

              5.5k
              Topics

              51.6k
              Posts