Hi, guys...first time with Arduino here.
I'm trying to make a USB MIDI Host and I'm following a detailed tutorial but I'm facing an unexpected issue. When I upload the sketch to the board the process stops with the error message "'MIDI' was not declared in this scope"
This is the error message copied from clipboard:
Arduino: 1.8.5 (Windows 7), Board: "Arduino/Genuino Uno"
C:\Program Files\Arduino\libraries\USBH_MIDI-IOP_ArduinoMIDI\examples\bidrectional_converter\bidrectional_converter.ino: In function 'void setup()':
bidrectional_converter:52: error: 'MIDI' was not declared in this scope
MIDI.begin(MIDI_CHANNEL_OMNI);
^
C:\Program Files\Arduino\libraries\USBH_MIDI-IOP_ArduinoMIDI\examples\bidrectional_converter\bidrectional_converter.ino: In function 'void loop()':
bidrectional_converter:74: error: 'MIDI' was not declared in this scope
if (MIDI.read()) {
^
C:\Program Files\Arduino\libraries\USBH_MIDI-IOP_ArduinoMIDI\examples\bidrectional_converter\bidrectional_converter.ino: In function 'void MIDI_poll()':
bidrectional_converter:34: error: 'MIDI_DEFAULT_SERIAL_PORT' was not declared in this scope
#define _MIDI_SERIAL_PORT MIDI_DEFAULT_SERIAL_PORT
^
C:\Program Files\Arduino\libraries\USBH_MIDI-IOP_ArduinoMIDI\examples\bidrectional_converter\bidrectional_converter.ino:98:7: note: in expansion of macro '_MIDI_SERIAL_PORT'
_MIDI_SERIAL_PORT.write(outBuf, size);
^
exit status 1
'MIDI' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I've read about a line to add: MIDI_CREATE_DEFAULT_INSTANCE(); but I dont know where to insert it in the sketch.
BTW this is the tutorial I'm following:
http://cyfrowogitarowo.pl/wp-content/uploads/2014/04/MIDI-USB-HOST-DIY-tutorial.pdf
THANKS IN ADVANCE!