HISE Logo Forum
    • Categories
    • Register
    • Login

    Stepped Frequency Knob

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 205 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 Frequency knob that has points that we defined?
      For example:

      A stepped Frequency knob that has 500Hz, 1552 Hz, 2900Hz, 5850Hz, 11500Hz points.

      I think using LAF fakes the display value but not the actual value itself. Any ideas?

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @A Former User
        last edited by

        @harris-rosendahl

        simple, create a slider with a range 0 to 5.....:

        const fixedFreq = [500,1552,2900,5850,11500];
        
        inline function onMyFreqSetterControl(component, value)
        {
              myFilter.setAttribute(myFilter.Frequency, fixedFreq[value]);
        };
        Content.getComponent("MyFreqSetter").setControlCallback(onMyFreqSetterControl);
        
        
        

        HISE Development for hire.
        www.channelrobot.com

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

          @Lindon Thanks for the advice, yes this is simple.

          But with this way, the real values of the knob are 1, 2, 3, 4, 5. and on the automation settings it will be shown like this.

          I mean how can we show the values with the actual numbers like: 500, 1552, 2900, 5850, 11500 on the automation too?

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @A Former User
            last edited by

            @harris-rosendahl -for that you will have to build your own pop up...

            HISE Development for hire.
            www.channelrobot.com

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

            22

            Online

            1.8k

            Users

            12.0k

            Topics

            104.0k

            Posts