@d-healey i find bug, your midi list isn't cleanup after function complete. This error may trigger the release notes again, even if they have already been played. And this happens if you send another message from controller 64, no matter what value it will be, 0, or more than 63 - releases will still be triggered.
Add this at the end of function playReleaseNote