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
Saving for Widgets #2017
Comments
I think we can save widget state in the widget block much the way we save start block state in the start block:
|
Hey, can I take up this issue? |
Feel free to jump in. Might want to work on the phrase maker first. |
Sure thing |
Hey @walterbender , in which files will I find widget state? |
I don't think we need to do every widget. Probably just the phrase maker and rhythm maker. https://github.com/sugarlabs/musicblocks/blob/master/js/widgets/pitchtimematrix.js#L71 and https://github.com/sugarlabs/musicblocks/blob/master/js/widgets/rhythmruler.js#L33 |
@walterbender , Can I work on this issue?Can you explain a little bit more about how to solve it? |
Please read the discussion above. It pretty much summarizes the work that needs to be done. |
@walterbender ,Hello , Would you please help me with this issue?Its a little bit tricky for me. |
@walterbender where can i find the code for start block?I mean in which file? |
Tip of the day: grep can be used to find things. grep -R start But I think you want to look for the saving and loading code for the start block, which is found in activity.js and blocks.js |
@walterbender ,Do you mean that the selected notes in the matrix should be black,even if the user refreshed page? And if you're saying that if the user has not saved project yet and the action block disappears after he refreshes the page, then just play the block once by clicking on 'action'.So even if we refresh without saving, it won't disappear. |
@walterbender , I have a question.If I want to work on this project,do I have to have a deep knowledge about music , like about different scales and keys? |
@Ishakikani9117 I am not sure this is a good issue to work on as a first introduction of Music Blocks. But to answer your questions:
|
Students expect that their work is saved in the widgets and are often disappointed when it is not.
Further, sometimes teacher and student find they need to refresh the browser, which causes work in the widget to be lost. (Notably, losing data seems to be inevitable when encountering issue 1936 as there is no access to save or play).
I see two solutions:
The former (probably) requires more internal bookkeeping of data, but would guarantee they keep their work. The latter uses our current methods, but gives the user another reminder and chance before losing their data.
The text was updated successfully, but these errors were encountered: