measure mouse drewing to metronome?
How is possible to do the following?
a subject is hearing a metronome in the speaker and he should moving a mouse on a circle on the screen. How can I measure how much he in sync with the metronome he is hearing?
depends on what you take as measurement
large dial set to 360 degrees and no clip could help you ...
depends on what you take as measurement
How can I take the x y values of the dial and compare them with the input value of the mouse?
No need for mousestate
He means just bang the dial every time it makes a rotatoin
every bang should match the metronome
add a sound to button
Will is right, but ...
dial as GUI object can not report matched value when moved fast.
no way.
you need something like this

P.S which would work only if your users move the mouse CW, not CCW.
Thank!
P.S which would work only if your users move the mouse CW, not CCW.
Is there a way to make it work also if moving CCW?
assuming I have metronome going 60 BPM. how can I calculate the sync of the user moving that dial over x time frame (lets say 1 minute)
later I would like to convert this patch to work with screen sensor that the user will move his hand on a screen in circular movement
Edit: maybe something like this to calculate the difference between the metro time and user time?
no matter if circling with mouse or finger,
it is difficult to follow metro, even at very slow speeds.
What do you mean by detecting both directions ?
what do you want to use to detect full circle movement ?
What measurement do you want to accept as a trigger ?
think first then ask
when you sorted that and have a workable trigger,
you will compare deviation between metro bang and trigger
and write that down into a list, coll, whatever.
later you can make calculations
What do you mean by detecting both directions ?
You said it work only when user moving dial CW. I wonder if it can be also CCW?
what do you want to use to detect full circle movement ?
The way it is working now when moving CW is good. could it be also CCW?
What measurement do you want to accept as a trigger ?
what do you mean? one input is the constant tempo bangs on x intervals. The other is the bangs from the user when finishing full circle
ok, one can detect either direction but not both.
otherwise user could just pass the point back and forth without circling at all.
woud that be acceptable ?
best would be to use signal based detection.

woud that be acceptable ?
This is great!
what regarding calculate sync to metro in specific time frame?
for example metro running at 50 bpm for 1 minute. How to calculate the sync between user moving the dial and the metro time ?
patch above accepts both directions per switch,
but does not prevent users from crossing 359 <-> 0 turn point repeatedly
and so trigger without making a circle at all.
That would need a bit more complicated mechanism.
Here is a patch that does it and also measures metro - trigger timing.
Thank you very much! I will experiment with it