HISE Logo Forum
    • Categories
    • Register
    • Login

    LAF: get a value of a knob by its id

    Scheduled Pinned Locked Moved Scripting
    7 Posts 2 Posters 340 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!

      In a custom LAF how can I get a value of a knob by its id?

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

        @darkInteger Do you want to get the value of the knob that the laf function is assigned to, or of a different control?

        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 Basically I have like 10 knobs LAF assigned and I want to draw lines between its values for UI purposes.

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

            @darkInteger Could you post a snippet?

            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 well, the code is a mess :S I am just started learning.
              But I know I can use obj.value to get the value but I don't know how to specify it with its id... what is the syntax?

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

                @darkInteger said in LAF: get a value of a knob by its id:

                I don't know how to specify it with its id... what is the syntax?

                If you have the value already, why do you need to get it by the ID? Generally you want look and feel functions to be self contained without relying on external data.

                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!!!

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

                  45

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.1k

                  Posts