Work out the rate of change or similar (accelerometer data)??

Hi,
Im trying to use a 3-axis acclerometer to capture gestural movements from a performer and use that data elsewhere in my patch. At the moment I have it just triggering an event if the movement goes above a certain threshold for example however it does not feel particularly responsive that way.

I’ve investigated using the change~ and edge~ objects then capture that peak to try and improve matters however to no avail….
Is there a better way of doing this or to calculate the rate of change of the data in order to make it some function of how fast it is moved?

Hi
it’s quite easy to detect and output value peaks, which would give you a kind of velocity capture functionality, but it’s a little unclear from your post exactly what you require; here’s a solution using just Max objects ([togedge], [gate] and [delay], and assuming that your values always return to zero before the next peak, but i don’t think this is what you want:

— Pasted Max Patch, click to expand. —

Copy all of the following text. Then, in Max, select New From Clipboard.

Thanks alot, I guess what I’m really trying to do is to find a way to tell not just the peak value of the accelerometer data (which is just scaled 0-127) but how fast the accelerometer was moved to arrive there -some kind of differential possibly?

Or I believe I could arrive at much the same effect by simply capturing the peak value of where the data stops increasing and begins to decrease, allthough I have been unsuccessgul in doing this!!