thank you for your answers, actually the DC motor or solenoid can be a good idea and alternative DVDdoug, I will think about it, if you have links to code examples or relevant tutorials, it would help me a lot.
as for your video Grumpy_mike that's exactly what I wanted to do with the servomotor percussion for the 6 strings, controlled by midi note cc, I bought your book is complete about it, but I was not able to adapt your code to my configuration with an arduino mega or uno
All the best to you