you might both want to look at the patch I posted in the January challenge. (whatif.axp)
the challenge basically was for random generation, so what I did, was have random data being sequenced in a table, which has N rows. (no UI)
this could easily be adapted to (e.g.) take data from midi and output to midi.
(it different rows could contain, pitch, gate, velocity, and other cos)
for this challenge, we couldn't use custom objects, which is how I would code it now...
in a similar vane, I also did an 'event recorder' which you will find in the community library (under by prefix tb)
both probably are more 'starting points' than exactly what you want.
.. though one day I probably will write a full sequencer designed for external controllers.
(Id planned it for the push, but then traded it in... and to get the push2 working I need to do some work work)