musicblocks icon indicating copy to clipboard operation
musicblocks copied to clipboard

Pitch to hertz block always shows undefined for the first note.

Open vaibhavdaren opened this issue 4 years ago • 5 comments

Pitch to hertz block always shows undefined for the first note. The probable reason is race condition.

Screenshot 2020-05-16 at 2 05 58 AM

[1] https://musicblocks.sugarlabs.org/index.html?id=1589542696262980&run=True

vaibhavdaren avatar May 15 '20 11:05 vaibhavdaren

This is due to the fact that on-every-note-do triggers before the note is played.

I cannot manage to get it to run during the note, only before or after. Maybe we need to have both options available?

walterbender avatar May 15 '20 22:05 walterbender

Before-Every-Note-Do After-Every-Note-Do

walterbender avatar May 15 '20 23:05 walterbender

@pikurasa what do you think?

walterbender avatar May 15 '20 23:05 walterbender

@pikurasa what do you think?

Yes, I was thinking the same thing too.

pikurasa avatar May 19 '20 19:05 pikurasa

We can address this in Music Blocks 2.0.

walterbender avatar Dec 23 '20 22:12 walterbender