HISE Logo Forum
    • Categories
    • Register
    • Login

    How can I keep track of note on and note off status?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 89 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by

      I need to make a note toggle, so I need to change the action of incoming MIDI notes from a keyboard/controller from momentary to latch switches. I can turn off the incoming note off messages easy enough, but how can I keep track of the note status to check if it is already on or off? Essentially, if there is already a note on at that note number, then I would convert the next incoming note on into a note off.

      I am presuming an array or a MidiList is too bulky for that job (keeping track of the note status), so there must be something simpler?

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

        @VirtualVirgin A MIDIList is exactly the way to go.

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

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

        18

        Online

        1.7k

        Users

        11.8k

        Topics

        102.3k

        Posts