HISE Logo Forum
    • Categories
    • Register
    • Login

    A Working MIDI Indicator for Everyone (That Doesn't Quite Work Yet)

    Scheduled Pinned Locked Moved Solved General Questions
    4 Posts 2 Posters 192 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.
    • clevername27C
      clevername27
      last edited by

      I'm writing a MIDI indicator for us. But like HISE's MIDI indicator, it doesn't quite work. :face_savoring_food: Can you figure out what's wrong? (The code is split between Init and onNoteon.)

      HiseSnippet 1003.3ocsVs0aaaCElxNpnRaEXEn8ch9xrKxbj6Z1FPv1RhuzYrbwn1qXuEPKQYwEIRAIpzXTzW1u38OX6bnjsk2TKJLV4K1GdtvO9wC+nllo7444pLhky7Uobh0WZOakTGMHhIjjICIVOvd9uLYF47Uor7bd.wxp8qPeVNGPLi+5mOmEyj97sSQHuQI74WHRD5syN8zeUDGOlEvmKRpE8KOchuRNPEqJ.bz11ijx7uksjeECCqkM.hQABsJallo44DqCNWErZVj5sxx3eiHWrHliF8IyfBUN8XUb.hXbVxfHQbvz062bBTkoa28sK28Ow9RQfXy7aYgux3ftMi57gUqcgW6cfW+5vyqF7Z.RV0fzAkP5w1y7yDo5sdP77E1SjZdVHCn85PoLVRq+rs8QOm5NORjS8UAbJ7adQZpBhipUzvXVdDkQufsfGiSHjABe.9zKmLbBk4qE2IzqnKVQ8iXxkB4RWcDmt.NYVloJjAPYwCLpJbSYTK9Ctutm6yOx08ninCx3XAwz7Yx6X48bGn.TK08RX2xGmAFa1Ecdgm2gz9ddcOwj7q3ZntoJAFfoFFfUASUFMFWRWnwIWSuikQu3ryGcwMXPS1DyORWufK45ApjTkDL57rFh8YUq6PdnPxgkNrPBjfRB+UGwzTcQlLG1sgMAFflx34bsF3IieCg704XEqQY.OuHFL64to5uFSaGjzoK8cMsa5ki6ACm2w6Pu68pFcO48m3rsfJ4UJM+ZYmttuy0AV+4.vaByPr.ra.zMbHC.+sQBMumqym.xFWM.J0wwfgAr3XyRXXoZbaHd5xnA7X1JrU5XOOZBzn3r9fyGx7LLpgXHcNF6RZhyNDJuH+ZSGXWfOduqK8eyIggkjB3rtOboxTww7rFcihUYerD6HKRVvyNDZCiK3aBDtAuqrf8GVVntpke4NuVfJ4DoPecJW9gzxHUzE7ueaxPllgZIUyAwkxyzBDBVC42ABykJKN1C442pUolXqtb.ZsZi2GUo6XZJHBPc4o1Mb1SteqP9vSWs03mNUyuGKmMFOYwx0B7NOX8iDj+qZGnypBJhwJWW7EewoxAP86n3gJHxbPqp9KR+uoH+oBwGaOUn8iZFisZ.ivAzmCLV8N1irGEFB2D1BvCrG+6eddzh7ZUAJgbISmIftA6qJRlAmz9bX0kRdL15a0BaRKs8PajAlwkAFi+FFUN6i1VUN6u1IIg4motwu7BG9R4CMy.XRZ9HAG6KQaZeh4RHjmsWOORB7n8M9931+af6MMmyK1ib918HmWtG4b7djy2sG4786QN+vGMG76kNqPqRJuN.SLcjQYxxZjjAcVltPx+.u9Z85.

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

        You need to provide the name of the function to call, you don't want to call the function here, so no () required.

        Content.callAfterDelay(500, ResetMIDIIndicator(), thisObject);

        Should be

        Content.callAfterDelay(500, ResetMIDIIndicator, thisObject);

        I'm not sure what the thisObject is, but it seems to work.

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

        clevername27C 2 Replies Last reply Reply Quote 2
        • clevername27C
          clevername27 @d.healey
          last edited by

          @d-healey Sir, you are a gentleman and a scholar.

          1 Reply Last reply Reply Quote 0
          • clevername27C clevername27 marked this topic as a question on
          • clevername27C clevername27 has marked this topic as solved on
          • clevername27C
            clevername27 @d.healey
            last edited by

            @d-healey I figured it out, lol. The third parameter is an object that can be referred to using the "this" pointer.

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

            35

            Online

            1.7k

            Users

            11.8k

            Topics

            102.8k

            Posts