Midi Control

hi gordon!
do you think it is possible to realize midicontrol as a module? a friend of mine whould like to code a midi control for r4, what whould he need to code a module? is there any documentation about module codeing?
do you think it is possible to realize midicontrol as a module? a friend of mine whould like to code a midi control for r4, what whould he need to code a module? is there any documentation about module codeing?