HISE Logo Forum
    • Categories
    • Register
    • Login

    Controlling 2 LFO intensity amounts with 1 slider (missing values)

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 307 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.
    • SteveRiggsS
      SteveRiggs
      last edited by SteveRiggs

      Hi guys,

      I'm not sure where to add the values into the code to control these. I think I almost have it, just missing the values.

      Min should be 0 and max should be 1.

      Can anyone tell me where I need to add those in, please? I've tried a few ways but got it wrong.

      Thanks

      PS: I already have declarations for LFO1 and LFO2 further up in the code, that's why they aren't in this bit ;)

      const var LFOintensityAmount = Content.getComponent("LFOintensityAmount");
      
      inline function onLFOintensityAmountControl(component, value)
      {
          
         LFO1.setAttribute(LFO1.Intensity, value);
         LFO2.setAttribute(LFO2.Intensity, value);
          
      };
      
      Content.getComponent("LFOintensityAmount").setControlCallback(onLFOintensityAmountControl);
      

      www.anarchyaudioworx.com

      www.facebook.com/groups/audioworx/

      toxonicT 1 Reply Last reply Reply Quote 0
      • toxonicT
        toxonic @SteveRiggs
        last edited by

        @SteveRiggs
        i'm totally new to HISE so i'm certainly no help for you, but if LFOintensityAmount is a knob (or something like this), couldn't you just set the values in the interface property editor? i guess, i didn't get you!?

        SteveRiggsS 1 Reply Last reply Reply Quote 0
        • SteveRiggsS
          SteveRiggs @toxonic
          last edited by

          @toxonic I had it like that first when it was only controlling the 1 intensity amount, but I need it to control the intensity amount of 2 modules with the 1 knob now instead.

          I'd usually use the macro controls but unfortunately, the intensity amount won't link to macros as the normal sliders do, so it would need to be coded now in this case. It's just the values missing I think. I just can't work out where they need to go....

          www.anarchyaudioworx.com

          www.facebook.com/groups/audioworx/

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

            @SteveRiggs you dont set intensity with that command,

            try:

            LFO1.setIntensity(value);

            HISE Development for hire.
            www.channelrobot.com

            SteveRiggsS 1 Reply Last reply Reply Quote 4
            • SteveRiggsS
              SteveRiggs @Lindon
              last edited by

              @Lindon Spot on mate. Fixed. Thank you 😀

              www.anarchyaudioworx.com

              www.facebook.com/groups/audioworx/

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

              14

              Online

              1.7k

              Users

              11.9k

              Topics

              103.6k

              Posts