HISE Logo Forum
    • Categories
    • Register
    • Login

    Can't get Synth.noteOffByEventId() to work

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 492 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.
    • ulrikU
      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 15.3.1, Xcode 16.2
      http://musikboden.se

      d.healeyD 1 Reply Last reply Reply Quote 0
      • d.healeyD
        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

        ulrikU 1 Reply Last reply Reply Quote 1
        • Christoph HartC
          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

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

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

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            1 Reply Last reply Reply Quote 0
            • ulrikU
              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 15.3.1, Xcode 16.2
              http://musikboden.se

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

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

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

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

                14

                Online

                1.8k

                Users

                12.1k

                Topics

                104.9k

                Posts