ugly undocumented C++-code, but written for nearly what you describe, is
"ommo_bridge" from this little (pre-alpha) toolbox:
ommo_bridge stands for OSC-to-MIDI and MIDI-to-OSC. Currently only
MIDI-CC-events are supported, but it might not be impossible to extend
to support NRPNs. The format of the incoming and outgoing messages can
be configured in an xml file.
Depends on libxml++-2.6, liblo, alsa and jack.
If not stated otherwise then the license is GPL. I hope to bring this
toolbox into shape until LAC2013 (this toolbox is the successor of a
part of a toolbox presented at LAC2012).
On 01/22/13 00:21, Jeremia Bär wrote: