I am trying to build a arduino project to play midi files. I downloaded MD_MIDIFiles and SdFat libraries in place them in sketchbook/libraries and then try this.
#include <SPI.h>
#include <SdFat.h>
#include <MD_MIDIFile.h>
SdFat SD;
//MD_MIDIFile SMF;
void setup(){
}
void loop(){
}
Just to test. I builds SdFat ok, but then this:
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp: In member function ‘bool MD_MFTrack::getNextEvent(MD_MIDIFile*, uint16_t)’:
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:90: error: ‘fseek’ was not declared in this scope
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:120: error: ‘ftell’ was not declared in this scope
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp: In member function ‘void MD_MFTrack::parseEvent(MD_MIDIFile*)’:
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:285: error: ‘fseek’ was not declared in this scope
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:138: warning: unused variable ‘eLen’
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:139: warning: unused variable ‘sev’
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp: In member function ‘int MD_MFTrack::load(uint8_t, MD_MIDIFile*)’:
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:415: error: ‘ftell’ was not declared in this scope
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:425: error: ‘fseek’ was not declared in this scope
/home/tj/sketchbook/libraries/MD_MIDIFile/MD_MIDITrack.cpp:389: warning: unused variable ‘dat16’
It looks like the MD_MIDIFile library code is not finding the SdFat library.
Any thoughts?
tj