Pergunta

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

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top