fixed xmidi bug where midi buffer was too small, we should aways make it larger than necessary then resize later. Also tightened up animation code and mixed in music.