Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic-multitouch-canvas.jzml does not output freshest state #72

Open
equilet opened this issue Aug 6, 2017 · 4 comments
Open

basic-multitouch-canvas.jzml does not output freshest state #72

equilet opened this issue Aug 6, 2017 · 4 comments
Assignees
Labels

Comments

@equilet
Copy link
Member

equilet commented Aug 6, 2017

I'm not sure if this is an issue with packing up OSC data on the lemur side of things, but when I lift my hands from the ipad and place a single finger back on, I would expect for the /touch/move/x array to be cleared albeit the first finger, e.g., [0.5, 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.]

@equilet equilet added the bug label Aug 6, 2017
@equilet equilet changed the title basic multitouch canvas does not output freshest state basic-multitouch-canvas.jzml does not output freshest state Aug 6, 2017
@ramagottfried
Copy link
Member

If I remember correctly there are /touch/move /touch/down and /touch/up values (or some names like that) -- so the /move/x seems ok to me, i.e. the last move was the first finger. Keeping the last item helps with tracking movement relative to start or previous end points.

the /pressure or /fingerwidth (I forget the name exactly), and then /finger_stack values tells you which fingers are currently down.

@ramagottfried ramagottfried added question and removed bug labels Aug 8, 2017
@equilet
Copy link
Member Author

equilet commented Aug 8, 2017

The issue is that the array contains stale data from prior touches/moves. Not critical at this point, we can look at it together. I'd rather learn something about the lemur system and I have some ideas about interesting alternative ways to relay status anyway; slightly different from the model used here.

@ramagottfried
Copy link
Member

actually, the values themselves are the most recent positions but the type of position changes (down/move/up). I thought it could be interesting to have all three values for when you lift your finger, you'd have the start point, last move point, and up point and could do something with that.

so, the old state info you're seeing is not actually in the jzml part of the system, it's the o.union loopback update patch that stores all the different movement types. they have different addresses so you can keep them separated easily.

@equilet
Copy link
Member Author

equilet commented Aug 9, 2017

Ah, gotcha. That's great - I can (have already) account for it in my update for the course this week, and we can look for a best practice regarding o.io when we catch up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants