Player code clean up / bug fix

Fixed bug where some notes would keep playing forever if pitch was
changed. (If there is a note_on message with velocity 0, just change it
to a note_off)