PDA

View Full Version : Event holding ....




nightwar00
Jun 17, 2009, 04:10 PM
hi ! i need some advices ....

I want to make a small piano. i want to now how i can define a zone where handle event. I have implemented a version where the event zone is a square at the edge of the button of the piano. th event are EventEnded....

but when i play on my iphone fast some event are not catch...
i use AVAudioPlayer with the sound format : caf. I read that 2 caf sound can be played simultaneously. But i have some note missing... i don't know why.

Some answer ?

sorry for my poor english :(



BlackWolf
Jun 18, 2009, 11:42 AM
I guess because if you tap really fast, it is recognized as a double or triple-tap. the UITouch has a property "tapCount" that gives you the number of taps.

mccannmarc
Jun 18, 2009, 12:01 PM
There's an open source piano app on google code, read that to get an idea of how to do it properly