'MIDI' was not declared in this scope

UPDATE:

The sketch uploads correctly when I disconnect the USB Host Shield from the Arduino board.

Still not working but i'm getting closer.