Forum

    • Register
    • Login
    • Search
    • Categories

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

    General Questions
    3
    5
    114
    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.
    • SteveRiggs
      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/

      toxonic 1 Reply Last reply Reply Quote 0
      • toxonic
        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!?

        SteveRiggs 1 Reply Last reply Reply Quote 0
        • SteveRiggs
          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/

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

            @SteveRiggs you dont set intensity with that command,

            try:

            LFO1.setIntensity(value);

            HISE Development for hire.
            www.channelrobot.com

            SteveRiggs 1 Reply Last reply Reply Quote 4
            • SteveRiggs
              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

              9
              Online

              986
              Users

              6.6k
              Topics

              60.8k
              Posts