diff --git a/examples/TGA_Pro_demo/TGA_Pro_demo.ino b/examples/TGA_Pro_demo/TGA_Pro_demo.ino index 2e0f94e..d4d19d1 100644 --- a/examples/TGA_Pro_demo/TGA_Pro_demo.ino +++ b/examples/TGA_Pro_demo/TGA_Pro_demo.ino @@ -16,7 +16,10 @@ #include #include "BAGuitar.h" -//#define ENABLE_MEM_TEST // uncomment this line to enable the memory test +MIDI_CREATE_DEFAULT_INSTANCE(); +using namespace midi; + +//#define ENABLE_MEM_TEST // uncomment this line and 'Save As' to a new location to test the SPI memory using namespace BAGuitar; @@ -122,7 +125,7 @@ void loop() { // GTA Pro. This test code will periodically send MIDI events which // will loop back and get printed in the Serial Monitor. /////////////////////////////////////////////////////////////////////// - int type, note, velocity, channel, d1, d2; + DataByte note, velocity, channel, d1, d2; // Send MIDI OUT int cc, val=0xA, channelSend = 1; @@ -134,7 +137,7 @@ void loop() { } if (MIDI.read()) { // Is there a MIDI message incoming ? - byte type = MIDI.getType(); + MidiType type = MIDI.getType(); Serial.println(String("MIDI IS WORKING!!!")); switch (type) { case NoteOn: diff --git a/examples/TGA_Pro_nolib_demo/TGA_Pro_nolib_demo.ino b/examples/TGA_Pro_nolib_demo/TGA_Pro_nolib_demo.ino index d6ddd67..207678f 100644 --- a/examples/TGA_Pro_nolib_demo/TGA_Pro_nolib_demo.ino +++ b/examples/TGA_Pro_nolib_demo/TGA_Pro_nolib_demo.ino @@ -23,6 +23,9 @@ #include #include +MIDI_CREATE_DEFAULT_INSTANCE(); +using namespace midi; + AudioInputI2S i2sIn; AudioOutputI2S i2sOut; @@ -68,7 +71,7 @@ void loop() { // GTA Pro. This test code will periodically send MIDI events which // will loop back and get printed in the Serial Monitor. /////////////////////////////////////////////////////////////////////// - int type, note, velocity, channel, d1, d2; + DataByte note, velocity, channel, d1, d2; // Send MIDI OUT int cc, val=0xA, channelSend = 1; @@ -80,7 +83,7 @@ void loop() { } if (MIDI.read()) { // Is there a MIDI message incoming ? - byte type = MIDI.getType(); + MidiType type = MIDI.getType(); Serial.println(String("MIDI IS WORKING!!!")); switch (type) { case NoteOn: