I am creating a tuning fork app, where you pat the iPhone into the palm of your other hand, or against a soft surface in order to set the fork zinging.
So I would like to detect the energy contained in each ‘bump’
(EDIT: Removed a ton of gumpf)
Can anyone help me crack this one?
Thanks to one of the wizards on freenode’s #math channel (thanks Igor), I have a really good working solution.
You use the standard method to fire a callback at the maximum frequency possible (100Hz), which will contain the instantaneous acceleration x,y,z values.
I will let the code speak for itself, good code should always speak for itself.