Re: insert whitespace to fill line
- Original Message - From: Dave dl.mcnam...@comcast.net To: lilypond-user@gnu.org Sent: Sunday, January 12, 2014 4:01 AM Subject: insert whitespace to fill line I'm trying to make music-snippet images using lilypond, but I'd like each snippet to always have trailing whitespace so that each of these images is of the same width. Ultimately, these images will be embedded in an emacs-org file (I am aware of lilypond-book). I'm following the suggestions from the documentation, so I have a .ly file something like: \paper{ indent=0\mm line-width=120\mm oddFooterMarkup=##f oddHeaderMarkup=##f bookTitleMarkup = ##f scoreTitleMarkup = ##f } \relative c' { c4 d e f | g a b c } % I'd like to insert whitespace to fill line here and compile it using 'lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts --png test.ly' and it produces a file that is 241 pixels wide. If I make the snippet three bars, e.g. with c4 d e f | g a b c | c b a g, I get a file that is 335 pixels wide. Ultimately, I'm going to insert these images into a document, and I'd like to be able to use the same width for all of the images, and have the staff/notes be the same size. I don't want to key off of the height of the images (which is the same in this case), because some of the snippets will span multiple lines. I don't want to pad with s1's since the empty bars will be distracting. Is there a way to pad the line with whitespace to that the produced files have the same width? ragged-right= ##t -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: insert whitespace to fill line
2014/1/12 Dave dl.mcnam...@comcast.net: Is there a way to pad the line with whitespace to that the produced files have the same width? I'm not sure if i understood correctly, but maybe you should change paper size instead of line-width, and don't use automatic image cropping? j ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: insert whitespace to fill line
Janek Warchoł janek.lilyp...@gmail.com schrieb: 2014/1/12 Dave dl.mcnam...@comcast.net: Is there a way to pad the line with whitespace to that the produced files have the same width? I'm not sure if i understood correctly, but maybe you should change paper size instead of line-width, and don't use automatic image cropping? I think the issue was that oneline snippets by default are ragged, so he has to use fixed linewidth (as he does) plus add ragged = ##f (as someone suggested) j ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user -- Urs Liska openlilylib.org ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: insert whitespace to fill line
Thanks for the suggestions, but still no luck. I've tried both settings for ragged-right; neither work. setting ragged-right=##f makes the systems stretch to fill the whole line; I do not like the way that this looks for, for example, a two-bar item. (setting it to true gives the behaviour indicated in the original post). setting paper-size instead of line-width does not seem to have an effect. Janek: how do I turn off automatic image cropping? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: insert whitespace to fill line
Hi David, do you mean without streching? You can set the width of the StaffSymbol to a fixed one. Is that what you want? \version 2.18.0 \layout { \override Staff.StaffSymbol #'width = 70 } { a } { a b a b a b a b } But please be aware, that if the content is longer than 'width', the staffsymbol stops nonetheless. \paper{ line-width = … } has to be adjusted to prevent this. HTH, Joram ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: insert whitespace to fill line
- Original Message - From: Dave dl.mcnam...@comcast.net To: lilypond-user@gnu.org Sent: Sunday, January 12, 2014 5:50 PM Subject: Re: insert whitespace to fill line Thanks for the suggestions, but still no luck. I've tried both settings for ragged-right; neither work. setting ragged-right=##f makes the systems stretch to fill the whole line; I do not like the way that this looks for, for example, a two-bar item. (setting it to true gives the behaviour indicated in the original post). setting paper-size instead of line-width does not seem to have an effect. Janek: how do I turn off automatic image cropping? I'm not aware of automatic image cropping, unless you're using the preview setting. I'd misunderstood earlier. If you use paper-width in you paper block, you'll control the size of the output image. -- Phil Holmes ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: insert whitespace to fill line
2014/1/12 Dave dl.mcnam...@comcast.net: Janek: how do I turn off automatic image cropping? I thought you were using the 'preview' option, which crops output. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
insert whitespace to fill line
I'm trying to make music-snippet images using lilypond, but I'd like each snippet to always have trailing whitespace so that each of these images is of the same width. Ultimately, these images will be embedded in an emacs-org file (I am aware of lilypond-book). I'm following the suggestions from the documentation, so I have a .ly file something like: \paper{ indent=0\mm line-width=120\mm oddFooterMarkup=##f oddHeaderMarkup=##f bookTitleMarkup = ##f scoreTitleMarkup = ##f } \relative c' { c4 d e f | g a b c } % I'd like to insert whitespace to fill line here and compile it using 'lilypond -dbackend=eps -dno-gs-load-fonts -dinclude-eps-fonts --png test.ly' and it produces a file that is 241 pixels wide. If I make the snippet three bars, e.g. with c4 d e f | g a b c | c b a g, I get a file that is 335 pixels wide. Ultimately, I'm going to insert these images into a document, and I'd like to be able to use the same width for all of the images, and have the staff/notes be the same size. I don't want to key off of the height of the images (which is the same in this case), because some of the snippets will span multiple lines. I don't want to pad with s1's since the empty bars will be distracting. Is there a way to pad the line with whitespace to that the produced files have the same width? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user