Hacked in initial midi support using the code and schematics by Avelino Herrera Morales (untested).
Merge branch 'master' into midi-support
Makefile tweaks - build with current branch name postfixed. Run emulator in background task.
Merged master.
Removed superfluous debugging print code.
Fixed MIDI output by switching to timer 2 - timer 0 is used by Krawall.
Optimised MIDI output so the timer only fires when there is actually MIDI data in the buffer - reduces CPU load considerably.