HISE Logo Forum
    • Categories
    • Register
    • Login

    Math.from0To1 - correct syntax?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 100 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
      aaronventure
      last edited by

      Can I get an example for this? The docs say:

      Converts a normalised value (between 0 and 1) to a range defined by the JSON data in rangeObj.

      What does rangeObj look like?

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

        I made a lucky guess

        Console.print(Math.from0To1(0.5, {"min": 0, "max":100}));

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

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

        57

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts