I'm attempting to build a patch which triggers a sound when a change in direction of acceleration occur. I hope to use Kinect with Synapse to track the movement of my hand (lets say just on y-axis). I want to trigger a bang when my hand changes sign of acceleration from a downward velocity to an upward velocity (mimicking a drumstick striking a drum for example).
My current thought process is to set a very quick metro (1ms) and detect change in y-axis position. for example..
y_change = y(t) - y(t+1)...
If the hand is moving downward, y_change will be a negative value.. If the hand begins to move upward y_change becomes a positive value! Essentially, I want to trigger a bang whenever the y_change value goes from negative to positive.
I am wondering if this train-of-thought is the right way to approach the task or if there are better options?
Also, the drawback with this approach is, I would like to quantify the speed at which the sign of velocity occurs, with high velocity corresponding to loud.. Low velocity corresponding to soft. Any ideas? My worry is this begins to incorporate Physical Modelling aspects which significantly increases the complexity of the project.
Thanks in advance for any suggestions/help!