Forum

    • Register
    • Login
    • Search
    • Categories

    Can't get Synth.noteOffByEventId() to work

    General Questions
    3
    6
    232
    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.
    • ulrik
      ulrik last edited by

      I have spent a couple of hours trying to send note off values based on NoteOnEventId but I can't get it to work.
      I have a set up in "onNoteOn" that stores the EventId in an array, and in "onNoteOff" I've set Message.ignoreEvent(true), I want to access the array later to send note off values based on the NoteOnEventId in the array but I always get the message that the ID is missing, but it isn't. What am I doing wrong?

      Hise Develop branch
      MacOs 13, Xcode 14.0.1
      http://musikboden.se

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

        @ulrik said in Can't get Synth.noteOffByEventId() to work:

        res the EventId in an array, and in "onNoteOff" I've set Message.ignoreEvent(true), I want to access the array later to send note off values based on the NoteOnEventId in the array but I always get the messa

        I'm guessing you need to make the event artificial in the onNote callback.

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

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

          Yes Message.makeArtificial is your friend here. It‘s a bit more complicated than you would expect, but here is a explanation:

          https://forum.hise.audio/topic/103/note-off-by-id-doesn-t-work-on-same-note/7

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

            @d-healey Thank you David, I will try that!

            Hise Develop branch
            MacOs 13, Xcode 14.0.1
            http://musikboden.se

            1 Reply Last reply Reply Quote 0
            • ulrik
              ulrik @Christoph Hart last edited by

              @Christoph-Hart Thank you for pointing me in the right direction, I will study this!

              Hise Develop branch
              MacOs 13, Xcode 14.0.1
              http://musikboden.se

              1 Reply Last reply Reply Quote 0
              • ulrik
                ulrik last edited by

                Thank you Christoph and David, it's working now! 🙂

                Hise Develop branch
                MacOs 13, Xcode 14.0.1
                http://musikboden.se

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

                23
                Online

                982
                Users

                6.6k
                Topics

                60.7k
                Posts