HISE Logo Forum
    • Categories
    • Register
    • Login

    single slider for multiple parameters with no macro's?

    Scheduled Pinned Locked Moved General Questions
    5 Posts 3 Posters 372 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.
    • P
      pushkin
      last edited by

      Hi,

      I'm trying to make a single slider control the intensity of 2 different envelopes.
      If I assign a single slider to the processor id of one of the evelopes and select intensity as the parameter id, everything works perfectly for that envelope. How do I make that slider control the intensity of a second envelope as well? I thought about doing it with macro's but it's impossible to select 'intensity' on a maro? I hope I make some sense since English isn't my native language.

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

        @pushkin I just put a video about this on YouTube a few days ago. Basically you need to use a control callback and the setAttribute command

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

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

          @pushkin said in single slider for multiple parameters with no macro's?:

          Hi,

          I'm trying to make a single slider control the intensity of 2 different envelopes.
          If I assign a single slider to the processor id of one of the evelopes and select intensity as the parameter id, everything works perfectly for that envelope. How do I make that slider control the intensity of a second envelope as well? I thought about doing it with macro's but it's impossible to select 'intensity' on a maro? I hope I make some sense since English isn't my native language.

          script it... write a callback for your slider, and in the callback set both envelopes...

          const var SimpleEnvelope1 = Synth.getModulator("Simple Envelope1");
          const var SimpleEnvelope2 = Synth.getModulator("Simple Envelope2");
          
          
          
          inline function onEnvSetterControl(component, value)
          {
          	SimpleEnvelope1.setIntensity(value);
          	SimpleEnvelope2.setIntensity(value);
          };
          Content.getComponent("EnvIntensity").setControlCallback(onEnvSetterControl);
          
          

          HISE Development for hire.
          www.channelrobot.com

          P 1 Reply Last reply Reply Quote 1
          • P
            pushkin
            last edited by

            Thanks for the fast replies! I'll take a look at that when I get home.

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

              @Lindon Thank you! That worked flawlessly.

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

              22

              Online

              1.7k

              Users

              11.8k

              Topics

              102.4k

              Posts