HISE Logo Forum
    • Categories
    • Register
    • Login

    Start timer or function when Key is pressed

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 152 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.
    • T
      treynterrio
      last edited by

      Hi there, how could I start my timer (or function) when a key is pressed? Does anyone have an example?

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @treynterrio
        last edited by

        @treynterrio

        Synth.startTimer(double seconds)
        Timer.startTimer(int intervalInMilliSeconds)

        these in your onNote callback.

        HISE Development for hire.
        www.channelrobot.com

        T 1 Reply Last reply Reply Quote 1
        • T
          treynterrio @Lindon
          last edited by

          @Lindon and how could I start a function when a key is pressed?

          LindonL 1 Reply Last reply Reply Quote 0
          • LindonL
            Lindon @treynterrio
            last edited by

            @treynterrio your onNote callback fires every time a key is pressed..

            HISE Development for hire.
            www.channelrobot.com

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

            30

            Online

            1.7k

            Users

            11.8k

            Topics

            102.3k

            Posts