-
Notifications
You must be signed in to change notification settings - Fork 152
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
add bar checks "|" automatically #437
Comments
As I understand it this is well prepared but the actual functionality is not yet in place. I've been thinking about how this should be implemented. I don't have every detail clear yet but this is a sketch:
|
I also would like to comment that in your example @fedelibre, given that all bar check is there but in the wrong place I think there're other solutions... |
actually it was made on purpose, for visibility: |
@fedelibre I meant 'the wrong place' from your perspective. :) I couldn't help taking a look at this. I made a Frescobaldi snippet which places all existing barchecks at the end of the line. Maybe this can be useful while waiting for the real thing. |
This issue seems to be related to #86. |
I’d support a rather low-level implementation of this as an entry to Tools/Rhythm: |
Some people love putting bar checks at the beginning of the bar |
The point is that I hate when I download a file from Mutopia (or |
Actually I think this is a difficult matter. It may be a worthwile effort to work towards a "specification" for accepted coding standards. And it may be a good idea to take Frescobaldi's existing behaviour as a start. But we also have to see that Frescobaldi formats differently than e.g. LilyPond's code base itself (particularly the indentation of Scheme). For the problem at hand I would strongly oppose against inserting barchecks for every line break. There simply are too many opportunities to write well-formed code that does not have barlines at the end of the code line. I'm sure this would cause too much confusion and require manual post-processing and especially checking. I think that if Frescobaldi should insert barchecks it must be based on actual music measuring. But I'm not sure if we can come up with an approach that is reliable and versatile enough not to cause more quirks than value. |
The plan is to be able to recreate LilyPond source code from the ly.music tree representation. When that is possible I think we should also have the possibility to create templates for the coding style. That would mean in my vision that it should be possible to reflow any LilyPond document according to a personal template. And hence you wouldn't be stuck with the present code style of for example a Mutopia file. In the meantime I think some customization of the syntax could be done with the help of snippets. |
I've uploaded a simple snippet for achieving this: add barchecks snippet It is not very well tested so please report anything that seems strange.
Agreed. The script has no concept of timing and only tries to figure out if the linebreak is preceded by music or not. So it is a very blunt instrument and will...
But hopefully it can still be useful! |
There's been a discussion previously on this topic:
https://groups.google.com/forum/#!searchin/frescobaldi/bar$20check/frescobaldi/DqkAvFMyW88/llnTbXB9k1oJ
I know that the status bar can display the "progress of a bar".
What I'd like is Frescobaldi adding all the "|" for me, either while I'm typing and most importantly on an entire document already written without bar checks.
It would be useful to fix for example this kind of files:
https://github.com/chrissawer/The-Mutopia-Project/pull/389/files
I was going to suggest to use Frescobaldi to:
3rd point is the missing feature.
The text was updated successfully, but these errors were encountered: