HISE Logo Forum
    • Categories
    • Register
    • Login

    allNotesOff doesn't affect queued events?

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 76 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.
    • SimonS
      Simon
      last edited by Simon

      It seems that Synth.allNotesOff() doesn't affect notes that are currently queued with a timestamp that is in the future. Is that intentional, maybe there's a more powerful version?

      I'm adding handling for overlapping MIDI and hoped to use allNotesOff as an escape hatch when this kind of thing is played.
      9f776b94-e0a9-4d48-b399-835e56844520-image.png

      I already keep track of all note on and off events, so looping through them and doing a normal note off is not a problem, but having a single "Ah something happened please just stop everything" panic button function would be nice.

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

        @Simon said in allNotesOff doesn't affect queued events?:

        Is that intentional, maybe there's a more powerful version?

        I think all notes off just turns off currently playing notes - the same as sending CC123.

        To turn off notes that don't yet exist you'd need to keep an list of such notes and cancel them before they are triggered as you are doing. You could combine this into a function with Engine.allNotesOff()

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

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

        46

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts