Go Down

Topic: Play MIDI files on keyboard with midi in and out (Read 1 time) previous topic - next topic

iGerman

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

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.


marco_c

#2
Apr 09, 2016, 10:39 pm Last Edit: Apr 10, 2016, 12:39 pm by 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.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

iGerman

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).

iGerman

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

marco_c

All libraries starting with MD are mine from the same place.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

iGerman

All libraries starting with MD are mine from the same place.
ok but too fast tempo, how do i low it?

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.
Arduino Libraries https://github.com/MajicDesigns?tab=Repositories
Parola for Arduino https://github.com/MajicDesigns/Parola
Arduino++ blog https://arduinoplusplus.wordpress.com

iGerman

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

Grumpy_Mike

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

Go Up