I’ve not yet had a chance to study up on how Lua works so hopefully someone might be kind enough to help me make a simple script.
I would like a slot specific script that can delay a given CC event before it passes into the layer it resides for processing.
I’d also like a variation that can do the same for a specific note on/note off event (key switch).
Example: With Dorico, if I assign CC68 to the Legato technique (slurs), the legato pedal is always triggered before the slurred passage begins playing. What I want to happen is that the first note should be articulated normally, then a legato event sent a tick or two later to change to a legato sound and continue until the slur mark ends, and release the legato event a tick after the last note under the slur has played.
If I had a script I could drop into a HALion layer that needs it and delay the event a millisecond or two before it gets processed/played deeper in the HALion program then it would save me a LOT of time in getting Dorico to do nicer interpretations of slurred passages.
Typically I create legato effects either with CC68 shifting a variety of parameters, OR, just having a mega-trigger/key-switch that can toggle to a new layer. My current work-around is to host HALion inside a Bidule instance, and I have bidule filter out the event and delay it. It works for me, but I’d like to be able to share things easier with other Dorico users who don’t own Bidule.