Simplest way to input MIDI data to kslider object?

Ernest's icon

I implemented a complete polyphonic voice allocator called polyvoice' which is submitted to the cycling74 toolbox. It currently accepts input from the kslider object. I'd like to extend it to add MIDI input. The simplest way would be to input single-channel MIDI note data into the kslider object, which must be something folks have done before. Does anyone have a recommendation as to the best way?

Here is a picture of the polyvoice allocator as it is. I'll be glad to include an acknowledgement for any help :)

1.jpg
jpg