MidiPlayer upgrade

All playing threads are now saved in an array.
The static method stop stops all playing thread.