MIDI file recorder / player

I am working on using an Arduino to record MIDI files to an SD card, and also to play MIDI files from an SD card. I have the MD_MIDIfile library working to play *.MID files on an SD card. I have the example MIDI recorder application to record *.MID files, but it uses the MIDI library and the SD library, where MD_MIDIfile requires the SDfat library.
Does anyone have any insights as to how to combine these two functions? I can deal with the user interface and state machine design, but I am struggling with making both MIDI/SD file systems work in the same *.INO file.

Without the code(s) ?

It should not be to difficult to make one of them use the other SD library.

Well that is usually the trick.

SDFat is (almost) a superset of the standard SD library or close enough that you should be able to write wrappers for SD functions in terms of SDFat functions.

I would sugget that you look at what functions are being used from the SD library and see what equivalents there are in the SDFat library. Then convert the SD based code to use SDFat and test. Once this works, combine the two.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.