HISE Logo Forum
    • Categories
    • Register
    • Login

    cancel Synth.noteOffDelayedByEventId(id, delay amount)

    Scheduled Pinned Locked Moved Scripting
    2 Posts 1 Posters 102 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 there a way to cancel an event made like this

      local id = Synth.addNoteOn(1, 60, velocity, delay amount);
      Synth.noteOffDelayedByEventId(id, delay amount)
      

      As I understand it this code will set an event in the midi buffer, some sort of queue?
      Is it possible to remove it from the buffer?

      Skärmavbild 2025-04-16 kl. 17.03.42.png

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

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

        @ulrik as soon as the function

        Synth.noteOffDelayedByEventId(id, delay amount)
        

        has been executed, this function

        Synth.isArtificialEventActive(id)
        

        will print false even if the note still is sounding because of the delayed note off.

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

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

        50

        Online

        1.7k

        Users

        11.7k

        Topics

        101.8k

        Posts