HISE Logo Forum
    • Categories
    • Register
    • Login

    range

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 262 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
      darkInteger
      last edited by

      Hi guys!

      I am trying to make a custom LAF on a knob.
      It is going to be a slider, I have a horizontal line and a short vertical line on the horizontal one which is the slider itself.
      I want to use the obj.value to drive the vertical line but I just couldn't figure out how to convert it to the horizontal line's range.
      For example: the knob's range 10-700 Hz --> 128 pixel wide

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

        @darkInteger Use the normalised value instead

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

        D 1 Reply Last reply Reply Quote 0
        • D
          darkInteger @d.healey
          last edited by

          @d-healey THX!!!
          Any hint how?
          Should I use Math.to0To1?

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

            @darkInteger The laf object provides the value. Use Console.print(trace(obj)); and all will be revealed.

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

            D 1 Reply Last reply Reply Quote 0
            • D
              darkInteger @d.healey
              last edited by

              @d-healey THX for the help, got it working!!!

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

              40

              Online

              1.7k

              Users

              11.7k

              Topics

              102.1k

              Posts