Fixed a minor bug in the play_note function.