HISE Logo Forum
    • Categories
    • Register
    • Login

    snex functionality frexp()?

    Scheduled Pinned Locked Moved Scripting
    3 Posts 2 Posters 278 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.
    • giftliftG
      giftlift
      last edited by

      Anyone know of a way to add/clone the frexpf function for snex?
      (Which is a single-precision version of frexp)
      I tried to translate this script http://locutus.io/c/math/frexp/
      But it seems there is no Math.log2 or Math.LOG2E.
      Is there a way to add this function (frexp) to snex?

      ustkU 1 Reply Last reply Reply Quote 0
      • ustkU
        ustk @giftlift
        last edited by

        @giftlift no but there's a simple Math.log
        so you can deduce the log2 this way:

        log2(y) = log(y) / log(2)

        Can't help pressing F5 in the forum...

        giftliftG 1 Reply Last reply Reply Quote 1
        • giftliftG
          giftlift @ustk
          last edited by

          @ustk thanks! I'll try that

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

          51

          Online

          1.7k

          Users

          11.7k

          Topics

          101.8k

          Posts