works: MIDI-IN: code + schematics

Sorry i explained wrong.

I don't want to control a midi keyboard, but i read that the messages must be in channel 1 and in my keyboard i don't know in which channel is sending messages...

So, my question is, if i'm sending messages in other channels my arduino must detect at least the serial.available... i'm right?

thanks!