I am totally confused with the new velocity parameter for noteOff method.
Your comment says
The velocity indicates how quickly the note was released - 0 is slowly, 1 is quickly.
which confuses me even more !
"was released" ? we are sending a note off, how could it have been released ? what is the relation with velocity (which is the name of this parameter) ? what is the use of velocity for a note off event ? The allowTailOff scheme worked fine for me so far so I really don't get what you were trying to fix/add.
Sorry for my slow brains...