Hi TonE!
I used the note tracking part from another plugin of mine - always easier than figuring out someone else's code
Attached is my attempt - does this do what you want?
And honestly, I'm no guru - the stuff bang does is an order of magnitude more complex than anything I've done. But thanks anyway!