I think I see the culprit.
Whenever I want to stop a recording, I press space. This sends an additional signal that kills all notes and messes with the scripting. Is there any way to not have Cubase send that additional piece of MIDI information when space is pressed?

