Optimises filter so that bindings and filtering is done once per message. Adds callback function to note event that fires on note off for that note.