HISE Logo Forum
    • Categories
    • Register
    • Login

    SliderPackLAF

    Scheduled Pinned Locked Moved General Questions
    26 Posts 5 Posters 244 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.
    • d.healeyD
      d.healey @DanH
      last edited by

      @DanH Why not set both sliderpacks to use a range of 0 - 1 and then multiply the value for display purposes in your LAF function?

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

      DanHD 1 Reply Last reply Reply Quote 0
      • DanHD
        DanH @d.healey
        last edited by

        @d-healey because I'm using CSS, which can't multiply a value.

        DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
        https://dhplugins.com/ | https://dcbreaks.com/
        London, UK

        d.healeyD 1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey @DanH
          last edited by d.healey

          @DanH Ah i see,

          So the slider value you want is:

          local v = component.getSliderValueAt(value) / 100;

          Then you can set the other sliderpack with:

          myOtherSliderPack.setSliderAtIndex(value, v);

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

          DanHD 2 Replies Last reply Reply Quote 0
          • DanHD
            DanH @d.healey
            last edited by

            @d-healey yes, that's what I expected to work, but the value received is still 0-100. Let me make a minimal snippet

            DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
            https://dhplugins.com/ | https://dcbreaks.com/
            London, UK

            1 Reply Last reply Reply Quote 0
            • DanHD
              DanH @d.healey
              last edited by DanH

              @d-healey right, don't worry, finally got the right combo 😆 thanks!

              DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
              https://dhplugins.com/ | https://dcbreaks.com/
              London, UK

              1 Reply Last reply Reply Quote 1
              • Oli UllmannO
                Oli Ullmann @DanH
                last edited by

                @DanH
                cool! Thank you! 😊

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

                15

                Online

                1.7k

                Users

                11.8k

                Topics

                102.6k

                Posts