Open pikurasa opened 4 years ago
We used to have these blocks (and one for save SVG too). I suppose there is no reason not to add them to the extras palette.
@pikurasa In this issue, you want to add a record and generate a lilypond/ABC option to the Webapp.
We used to have a block you could use for saving SVG, Lilypond, etc. The advantage of that is that you could record an interactive session. The current implementation (of Lilypond, ABC, et al.) only let you record a non-interactive session.
OK, what needs to be done?
Follow the logic of runninglilypond and figure out how to enable it without triggering the supressOutput mechanism.
Ok, thanks. I will look into it.
Deleted the comment as it's possibly spam, this user seems to open PRs and make comments that seem AI generated and they hardly follow up.
@MohitGupta14 This is a doable Lilypond-related task.
Basically, a new block (well, reintroduce a deprecated block) that will save the Lilypond for what has been performed until the block has been initiated.
Benefits are described above.
@pikurasa if no one is working then I would like to take up this issue. thanks
Is this issue still open I would like to work on it
I think basic idea is that musical output should always be recorded into a buffer and the save to Lilypond (or ABC) button just saves. If nothing is in the buffer, then the Lilypond (or ABC) button runs the program as per the current behavior. The clear button can flush the record buffer. I think that will cover all the use cases. (I'd prefer not to add a new block if we can help it.)
@walterbender I would like to suggest how can we do it Maintain a record buffer that passively logs all musical output during program execution. Provide buttons to: Save the buffer to LilyPond or ABC notation. Clear the buffer if the user wants to reset it. Ensure the system behaves as it currently does when no buffer exists.
I think we can add clear the buffer to the action of the existing clear button.
Now that I know a little more about computation (thank you @walterbender ), I can better appreciate the original design of generating lilypond output, which was its own block that could be inserted into the code.
I do still like what we have right now. I like just clicking the button and seeing the music notation quicker than listening to all the music every time. Great for debugging.
However, if a user creates an interactive program there is no way to really capture the performed output to lilypond.
Perhaps we have a "record as lilypond" and "record as ABC" as an option, possibly as one of the options when the user does a long press for play. Once initiated, the recording begins until the user clicks the STOP button.
Does this seem logical?