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

      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

                        56

                        Online

                        1.7k

                        Users

                        11.7k

                        Topics

                        101.8k

                        Posts