Fixed bug where last note wasn't being played.

Also need to fix the bug that makes the .mid playback so jumpy.