Hello!
I'm measuring the time between taps ( touches ) when I'm making a Bpm-tap function. Bpm = Beats Per Minute, like you use for tempo in music.
But I'm getting inconsistent results on touch-devices. However it works very nice on a computer, using a mouse.
I'm wondering if I missed an important mechanic with the Touch-plugin or something that causes problems?
The main thing I'm interested in is: What's the best way to measure time between two taps in Construct 2?
My function works like this:
When the user touches/tap/click a sprite I measure the time between taps.
I also count each tap so I can calculate an Average value.
To calculate the BPM I only need a time... for-example 0.5s or 500ms is a Quarternote at 120 BPM.
I have tried several of the touch-conditions but the one that seem to work best is "Is touching object" or "Is in touch"
I use this condition followed by a "Trigger once"
The result is great if I try the app in my computers web browser.
I have two BPM-values... First the value calculated with the time between the last two taps. Secondly the BPM calculated from an average from all the taps made.
On a touch-device... I have tested on an iPhone 4S and also on an android-system: Samsung S3. I also did some testing on a Sony, don't remember the model.
I seem to get the same results from all of them - where the end result is that they give me a BPM-value 1-2 bpms higher than on the computer.
It seems like overall the measured time between taps is getting a bit higher than on the computer.
So both my BPM-values the (real) one and the (average) one... gets misleading values.
I wont get into more details, for now, unless someone asks for more.