Play MIDI files on keyboard with midi in and out

I have keyboard with midi interface, i want to play midi on it with arduino, i have sd card module, i can use it to store midi files. i also have 16x2 display

If your keyboard has a regular-old (round DIN) MIDI connector, you can get a MIDI shield for the Arduino. If it has USB-MIDI, I believe there is a MIDI library for that.

There is a MIDI library to receive-decode or generate-transmit MIDI messages, but I don't know about reading a MIDI file.

Do you want the Arduino to generate sound (virtual instruments, etc.), or is the keyboard going to generate the sound? The Arduino needs additional hardware to make anything other than a square wave. If you want lots of good-sounding virtual instruments you'll need "lots" of external hardware.

My MD_MIDIFile library (link below) will read from an SD card and you can send the MIDI data to a keyboard. You need an interface to do that - some details in the software header file.

DVDdoug:
If your keyboard has a regular-old (round DIN) MIDI connector, you can get a MIDI shield for the Arduino. If it has USB-MIDI, I believe there is a MIDI library for that.

There is a MIDI library to receive-decode or generate-transmit MIDI messages, but I don't know about reading a MIDI file.

Do you want the Arduino to generate sound (virtual instruments, etc.), or is the keyboard going to generate the sound? The Arduino needs additional hardware to make anything other than a square wave. If you want lots of good-sounding virtual instruments you'll need "lots" of external hardware.

I cant get midi sheild, i want to play midi files on my keyboard, i have tried midi example (Communication -> midi), it worked for me, now i want to play midis on keyboard (i want something like arduino sends midi file data to keyboard and keyboard plays it).

marco_c:
My MD_MIDIFile library (link below) will read from an SD card and you can send the MIDI data to a keyboard. You need an interface to do that - some details in the software header file.

#include <MD_AButton.h> no such file or directory with play lcd example, and with play without lcd too fast tempo

All libraries starting with MD are mine from the same place.

marco_c:
All libraries starting with MD are mine from the same place.

ok but too fast tempo, how do i low it?

Tempo is in file if it is made properly. Try one of the files that come with me the library. If they do not work then you have problems outside the library.

marco_c:
Tempo is in file if it is made properly. Try one of the files that come with me the library. If they do not work then you have problems outside the library.

i use midi cable without any ics, just two 220 ohm resistors, one cable connected to 5V and other to TX, and it works

The cable you have will have no effect on the tempo of the playback.