Forum

    • Register
    • Login
    • Search
    • Categories

    get midi channel for EventId?

    Scripting Forum
    2
    5
    87
    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

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

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

        ulrik 1 Reply Last reply Reply Quote 0
        • ulrik
          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 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 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

            ulrik 1 Reply Last reply Reply Quote 0
            • ulrik
              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 13, Xcode 14.0.1
              http://musikboden.se

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

              15
              Online

              1.1k
              Users

              7.0k
              Topics

              64.6k
              Posts