HISE Logo Forum
    • Categories
    • Register
    • Login

    Lower Sample Volume while Volume goes up

    Scheduled Pinned Locked Moved Scripting
    28 Posts 3 Posters 856 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.
    • T
      treynterrio
      last edited by treynterrio

      Hi there, is it possible to lower my sampler volume with a Knob to -30dB while the Drive of the Polyshaper FX goes to +30dB?

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

        @treynterrio Yes

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

        T 1 Reply Last reply Reply Quote 0
        • T
          treynterrio @d.healey
          last edited by

          @d-healey how? Is this right? setRRGGroupVolume? I just need to know then how I could lower the volume of the Sampler.

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

            @treynterrio Add a simple gain module to your sampler and set the value of its Gain knob from within your knob's control callback. At the same time you set the Drive parameter of your polyshaper.

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

            d.healeyD T 2 Replies Last reply Reply Quote 0
            • d.healeyD
              d.healey @d.healey
              last edited by d.healey

              Ah looks like you can do it without scripting if you use modulators and tables. CC mods could do it - with Macros.

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

              1 Reply Last reply Reply Quote 0
              • T
                treynterrio @d.healey
                last edited by

                @d-healey I've already a Gain module but there is no gain. The only gain I see is from the sampler but I don't know how I could control this.

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

                  @treynterrio I'm referring to the gain knob of the Simple Gain effect

                  e3c63158-a5f8-475b-a2f4-6091e5dc5f35-image.png

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

                  T 2 Replies Last reply Reply Quote 0
                  • T
                    treynterrio @d.healey
                    last edited by

                    @d-healey aaaah ok got it I've not seen this I was looking for it there already

                    1 Reply Last reply Reply Quote 0
                    • T
                      treynterrio @d.healey
                      last edited by

                      @d-healey the gain now goes down -30 dB. how should I best adjust the knob which min and max? and what do I have to add to make the drive go up?

                      const var SimpleGain1 = Synth.getEffect("SimpleGain1");
                      const var PolyshapeFX = Synth.getEffect("PolyshapeFX");
                      
                      inline function onGainShapeControl(component, value)
                      
                      {
                      	SimpleGain1.setAttribute(SimpleGain1.Gain, value-30);
                      	PolyshapeFX.setAttribute(PolyshapeFX.Drive,value);
                      };
                      
                      Content.getComponent("GainShape").setControlCallback(onGainShapeControl);
                      
                      d.healeyD 1 Reply Last reply Reply Quote 0
                      • d.healeyD
                        d.healey @treynterrio
                        last edited by

                        @treynterrio

                        What is the range of your knob?

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

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          treynterrio @d.healey
                          last edited by treynterrio

                          @d-healey the gain 0 to -20 and the drive 0 to 30

                          I forget something that's what I have

                          SimpleGain1.setAttribute(SimpleGain1.Gain, -20 - value);
                          PolyshapeFX. setAttribute(PolyshapeFX.Drive, 30 - value);
                          
                          d.healeyD 1 Reply Last reply Reply Quote 0
                          • d.healeyD
                            d.healey @treynterrio
                            last edited by

                            @treynterrio said in Lower Sample Volume while Volume goes up:

                            the gain 0 to -20 and the drive 0 to 30

                            I thought you just have 1 knob to control both?

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

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              treynterrio @d.healey
                              last edited by

                              @d-healey I have only 1 knob but I don't know how to set the minimum value and max value of the knob so that gain goes from 0 to -20 and drive goes from 0 to +30

                              d.healeyD LindonL 2 Replies Last reply Reply Quote 0
                              • d.healeyD
                                d.healey @treynterrio
                                last edited by

                                @treynterrio What do you want the knob on your UI to display to the user?

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

                                T 1 Reply Last reply Reply Quote 0
                                • LindonL
                                  Lindon @treynterrio
                                  last edited by Lindon

                                  @treynterrio said in Lower Sample Volume while Volume goes up:

                                  @d-healey I have only 1 knob but I don't know how to set the minimum value and max value of the knob so that gain goes from 0 to -20 and drive goes from 0 to +30

                                  use this:

                                  ScriptSlider.getValueNormalized()

                                  and this:

                                  ScriptSlider.setValueNormalized(double normalizedValue)

                                  HISE Development for hire.
                                  www.channelrobot.com

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    treynterrio @Lindon
                                    last edited by

                                    @Lindon could you give me an example how I use this?

                                    LindonL 1 Reply Last reply Reply Quote 0
                                    • T
                                      treynterrio @d.healey
                                      last edited by

                                      @d-healey when the user turns the knob up the gain should go down from 0 to -20 and the drive goes up from 0 to +30

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

                                        @treynterrio I understand that, but what do you want the knob on your UI to display to the user? Is it 0-100%?

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

                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          treynterrio @d.healey
                                          last edited by treynterrio

                                          @d-healey yes when it's off it's 0 when it's on 100% (drive 30dB and the gain -20dB)

                                          at the moment the gain works from 0dB to -20dB like it should but the drive goes only from +10dB to 30dB and not back to 0dB

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

                                            @treynterrio

                                            myGainKnob.setValueNormalized(myDriveKnob.getValueNormalized());
                                            

                                            HISE Development for hire.
                                            www.channelrobot.com

                                            d.healeyD 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            46

                                            Online

                                            1.7k

                                            Users

                                            11.7k

                                            Topics

                                            101.8k

                                            Posts