How to trigger samples

There’s a script that lets you do exactly that, adapted to your needs (number of samples to play, CC number to use).
Read this message and the rest, it should satisfy you: