HISE Logo Forum
    • Categories
    • Register
    • Login

    getCurrentLevel can return results out of range.

    Scheduled Pinned Locked Moved Bug Reports
    4 Posts 3 Posters 334 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.
    • LightandSoundL
      LightandSound
      last edited by LightandSound

      It appears to be possible to get results from getCurrentLevel() > 1. My understanding from the documentation is that the range should be 0-1.

      This is in HISE 2.1, a simpleGain fx on a long container and a release container, pointing only to the left channel.

      peaks.PNG

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

        @LightandSound it's in scientific notation
        7.9250967e-08 => 0.000000079250967 (if I read well -08)

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

        LightandSoundL 1 Reply Last reply Reply Quote 1
        • LightandSoundL
          LightandSound @ustk
          last edited by

          @ustk and that is why I shouldn't post past midnight! Even highlighted the negative myself lol

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

            If the volume is above 0dB, it will result in values over 1.0. The statement

            the range is between 0 and 1

            means that the domain is normalised and not measured in dB or anything else.

            But yes, that scientific notation is annoying. In audio DSP if you have something this low you expect it to be zero in most cases, but I didn't write the number to string converters myself.

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

            49

            Online

            1.7k

            Users

            11.7k

            Topics

            101.8k

            Posts