GrandFather,
That's *exactly* what I was after, and no need for Inline::C - one less dependency. And it's pretty elegant, too. For the record, the speed is well within the bounds of what's necessary: it needs to reply & respond well within a workable time, but not strictly real-time in the MIDI sense, so all is good.
Your help is really appreciated.