HISE Logo Forum
    • Categories
    • Register
    • Login

    Connect Knob to Master Chain correctly

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 236 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.
    • 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.healeyD DabDabD 3 Replies Last reply Reply Quote 0
      • d.healeyD
        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
        • DabDabD
          DabDab @Sawer
          last edited by

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

          Bollywood Music Producer and Trance Producer.

          1 Reply Last reply Reply Quote 0
          • DabDabD
            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.

            Bollywood Music Producer and Trance Producer.

            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

              21

              Online

              1.8k

              Users

              12.0k

              Topics

              104.1k

              Posts