Crazy thought - what if we mashed together falling scripts with the old concept of “shadow” scripts?! So each script would have a corresponding script that could trigger on each falling edge, default would be blank of course. This also allows for a logical way to expand the number of scripts.
Would still need a reasonable way to go in/out of the falling edge script mode, and might need a new op to programmatically trigger a falling edge script.
Suffice it to say, I’m super into falling edge triggered scripts in general, regardless of how they’re implemented (my use case is triggering based on gates from a keyboard)
EDIT: the Polarity ops above actually is super clean, that probably makes the most sense 