Sampler - How can I write a name on note of the piano roll

I intend to create a sampler. I would like to write the sample name on the piano roll notes. There are samplers that can do this: tx16wx, reasamplomatic.

How can I do that? I probably need to send some messages to the host.