Question

I am planning to develop an gyroscope based project like TipSkip, handle event knock to device from behind or detect a clap ,I searched google but I didn't find anything except core motion guide and event handling guide. Thanks for any help

Était-ce utile?

La solution

Detecting a clap requires audio recognition i.e. frequency analysis. There is no better source than Apple's own AurioTouch example for FFT. There is fairly good material about FFT and auriotouch online as well, like this.

As for the knocks, accelerometer is the way to go and you just need value recognition for the kind of movements your knock generate.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top