SammyIAm/Moppy — pull request #15 by minihui (2012-05-17 12:19:53+00:00)
Title: Note off and pitch bend fix

Here's another fix for 2 issues.

1. Once pitch bending is invoked, the pitch is one octave higher. So it's made half.
2. If more than two keys is pressed, period 0 was sent to Arduino immediately right after any of them is released. So I add a array to keep trace of the number of the keys pressed, and only send a period 0 after all the keys are released. Before the release of the last key, the period of the last note is sent.

I think we shouldn't be worried about what it should play while we are releasing multiple keys.

I tried to isolate this fix to the live midi input pull request, but it's a little tricky now. Just ignore the changes outside MoppyPlayer.java if any.