works: MIDI-IN: code + schematics

Yes you can.
Have a look at the doc:
http://home.roadrunner.com/~jgglatt/tech/midispec.htm

In the worst case, if you don't get it working or think it is too complex for you now, have a midi loop sending standard Midi CC.