HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF - fillRect - modulating x value doesn't do anything

    Scheduled Pinned Locked Moved Scripting
    4 Posts 3 Posters 128 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.
    • DanHD
      DanH
      last edited by DanH

      Designing my horizontal LAF slider to reflect the modulation happening on it - modulating the Width with modValue works fine on the blue line, but nothing's happening to the x position below... If I put a[0]+10, for example, it moves along 10, but never moves to *modValue. Any ideas?

      Screenshot 2025-04-03 at 15.06.18.png

      		g.setColour(0XFF00F6FF);
      		g.fillRect([a[0], a[1]+19, a[2]*modValue, a[3]-19]); // blue line
      		g.setColour(Colours.white);
      		g.fillRect([a[0], a[1]+19, a[2]-68, a[3]-19]); // white dot
      

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

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

        @DanH Instead of a[0] * modValue you need a[2] * modValue and probably subtract some amount too.

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

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

          @DanH like Dave said,also a[0] is likely to be zero no? so a[0]* modvalue will still = zero...

          HISE Development for hire.
          www.channelrobot.com

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

            @d-healey @Lindon ah yeah, good point 😆

            Sorted now, thanks!

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

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

            30

            Online

            1.7k

            Users

            11.8k

            Topics

            102.6k

            Posts