HISE Logo Forum
    • Categories
    • Register
    • Login

    Get Sample Rate in Hz from Effect

    Scheduled Pinned Locked Moved Scripting
    effectdegradesample ratescript
    2 Posts 1 Posters 303 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.
    • oskarshO
      oskarsh
      last edited by

      Hello, I am trying to read out the Sample Rate from the Degrade Effect using a Script so that I can display it elsewhere.
      ac405d71-98f8-4be0-8d4d-ab7d308e07cf-image.png

      When running Effect.getAttribute(2) (index 2 maps to Rate from the Degrade module) it returns the value the knob is currently set to in my case a value between 0.0 and 1.0. Is there a way to read out the Sample Rate from an Effect Module

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • oskarshO
        oskarsh
        last edited by

        It seems like this is a bug for these components.

        The Sample Rate is taking a numeric value between 0.5 and 0.65 for it to function properly. 0.5 is the minimum = 44100Hz. You cannot use the frequency mode on the sliders for this. Same for the PostFilter while this one takes values between 0 and 1.0, using a Frequency Slider results in a Crash of Hise.

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

        27

        Online

        1.7k

        Users

        11.8k

        Topics

        102.7k

        Posts