Forum

    • Register
    • Login
    • Search
    • Categories

    Detecting no note / silence

    General Questions
    2
    3
    29
    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.
    • DanH
      DanH last edited by

      I'm trying to figure out a way to detect when a note has stopped playing audio (not like a note off message). Is it possible to detect when an envelope has reached it's end? Or when the audio level drops beneath a certain level?

      I've been trying with a timer and getCurrentlevel(false); but when I print the value it's kind of all over the place

      silence = MASTERVOLUME.getCurrentLevel(false);
      Console.print(silence);
      
      d.healey 1 Reply Last reply Reply Quote 0
      • d.healey
        d.healey @DanH last edited by d.healey

        @DanH Perhaps if (!Engine.getNumVoices())

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

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

          @d-healey ah yes, good idea. This rings a bell too, I think we've been here before 😆

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

          8
          Online

          740
          Users

          5.4k
          Topics

          50.4k
          Posts