Using Motion to Control Sound And Create Beats

Eaimy Khaing's icon

I've created a patch where you move your hands and this will trigger the sound files to play. thus, you can create sick beats just by moving your hands. The problem is that it's not exactly playing the sound files like i want to. Maybe it's detecting too many movements. The sounds keep re-playing from the start and it's not creating a nice melodious effect. Also, I want to be able to control the volume of the sound but I can't seem to be able to do that. Do you have any ideas on how to improve the patch? I've attached the max patch, along with the instructions and three sample sound files. Thank you for your time and help!!

Max Patch
Copy patch and select New From Clipboard in Max.

Eaimy Khaing's icon

oh haha turns out the file sizes were too big. I guess you could try it with any audio file from the library