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

Set Heading not fully executed before "input value" begins #2287

Closed
pikurasa opened this issue May 27, 2020 · 3 comments
Closed

Set Heading not fully executed before "input value" begins #2287

pikurasa opened this issue May 27, 2020 · 3 comments

Comments

@pikurasa
Copy link
Collaborator

(Note: Probably not specific to "set heading")

If the code does not specify "wait", the input value block initiates and the previous (e.g. previous set heading) block does not complete its execution.

without wait

Screenshot at 2020-05-27 13:38:48 without wait

with wait

Screenshot at 2020-05-27 13:39:27 with wait

test code
Set-Heading-and-Input-Needs-Wait.html.zip

@pikurasa
Copy link
Collaborator Author

The visual output from tests above were made by repeatedly inputting the value of 5. With wait, the output is as expected, without wait things begin to drift.

It is also notable that the direction the mouse appears to be heading is not always correct in either scenario (at least not for me for these tests).

@walterbender
Copy link
Member

the input block pauses execution while it waits for the input. Maybe a race condition of some sort? I don't think it would be a problem to add a short pause before stopping.

@walterbender
Copy link
Member

The program works as expected if you add a no-clock block. The problem is that the note is being truncated because of its trying to get into sync and so the graphics are clipped. I don't think this is worth fixing in Music Blocks 1.0.

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

No branches or pull requests

2 participants