HISE Logo Forum
    • Categories
    • Register
    • Login

    get midi channel for EventId?

    Scheduled Pinned Locked Moved Scripting
    5 Posts 2 Posters 220 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

      Is it possible to get the midi channel used from the EventId when used in this context?

      I make an artificial note on like this:

      var id = Synth.addNoteOn(ch, nn, velo, 0);
      

      and in the the NoteOff CB I want to know which midi channel that was used when setting the NoteOn

      Is the channel stored somewhere along with the eventId, and is it possible to recall it?

      I know I can store the channels just like I store the eventId in a midilist but just wondering :)

      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 Message.getChannel()?

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

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

          @d-healey said in get midi channel for EventId?:

          @ulrik Message.getChannel()?

          This will always show channel 1 in noteoff cb

          I use this code

          Synth.noteOffDelayedByEventId(id, 100);
          

          and it doesn't seem to matter what midi channel the noteoff cb produce

          but I need the ch for another purpose

          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 Then I think the midilist is the way to go

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

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

              @d-healey said in get midi channel for EventId?:

              @ulrik Then I think the midilist is the way to go

              Yes, I think you're right

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

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

              46

              Online

              1.7k

              Users

              11.7k

              Topics

              101.9k

              Posts