HISE Logo Forum
    • Categories
    • Register
    • Login

    Defined step points in a stepped knob

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 269 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.
    • ?
      A Former User
      last edited by

      Is it possible to make a stepped knob that has defined points like this:

      12000
      16000
      18000

      So total steps are 3 but the step points are like above.

      I think the current stepped knob has 1, 2, 3..etc. setup. only

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        d.healey @A Former User
        last edited by d.healey

        @Steve-Mohican Yes. Make a knob with the values 0-2 and step size of 1. Make an array with 3 elements with values 12000, 16000, and 18000. In the knobs callback use its value as the array index.

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

        Y 1 Reply Last reply Reply Quote 0
        • Y
          yall @d.healey
          last edited by

          @d-healey

          If (value == 1)
          {
          ...... xxx.setAttribute(xxx.xxxxx, 2899);
          }
          If (value == 2)
          {
          }
          If (value == 3)
          {
          }
          If (value == 4)
          {
          }
          Does i t work that way with knob?

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

            @yall :anxious_face_with_sweat:

            const knobValues = [12000, 16000, 18000];
            
            inline function onKnob1Control(component, value)
            {
                local newValue = knobValues[value];
                x.setAttribute(attribute, newValue);	
            };
            
            Content.getComponent("Knob1").setControlCallback(onKnob1Control);
            

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

            1 Reply Last reply Reply Quote 0
            • ?
              A Former User
              last edited by A Former User

              @d-healey @yall
              Yes I already know that.

              But what I actually mean is the knob values will be still like 1, 2, 3. Not the defined values :)

              So in the value pop up text window or in the daw automation the user will see 1, 2, 3

              d.healeyD 1 Reply Last reply Reply Quote 0
              • d.healeyD
                d.healey @A Former User
                last edited by

                @Steve-Mohican You need to use custom graphics or LAF for that.

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

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

                58

                Online

                1.7k

                Users

                11.7k

                Topics

                102.1k

                Posts