HISE Logo Forum
    • Categories
    • Register
    • Login

    Modify velocity power on the volume

    Scheduled Pinned Locked Moved General Questions
    assignpowervelocitymixadjustment
    15 Posts 4 Posters 2.8k 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.
    • Dark BoubouD
      Dark Boubou
      last edited by

      That's what I did but I can't assign the small bar here to a knob:

      0_1500895352861_upload-5bf913e7-97f9-460f-a15e-909a4832406a

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Yes this is because it's the "Intensity" of the modulator and not a parameter. This would be one of the cases where you have to go into Javascript and use the method setIntensity().

        1 Reply Last reply Reply Quote 0
        • Dominik MayerD
          Dominik Mayer
          last edited by

          Like this: in the onControl Callback of the interface script:

          function onControl(number, value)
          {
          	
          	switch(number)
          	{
          		case Knob:
          		{
          			VelocityModulator.setIntensity(value);
          			break;
          						
          		}
          	};
          }
          

          You of course have to have const var VelocityModulator = Synth.getModulator("Velocity Modulator"); in the onInit Callback

          Best,
          d

          1 Reply Last reply Reply Quote 2
          • Dark BoubouD
            Dark Boubou
            last edited by

            Wow it works so good! Thank you a lot Dominik!

            1 Reply Last reply Reply Quote 0
            • Dark BoubouD
              Dark Boubou
              last edited by Dark Boubou

              I'm trying the same for the impact of LFO on volume.
              My knob name is LFODepth.
              So I entered
              case LFODepth:
              {
              NAME.setIntensity(value);
              break;
              }

              In the LFO modulator I added a LFO Intensity Mod, then a constant.

              So what is the name of that mod?
              I entered
              {
              LFOIntensityMod.setIntensity(value);
              break;
              }

              But it writes me:

              Interface:! onControl: Line 19, column 23: Unknown function 'setIntensity'

              Ergh why?

              0_1500914285910_upload-2c10668c-c47a-4ff7-9f9e-fb653ee519ae

              In Oninit callback I have this written:

              const var LFODepth = Content.addKnob("LFODepth", 637, 84);
              // [JSON LFODepth]
              Content.setPropertiesFromJSON("LFODepth", {
              "width": 43,
              "height": 40,
              "filmstripImage": "{PROJECT_FOLDER}All k.png",
              "numStrips": "101"
              });
              // [/JSON LFODepth]

              I don't have a line as yours ' const var VelocityModulator = Synth.getModulator("Velocity Modulator"); '
              So I guess that is problem, but I don't know how to correct it, I don't have the name of the modulator...

              1 Reply Last reply Reply Quote 0
              • Dark BoubouD
                Dark Boubou
                last edited by Dark Boubou

                I found something simplier!
                Add a AHDSR on LFO Intensity Mod, with:
                A.0
                H.0
                D.0
                R.2000

                And Sustain linked with knob.

                When you turn sustain<40dB then we on't hear anymore LFO, the more it comes from 0 dB the more the LFO is powerful!

                This is much simplier :P

                1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart
                  last edited by

                  Why don't you just use setIntensity on the LFO Modulator directly? No need to add an Envelope...

                  1 Reply Last reply Reply Quote 0
                  • Dark BoubouD
                    Dark Boubou
                    last edited by

                    Ahem.... :D
                    How would you write its syntax here, just to know? Or in general case?

                    1 Reply Last reply Reply Quote 0
                    • Christoph HartC
                      Christoph Hart
                      last edited by Christoph Hart

                      // Somewhere in the onInit callback:
                      const var LFOModulator = Synth.getModulator("LFO Modulator"); // or whatever the name is
                      
                      // This line in your control callback:
                      LFOModulator.setIntensity(0.2);
                      
                      1 Reply Last reply Reply Quote 1
                      • Dark BoubouD
                        Dark Boubou
                        last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 0
                        • Dark BoubouD
                          Dark Boubou
                          last edited by

                          Where do we find the name of the modules, like here in red "LFO Modulator" ?
                          Is there a list with function names?

                          1 Reply Last reply Reply Quote 0
                          • Christoph HartC
                            Christoph Hart
                            last edited by

                            It's the name that is displayed in the header bar of each module. You can also right click on the header and choose "Create Script Variable Declaration", which creates this very line for you automatically.

                            1 Reply Last reply Reply Quote 1
                            • Dark BoubouD
                              Dark Boubou
                              last edited by

                              Thanks :)

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

                              48

                              Online

                              1.7k

                              Users

                              11.7k

                              Topics

                              101.8k

                              Posts