Script to delay a specific CC?

Thank you. These examples are very much appreciated.

I’ll give them a try here and see how it goes. Perhaps trying them at different layer levels, and orders will get things working. If it won’t delay before the event hits mega-triggers, I might still be able to kludge together some sort of CC controlled legato/portamento effects.

Also, I’m curious…what if key switches were done with a script instead of via mega-trigger?

Another possibility…have a double key-switch in the meta-trigger. Have the script wait some period after receiving the first key-switch-note-on from Dorico, and simply send a SECOND note-on event of a different value some milliseconds later. In theory that should work (assuming the event ever makes it through the mega-trigger for processing), as the mega-trigger would need two trues instead of one to spring into action. The second trigger should be delayed since it technically doesn’t even exist until the script generates it.