HISE Logo Forum
    • Categories
    • Register
    • Login

    MIDIPlayer || Need Note Events .

    Scheduled Pinned Locked Moved Solved Scripting
    7 Posts 4 Posters 106 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.
    • ChazroxC
      Chazrox
      last edited by

      Im trying to get a print out of the note events that are currently loaded in a MIDIPlayer.
      Does anyone have any advice for how to do this properly? From what I've found in the documentation, I thought this would work but Im doing something wrong obviously. Help? 🙏

      Screenshot 2025-08-05 at 4.15.21 AM.png

      d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @Chazrox
        last edited by

        @Chazrox That indicates the message list is an array of objects. So inside your loop, try printing trace(e)

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

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

          @d-healey I get this...

          Screenshot 2025-08-05 at 4.44.01 AM.png

          1 Reply Last reply Reply Quote 0
          • ChazroxC Chazrox marked this topic as a question
          • ulrikU
            ulrik @Chazrox
            last edited by ulrik

            @Chazrox try this

            for (e in messageList)
                Console.print(e.dump());
            

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

            ChazroxC 1 Reply Last reply Reply Quote 2
            • ChazroxC
              Chazrox @ulrik
              last edited by

              @ulrik BOOM!

              Screenshot 2025-08-05 at 6.10.14 AM.png

              Thank You sir! 🙏

              Now I have some work to do!

              dannytaurusD 1 Reply Last reply Reply Quote 0
              • dannytaurusD
                dannytaurus @Chazrox
                last edited by

                @Chazrox If you knew what you were looking for, it's right there in the docs 😮

                It's like you have to know the answer, to look up the answer 😂

                Message Holder
                This object mirrors the functionality of the Message class, but operates on an arbitrary event.
                This can be useful for one of these occasions:
                • MIDI file processing (MidiPlayer.getEventList() will return an array of objects of this type.
                • ..
                • Debugging (dump() prints out a nice string that contains useful information)

                Link Preview Image
                HISE | Scripting | MessageHolder

                A object that holds a HiseEvent for processing

                favicon

                (docs.hise.dev)

                Meat Beats: https://meatbeats.com
                Klippr Video: https://klippr.video

                ChazroxC 1 Reply Last reply Reply Quote 1
                • ChazroxC
                  Chazrox @dannytaurus
                  last edited by

                  @dannytaurus

                  @dannytaurus said in MIDIPlayer || Need Note Events .:

                  It's like you have to know the answer, to look up the answer

                  I seriously feel like that sometimes. hahahahahah

                  1 Reply Last reply Reply Quote 1
                  • ChazroxC Chazrox has marked this topic as solved
                  • First post
                    Last post

                  19

                  Online

                  1.9k

                  Users

                  12.3k

                  Topics

                  107.1k

                  Posts