MajicDesigns / MD_MIDIFile

Standard MIDI Files (SMF) Processing Library
GNU Lesser General Public License v2.1
110 stars 38 forks source link

Example program stops reading from SD after 60 seconds #4

Closed erniberni closed 6 years ago

erniberni commented 6 years ago

Hi, from the examples I tried MD-MIDIFile_Loop and MD-MIDIFile_Play. Both programs play the midi files for approximately 60s then reading from the SD card stops and the serial debug shows the line M T2: Ch 2 Data 80 60 0 every 8 to 9 seconds. After a while reading and playing starts again and after a while stops again. I am using the SD card reader of an Ethernet Shield. I tried two different SD cards and Arduino Uno and Mega with same behaviour.

Reagrds , Reinhard

MajicDesigns commented 6 years ago

Which .MID file was it playing?

erniberni commented 6 years ago

I looped the TWINKLE.MID from the SD_Card_Files directory. But same behaviour also with other files.

MajicDesigns commented 6 years ago

Both the defines

define DUMP_DATA

define SHOW_UNUSED_META

in MD_MIDIFile.h need to be set to 0. Looks like the UNUSED_META was set to 1 on the release version. Will re-release once all tested ok. In the meantime you can change your version.

erniberni commented 6 years ago

UNUSED_META was set to 1, I changed to 0. Now it's working. Thank you very much.