How to RECEIVE MIDI Program Change with Arduino

Hi everybody.

I've begun working with MIDI and my Arduino, I'd like to receive MIDI Program Change, there's a ton of tutorial to send Program Change but I haven't found one on how to receive.

My question is, using the MIDI library what would be the syntax to listen to PGM Change and for test purpose, display it in the serial window, tough I don't think I'll be able to use it as MIDI does have a weird serial speed (31250).

Pascal

The MIDI library includes an example of receiving Program Change.

Ho Woaw!!!!

It's not the same example file that I was working with! Thanks a lot, I'm going to do some test right now!

Pascal