HISE Logo Forum
    • Categories
    • Register
    • Login

    getValueNormalized()

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 360 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.healeyD
      d.healey
      last edited by

      This function seems to do the same as getValue() I've only tried it on a panel so far with a range of -100 to 100.

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

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        It works for Knobs:

        const var Knob1 = Content.getComponent("Knob1");
        
        Knob1.setRange(-12, 1, 0.1);
        Knob1.set("saveInPreset", false);
        Knob1.setValue(-2.0);
        
        Console.print("Range: " + Knob1.getValue()); // -2
        Console.print("Normalized: " + Knob1.getValueNormalized()); // 0.33
        

        Haven't checked the other controls :)

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

        47

        Online

        1.7k

        Users

        11.7k

        Topics

        101.9k

        Posts