Space after barline before first chord notes
In my large score, at one point there is a very large gap between a span bar/barline and the chords in the bar, which have lots of accidentals (dodecaphonic style). I would prefer to be able to move the chords left closer to the barline. I have made an MWE to illustrate. In the score with the line break where the bars are spread out, lilypond moves the chords away from the barline, and in my original context, far too much, much more than here. In the score with no break, the positioning is fine. I have experimented with space-alist values to no avail. Pointers to how to control this spacing issue would be most appreciated. Andrew == snip \version "2.19.54" treble = { \clef treble \time 1/4 c'4 \clef bass 1 \break c'4 c' } bass = { \clef bass \time 1/4 c4 1 | c4 c } \score { \new PianoStaff << \new Staff \treble \new Staff \bass >> \layout { \Score \accidentalStyle Score.dodecaphonic } } trebleTwo = { \clef treble \time 1/4 c'4 \clef bass 1 c'4 %\break c' } \score { \new PianoStaff << \new Staff \trebleTwo \new Staff \bass >> \layout { \Score \accidentalStyle Score.dodecaphonic } } == snip ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: export as image (png)
On Sat 21 Jan 2017 at 12:05:38 (-0700), LodewijkDV wrote: > Thanks, it works like a charm now! > Trimming the PNG worked also, but the output was a bit blurry. Using > Frescobaldi (which also works now) I changed the DPI, so it's pixel perfect > now ;) I would say rather, "it's pixel perfect—for now". The problem is that PNG is a raster format so if you're using them for a variety of things like "lessons, tests and theory overviews", you might keep running into this problem. For web pages, fine, but I would use PDFs if you can, as they can be rescaled as much as you like without becoming blurred. Cheers, David. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Warning about beam slope configuration
On 21.01.2017 21:46, David Sumbler wrote: could somebody explain to me what the warning actually means, and what I would need to do to stop it appearing? It signifies problem in the calculation of beam slope. I get it all the time with kneed beams, even when the printed result is perfectly satisfactory. If it isn’t, something like { 8-\offset positions #'(10 . -10) [ 8] } might help. And in case the warning is the only problem: insert this at top level #(ly:expect-warning "no viable") The warning will be suppressed, and you’ll get a warning if there is no warning anymore to be suppressed. Best, Simon ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Warning about beam slope configuration
\version "2.19.48" global = { \key e \minor \time 2/4 } \score { << \new StaffGroup << \new Staff { \global r4 b''16( ais'' b'' b''') } \new Staff { \clef "tenor" \global b16( ais b e') dis'( b fis) r } >> \new Staff { { \clef "bass" \global b8 e' b4 } \addlyrics { \lyricmode { la, la, la. } } } \new PianoStaff << \new Staff = "RH" { { \global b'16 ais' g' b r4 } } \new Staff = "LH" { \clef "bass" \global r4 b,16 fis b \change Staff = RH dis' \change Staff = LH } >> >> } The above compiles satisfactorily. However, for some unknown reason, that bar throws out a warning when the whole file from which it is taken is compiled. I get: warning: no viable initial configuration found: may not find good beam slope r4 b,16 fis b \change Staff = RH dis' \change Staff = LH Also the beam of the offending group of notes is printed above the lower-staff notes and below the upper-staff note, rather than below all 4 notes as it is in the above extract with the bar taken in isolation. Presumably something that has gone earlier in the score has somehow upset things, although I cannot imagine what it could be. Before I start taking the file apart to find out what earlier feature is causing the problem, could somebody explain to me what the warning actually means, and what I would need to do to stop it appearing? David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: export as image (png)
Thanks, it works like a charm now! Trimming the PNG worked also, but the output was a bit blurry. Using Frescobaldi (which also works now) I changed the DPI, so it's pixel perfect now ;) -- View this message in context: http://lilypond.1069038.n5.nabble.com/export-as-image-png-tp199426p199432.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: export as image (png)
> On 21 Jan 2017, at 18:32, Lodewijk de Vries wrote: > > Hans, I'd could use some help getting the right papersize, when this issue is > solved. Thanks! > > - Lodewijk > Looked a bit more into it…. and found that there is an easier way than tweaking the papersize (which does generate a bunch of intermediate files alongside the PNG that you’re after…. but at least it gives you a cleanly trimmed png): Just include \include "lilypond-book-preamble.ly” at the top of your lilypond file. So e.g. = \include "lilypond-book-preamble.ly" \relative c'' { c2 d='4 d e2 f } === It yields a png trimmed to exactly the music that was present in your file regards, Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: export as image (png)
> On 21 Jan 2017, at 18:32, Lodewijk de Vries wrote: > > Thanks both for your response. > > I installed Frescobaldi already, and I got the same error as I got through > the terminal, as Hans said. The error in dutch: > > Converteren naar PNG...dyld: Library not loaded: > ./bin/../sobin/libgs.8.70.dylib > > Referenced from: /Applications/Lilypond.app/Contents/Resources/bin/../bin/gs > Reason: image not found > fatale fout: GS sloot af met status 5 > > Meaning: converting to PNG...dyld (etc.) > Fatal error: GS aborted with status 5. > > Both in Frescobaldi (using custom engrave) as in the Terminal turned out in > this error. Any idea how I can solve this? > Lodewijk, did a quick google and found that this is an error of the Lilypond 2.18.2 binary… https://lists.gnu.org/archive/html/bug-lilypond/2015-11/msg00045.html On my system I added Lilypond 2.18.2 (I usually use the unstable versions); got the same error and validated that the given solution makes 2.18.2 work fine again. regards, Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: export as image (png)
Thanks both for your response. I installed Frescobaldi already, and I got the same error as I got through the terminal, as Hans said. The error in dutch: Converteren naar PNG...dyld: Library not loaded: ./bin/../sobin/libgs.8.70.dylib Referenced from: /Applications/Lilypond.app/Contents/Resources/bin/../bin/gs Reason: image not found fatale fout: GS sloot af met status 5 Meaning: converting to PNG...dyld (etc.) Fatal error: GS aborted with status 5. Both in Frescobaldi (using custom engrave) as in the Terminal turned out in this error. Any idea how I can solve this? Also: thanks SoundsfromSound for your videos, I'm sure they'll be of great help. Hans, I'd could use some help getting the right papersize, when this issue is solved. Thanks! - Lodewijk Op za 21 jan. 2017 om 17:48 schreef SoundsFromSound < soundsfromso...@gmail.com>: > Lodewijk de Vries wrote > > But: I don't know how to create the PNG files. I've done some research, > > and > > I found out that it can be done through use of the command line. I never > > used the command line (or the terminal), so guess I'm stuck there. > > > > Can someone explain to me what to do, in order to create small notation > > snippets, like in the handbook? Currently I'm using LilyPond on my > Macbook > > (OS X). > > > > Thanks! > > - Lodewijk > > > > ___ > > lilypond-user mailing list > > > lilypond-user@ > > > https://lists.gnu.org/mailman/listinfo/lilypond-user > > Hello, > > I believe this should help you: > > lilypond -fpng filename.ly > > (see here: > > http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond > ) > > Also, if you decide to use Frescobaldi, there is an easy export PNG > selection option via a click and drag interface if you end up needing a lot > of PNG files, it may be easier for you. > > Video tutorial here: https://www.youtube.com/watch?v=jzXrKwOw_7Q. > (it shows Windows OS but you should be able to use this on OS X as well) > > Hope this helps you. > > > > > - > composer | sound designer | asmr artist > LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond > -- > View this message in context: > http://lilypond.1069038.n5.nabble.com/export-as-image-png-tp199426p199427.html > Sent from the User mailing list archive at Nabble.com. > > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: export as image (png)
> On 21 Jan 2017, at 17:31, Lodewijk de Vries wrote: > > Hi there, > > I'm a music teacher, and I'd like to use LilyPond to create music notation > examples, to use them in lessons, tests and theory overviews. Pretty much > like the graphic examples in the LilyPond handbook, > http://lilypond.org/doc/v2.18/Documentation/5f/lily-9dc23fce.png for example. > > But: I don't know how to create the PNG files. I've done some research, and I > found out that it can be done through use of the command line. I never used > the command line (or the terminal), so guess I'm stuck there. > > Can someone explain to me what to do, in order to create small notation > snippets, like in the handbook? Currently I'm using LilyPond on my Macbook > (OS X). > > Thanks! > - Lodewijk > ___ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user Lodewijk, assuming that you installed Lilypond within /Applications like any regular Mac OS application (drag-and-drop to the Applications). The procedure for getting a PNG would be: - Open the Terminal app - cd to the folder that contains your Lilypond file (assuming you filed it somewhere inside Documents it would be done using cd ~/Documents/your/deeper/folders - from there start the lilypond executable with the proper commandline options: /Applications/Lilypond.app/Contents/Resources/bin/lilypond -fpng yourLIlypondFile.ly In order to get such small snippets you would also have to optimize the papersize in your snippet (or use post-processing with a graphics application to cut away the superfluous unused paper from the image) If you need help on that part as well I would be happy to help you there as well. Just let me know. regards, Hans ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: export as image (png)
Lodewijk de Vries wrote > But: I don't know how to create the PNG files. I've done some research, > and > I found out that it can be done through use of the command line. I never > used the command line (or the terminal), so guess I'm stuck there. > > Can someone explain to me what to do, in order to create small notation > snippets, like in the handbook? Currently I'm using LilyPond on my Macbook > (OS X). > > Thanks! > - Lodewijk > > ___ > lilypond-user mailing list > lilypond-user@ > https://lists.gnu.org/mailman/listinfo/lilypond-user Hello, I believe this should help you: lilypond -fpng filename.ly (see here: http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond ) Also, if you decide to use Frescobaldi, there is an easy export PNG selection option via a click and drag interface if you end up needing a lot of PNG files, it may be easier for you. Video tutorial here: https://www.youtube.com/watch?v=jzXrKwOw_7Q. (it shows Windows OS but you should be able to use this on OS X as well) Hope this helps you. - composer | sound designer | asmr artist LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond -- View this message in context: http://lilypond.1069038.n5.nabble.com/export-as-image-png-tp199426p199427.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
export as image (png)
Hi there, I'm a music teacher, and I'd like to use LilyPond to create music notation examples, to use them in lessons, tests and theory overviews. Pretty much like the graphic examples in the LilyPond handbook, http://lilypond.org/doc/v2.18/Documentation/5f/lily-9dc23fce.png for example. But: I don't know how to create the PNG files. I've done some research, and I found out that it can be done through use of the command line. I never used the command line (or the terminal), so guess I'm stuck there. Can someone explain to me what to do, in order to create small notation snippets, like in the handbook? Currently I'm using LilyPond on my Macbook (OS X). Thanks! - Lodewijk ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: How can I get a repeat symbol in the chord names part of lead sheet?
Thanks, i have the same bug in this message and my answer : \version "2.18.2" chordNames = \chordmode { \repeat percent 2 { c1:7 } \repeat percent 4 { f4 } } melody = \relative c'' { \repeat percent 2 { c1 } \repeat percent 4 { c4 } } \score { << \new ChordNames \chordNames \new Staff { \melody } >> \layout { \context { \ChordNames \consists "Percent_repeat_engraver" \consists "Slash_repeat_engraver" \override RepeatSlash.extra-offset = #'(0 . 1) \override PercentRepeat.extra-offset = #'(0 . 1) } } } -- View this message in context: http://lilypond.1069038.n5.nabble.com/Re-How-can-I-get-a-repeat-symbol-in-the-chord-names-part-of-lead-sheet-tp199418p199425.html Sent from the User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OOoLilyPond
Klaus Blum wrote Saturday, January 21, 2017 11:54 AM > In addition, my knowledge about collaboration with git repositories is > absolutely zero, but I'm always open to learn. Can anyone recommend a > good introduction for Windows users? A fairly basic introduction is here: http://lilypond.org/doc/v2.19/Documentation/contributor/git-on-windows Trevor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OOoLilyPond
Hi Klaus, Git is cross platform, so unless you want specifically some Windows GUI front ends, it's good to read up in the core git functionality, as it applies universally on any platform. Here is a good free online book: https://git-scm.com/book/en/v2 Using github and the like - they are just interfaces over core git, and github for example has extensive online help about github specific features. The UNIX man pages for git are clear and helpful, and even include git tutorials, and summary pages of the 20% of commands you use 80% of the time. [They don't put it like that, but you know what I mean.] Andrew On 21 January 2017 at 22:54, Klaus Blum wrote: > > In addition, my knowledge about collaboration with git repositories is > absolutely zero, but I'm always open to learn. Can anyone recommend a > good introduction for Windows users? > > ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: OOoLilyPond
...Done some homework again... ;-) Here is another take on updating OOoLilyPond. It contains some more additions: * font name and font size for editor windows can be specified * user now can choose between two different ways to import graphic into document (methods from 0.4.0 and 0.4.1rc1). and, of course, the additions already contained in rc1: * fixed: Runtime error - Variable not defined: line 40 CurserPosition=1 * additional include paths can be specified * added button to save the current code into temporary file and open it in external editor * added button to re-import code from temporary file back to editor window * added support for the use of SVG graphics format (with the known restrictions) In the attachment, there is also a readme file with more detailed information. I'v done some testing with the attached version, but certainly not in an exhaustive way... ;-) If there is (or will be) a collaboration to further develop OOoLilyPond, I'm gladly willing to join in. However, I have no idea of the python language, so I could never do a re-write from scratch on my own. In addition, my knowledge about collaboration with git repositories is absolutely zero, but I'm always open to learn. Can anyone recommend a good introduction for Windows users? Cheers, Klaus OOoLilyPond-0.4.2rc4.oxt Description: application/vnd.openofficeorg.extension OooLilyPond 0.4.2rc4 ReadMe (January 2017) === This release is based on the two most recent versions that have been published by the original developer Samuel Hartmann. Version 0.4.0: --- http://ooolilypond.sourceforge.net/ https://sourceforge.net/projects/ooolilypond/ http://extensions.openoffice.org/de/project/ooolilypond (direct download:) https://downloads.sourceforge.net/project/ooolilypond/ooolilypond/OOoLilyPond-0.4.0/OOoLilyPond-0.4.0.oxt?r=&ts=1484832348&use_mirror=netix Version 0.4.1rc1: -- https://sourceforge.net/p/ooolilypond/discussion/614285/thread/d200563d/#52fd/5aef (direct download:) http://www.hartmann-weine.ch/OOoLilyPond-0.4.1rc1.oxt On the LilyPond mailing list, there are some considerations to continue the OOoLilyPond project. You can follow the discussion here: http://lilypond.1069038.n5.nabble.com/OOoLilyPond-td185560.html Changes to OOoLilyPond 0.4.2rc4 since 0.4.0/0.4.1: === * fixed: Runtime error - Variable not defined: line 40 CurserPosition=1 * additional include paths can be specified * added button to save the current code into temporary file and open it in external editor * added button to re-import code from temporary file back to editor window * added support for the use of SVG graphics format * user now can choose between two different ways to import graphic into document * font name and font size for editor windows can be specified 1.) fixed: Runtime error - Variable not defined: line 40 CurserPosition=1 -- Apparently, a small bug in OOoLilyPond prevented the correct error handling, if the expected graphics file (produced by LilyPond) could not be found. Instead, the macro stopped with the mentioned runtime error. This has now been fixed. Up to LilyPond 2.18, both an EPS file and a PNG file were present if LilyPond had been executed in PNG format. In LilyPond 2.19, this seems to have changed, only a PNG file is produced. Unfortunatly, OOoLilyPond always checked for the presence of an EPS file and stopped if there was none. This now has been changed as well: Whatever format is chosen (EPS, PNG or SVG), OOoLilyPond checks if the corresponding graphics file is present. 2.) Additional include paths can be specified -- In the configuration dialog, there is a text field where you can specify statements for additional include paths. Its entire contents is literally passed to LilyPond as a parameter. It can simply be left empty, or it can contain one or multiple include path definitions (i.e. the -I parameter) as described here: http://lilypond.org/doc/v2.18/Documentation/usage/command_002dline-usage#basic-command-line-options-for-lilypond for example: -I"C:/Users/Klaus/" -I"C:/Program Files (x86)/" (Even in Windows, LilyPond expects the paths given with forward slashes instead of backward slashes. OOoLilyPond will adapt the path statements, if necessary.) 3.) Save the current code into temporary file / re-import code from temporary file - Working in the small editor window can be somewhat cumbersome. However, it only contains the portion of the code between the %{OOoLilyPondCode%} and %{OOoLilyPondEnd%} tags. Copying its contents into an external editor like Frescobaldi is possible, but compiling will not always lead to sensible results, because ever