Re: Bug in .eps output (or its interpretation?) on Linux: Ledger lines loose fill
Am 30.10.2011 03:30, schrieb Nick Payne: On 30/10/11 08:22, MarkusPfaff wrote: On my Kubuntu 11.10 system the .eps output generated from a .ly file has ledger lines that loose their fill gradually from left to right. You may see that in the attached example especially if you zoom in heavily on such a line. If I open the eps file you attached using Evince on Ubuntu 10.04, there is no problem visible with the ledger lines, nor is there any problem with a PDF generated from the eps using Acrobat Distiller on Windows. So I would say that the problem is with the viewer rather than the file itself. Nick, please try the following on your Ubuntu system: Open a new LibreOffice Writer document and drag the .eps into it (would be the same as to import it as a picture from a file). Now zoom in a lot on the ledger lines. Also interesting: Enlarge the picture in the LibreOffice Writer document (hold shift key to keep the original width/height ratio). Print the document. It seems that LibreOffice uses ghostscript to interpret .eps as well as for printing the document. If ghostscript was just a viewer I'd not have a problem. Unfortunately ghostscript plays an important role in a Linux system for conversion and printing of all .ps and .eps. I doubt it is easy to find a workaround to circumvent it on the way to a printed document. To encircle the problem a little more I've tried to generate an .eps from the same lilypond source under Windows. This file has the same behaviour: It will not show artifacts in the Win7 environment even if viewed with GSview (which uses the windows version 8.71 of ghostscript!). But on my Linux system the same semi-hollow ledger lines are there for that file again. Of course I tried it also the other way round: Using the Linux generated .eps on Windows (again GSview). Result: No artifacts. If you - happily - are not able to reproduce the problem on your system, but want to take a look at it, I have attached two .png files generated on my Linux machine: SimpleGeneratedByLilypond.png was generated adding the --png option to the lilypond command line given in my first mail and simpleConvertedByImageMagick.png which was generated using this command: convert -density 600 Simple.pdf SimpleConvertedByImageMagick.png where the .pdf was of course generated by lilypond. The high resolution .png shows the effect with high precision. Markus <><>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bug in .eps output (or its interpretation?) on Linux: Ledger lines loose fill
Installed the new ghostscript version 9.04 besides the 8.71 on my windows system and ... bingo! The bug is not there using ghostscript 8.71 but it will show up using the 9.04 version (which is the default for Ubuntu 11.10). This brings up the question wether the interpretation of the 9.04 ghostcript or the 8.71 ghostscript is correct for the file generated by Lilypond. Personally I feel a tendency to look for the error in the 9.04 ghostcript rather than in Lilypond. Has anybody an idea how to get the attention of the ghostscript developers on this problem? ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Bug in .eps output (or its interpretation?) on Linux: Ledger lines loose fill
Since the bug probably resides in ghostscript version 9.04 vs. version 8.71, but not in Lilypond I filed a bug report to bug-ghostscript (http://lists.gnu.org/archive/html/bug-ghostscript/). Markus ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Making feathered beams more variable
Hi David, 2011/10/28 Thomas Morley > Hi David, > > 2011/10/28 David Nalesnik > >> Hi Harm, >> >> (...) >> >> I tried various overrides to adjust the length of the final stem only, >> and the solution I got to work is this: >> >> xy = \once\override Stem #'french-beaming = ##t >> >> \relative c { >> \once \override Beam #'stencil = #(grow-beam-var 5) >> f32 [ \xy f''' f,,, \xy f''' f,,, \xy f''' f,,, \xy f''' f,,, \xy >> \once \override Stem #'stencil = #(lambda (grob) >> (ly:grob-set-property! grob 'length 11) >> (ly:stem::print grob)) >> f'''] >> } >> > > I changed your suggestion to a function (I've no problems using a function > in this case) and tested both: > 1. It doesn't works with "2.14.2", but with "2.15.13" there are no > problems. > Does it work with "2.14.2" for you? > 2. Using it with \change Staff doesn't work! Maybe an issue with \change > Staff? > > \version "2.15.13" > > xy = \once\override Stem #'french-beaming = ##t > > #(define ((stem-length y) grob) >(ly:grob-set-property! grob 'length y) >(ly:stem::print grob)) > > xyOut = > #(define-music-function (parser location y-length)(number?) > #{ > \once \override Stem #'stencil = #(stem-length $y-length) > #}) > > % This works > > \relative c { > \once \override Beam #'stencil = #(grow-beam-var 5) > f32 [ \xy f''' f,,, \xy f''' f,,, \xy f''' f,,, \xy f''' f,,, > \xyOut #11 > f'''] > } > > % This not. Issue in \change Staff ? > > top = \change Staff = "1" > bottom = \change Staff = "2" > > music = \relative c { > \override Beam #'auto-knee-gap = #0 > \override Beam #'stencil = #(grow-beam-var 1) > \bottom cis32[ > f > %\xyOut #0 > \once \override Stem #'stencil = #(lambda (grob) > (ly:grob-set-property! grob 'length 0) > (ly:stem::print grob)) > \top f''] > } > > \score { > \new PianoStaff << > \new Staff = "1" { > s16. > } > \new Staff = "2" { > \clef bass > \music > } > >> > } > > I added (if (ly:stencil? (ly:stem::print grob)) ... to the function (and some construction-helpers, maybe deleted). Now it works with \change Staff, too. "2.15.13" or higher is still needed. Any idea how to change to make it work with "2.14.2"? #(define ((stem-length y) grob) (if (ly:stencil? (ly:stem::print grob)) (begin (and (ly:grob-set-property! grob 'length y) (ly:grob-set-property! grob 'color red);; construction-helper, comment out! (ly:grob-set-property! grob 'layer 6);; construction-helper, comment out! ) (ly:stem::print grob)) )) xyOut = #(define-music-function (parser location y-length)(number?) #{ \once \override Stem #'stencil = #(stem-length $y-length) #}) %- Test top = \change Staff = "1" bottom = \change Staff = "2" music = \relative c { \override Beam #'auto-knee-gap = #0 %\override Beam #'stencil = #(grow-beam-var -1) \once \override Beam #'positions = #'(4.5 . 5) \bottom c32[ g' \top \xyOut #4 eis'] } \score { \new PianoStaff << \new Staff = "1" { s16. } \new Staff = "2" { \clef bass \music } >> } Best, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Automatic beaming in 2/2
Hi all. I'm transcribing a piece written in 2/2 time, but I don't like the automatic beaming that LilyPond uses when I set \time 2/2: %%% begin snippet %%% music = \relative c'' { c16 c c c c c c c c8 c16 c c8 c16 c | r8 c c c c c c c | \break } \new Staff { % good \time 4/4 \music % bad -- first measure has too many notes per beam \time 2/2 \music \time 2/2 % bad -- second measure has too few notes per beam \set baseMoment = #(ly:make-moment 1 4) \set beatStructure = #'(1 1 1 1) \music } %%% end snippet %%% I want the piece to be in 2/2 time, but with the 4/4 beamExceptions. What's the best way to do this? Thanks in advance. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Making feathered beams more variable
Hi Harm, I added (if (ly:stencil? (ly:stem::print grob)) ... to the function (and > some construction-helpers, maybe deleted). Now it works with \change Staff, > too. "2.15.13" or higher is still needed. > All you need here is a call to ly:stem::print first; there's no need to integrate it into the logic of the function. This is enough: #(define ((stem-length y) grob) (ly:stem::print grob) ; this line must be present (ly:grob-set-property! grob 'length y) (ly:stem::print grob)) This doesn't work, though: #(define ((stem-length y) grob) (let ((stencil (ly:stem::print grob))) (ly:grob-set-property! grob 'length y) stencil)) Why is this? If you or anyone reading this can explain, I'd love to hear the answer. > Any idea how to change to make it work with "2.14.2"? > I wasn't able to figure out how to use 'length on a single beamed stem with 2.14.2. However, you can use the 'stem-end-position property here. (It seems that this property is no longer available in 2.15.13.) So, in 2.14.2, this line will get you what you want: \once \override Stem #'stem-end-position = #-8 -David ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
no braces or brackets (quitar paréntesis)
I get { { f' f' f' f' } { bflat' bflat' bflat' bflat' } { f' f' f' f' } } and I would like to get { f' f' f' f' bflat' bflat' bflat' bflat' f' f' f' f' } This is the code: \version "2.14.2" \include "english.ly" musacor= \chordmode { f1:7bf:7f:7 } %%% #(define-macro (-> . expr) (define (gen-music-prop-expr music prop . rest) (let ((result-expr (if (number? prop) `(list-ref ,music ,prop) `(ly:music-property ,music ',prop (if (null? rest) result-expr (apply gen-music-prop-expr result-expr rest (apply gen-music-prop-expr expr)) %%% #(define (toma x) (let ((p (-> x elements 0 pitch)) ) (make-music 'SequentialMusic 'elements (list (make-note p (ly:make-duration 2 0)) (make-note p (ly:make-duration 2 0)) (make-note p (ly:make-duration 2 0)) (make-note p (ly:make-duration 2 0 )) %% chuchu = #(define-music-function (parser location music)(ly:music?) (music-map (lambda (x) (if (eq? 'EventChord (ly:music-property x 'name)) (toma x) x)) music) ) #(define (make-note p d) (make-music 'EventChord 'elements (list (make-music 'NoteEvent 'duration d 'pitch p)) )) \score { \displayLilyMusic \chuchu \musacor } I don't understand very well lilypond and scheme programming yet. It's not like other languages and it's difficult to debug. Thanks -- Obtengo { { f' f' f' f' } { bflat' bflat' bflat' bflat' } { f' f' f' f' } } y me gustaría conseguir { f' f' f' f' bflat' bflat' bflat' bflat' f' f' f' f' } Aún me cuesta entender scheme y lilypond. Gracias. -- View this message in context: http://old.nabble.com/no-braces-or-brackets-%28quitar-par%C3%A9ntesis%29-tp32741814p32741814.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Scores within a book in two columns
Is there a way to typeset a number of one line scores within a book in two columns? Ideally I'd like something like \book { \score {} \markup { \column { \score {} \score {} } \column { \score {} \score {} } } } but that doesn't work, at least not with 2.14. I really like to use score so I can get headers and stuff for the fragments, but if there is another, more manual way, that can work too. Thanks -- Sven Axelsson ++[>++>+++>++>++ ><-]>.+..>+.>+.<<-.>>+.>.<<. +++.>-.<<++.>>.<++.>>>++..>>.<. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Creating Musical Examples Without Meter
Ivan, To turn off time signature all together, do \set Score.timing = ##f That gets ride of time signature both visually and actually, if you want to insert barlines after that, inser them manually: \bar If you want to break a line with no barline at the end, do \bar "" \break Actually, I have a file with a set of definitions (raspev.ly) that allows you to write metreless music indefinitely with linebreaks inserted almost automatically. I will share it with you if you like. It isn't perfect in that it will also break a line between a dotted quarter and the following eighth, but it is helpful if you have long metreless pieces and you want to just type them in without worrying about line-breaks until later. J. Boor ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scores within a book in two columns
Sven Axelsson-3 wrote: > > Is there a way to typeset a number of one line scores within a book in > two columns? > > Ideally I'd like something like > > \book { > \score {} > \markup { > \column { > \score {} > \score {} > } > \column { > \score {} > \score {} > } > } > } > > but that doesn't work, at least not with 2.14. I really like to use > score so I can get headers and stuff for the fragments, but if there > is another, more manual way, that can work too. > why should this not work - see attached example http://old.nabble.com/file/p32749083/test.ly test.ly but i don't think headers inside markup scores will render. Eluze -- View this message in context: http://old.nabble.com/Scores-within-a-book-in-two-columns-tp32748682p32749083.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scores within a book in two columns
Hi Sven, 2011/10/30 Sven Axelsson > Is there a way to typeset a number of one line scores within a book in > two columns? > > Ideally I'd like something like > > \book { > \score {} > \markup { >\column { > \score {} > \score {} >} >\column { > \score {} > \score {} >} > } > } > > but that doesn't work, at least not with 2.14. I really like to use > score so I can get headers and stuff for the fragments, but if there > is another, more manual way, that can work too. > > Thanks > > -- > Sven Axelsson do you think about something like this? \version "2.14.2" myLO = \layout { line-width = 50 indent = 0 } \book { % \score { %\new Staff { R1 } %\header { piece = "Piece NULL" opus = "TACET." } %\layout { %\context { %\RemoveEmptyStaffContext %\override VerticalAxisGroup #'remove-first = ##t %} %} % } \markup { \fill-line { \null \column { \score { { \mark "Part 1" a'1 } \layout { \myLO } % this header doesn't work \header { piece = "part 1" opus = "xy" } } \score { { \mark "Part 2" b'1 } \layout { \myLO } } } \null \column { \score { { \mark "Part 3" c''1 } \layout { \myLO } } \score { { \mark "Part 4" d''1 } \layout { \myLO } } } \null } } } If you don't care about the warning comment in the first score. Regards, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
like divisioMinora, but a barline
A few versions ago, I could do this: \once \override Staff.BarLine #'extra-offset = #'(0 . 2) \once \override Staff.BarLine #'bar-size = #1 \bar "|" with a result something like the divisioMinora that's in gregorian.ly, except that mine was a barline, and therefore line-breakable. Not the #'bar-size part doesn't work anymore. Is there something that will ? JB ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: like divisioMinora, but a barline
Hi; 2011/10/30 J. Boor > A few versions ago, I could do this: > > \once \override Staff.BarLine #'extra-offset = #'(0 . 2) >\once \override Staff.BarLine #'bar-size = #1 \bar "|" > > > with a result something like the divisioMinora that's in gregorian.ly, > except that mine was a barline, and therefore line-breakable. > > Not the #'bar-size part doesn't work anymore. > > Is there something that will ? > > JB > use \once \override Staff.BarLine #'extra-offset = #'(0 . 2) \once \override Staff.BarLine #'bar-extent = #'(-3 . -1) \bar "|" instead. Cheers, Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Automatic beaming in 2/2
Hi me, 2011/10/30 me > (...) > > > I want the piece to be in 2/2 time, but with the 4/4 beamExceptions. > What's the best way to do this? > > which version? With "2.14.2" try: \version "2.14.2" \new Voice \relative c'' { \overrideTimeSignatureSettings #'(2 . 2) % timeSignatureFraction #'(1 . 4) % baseMomentFraction #'(1 1 1 1) % beatStructure #'()% beamExceptions \time 2/2 c16 c c c c c c c c8 c16 c c8 c16 c | r8 c c c c c c c | \break } -Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Scores within a book in two columns
Sven, On Sun, Oct 30, 2011 at 8:18 PM, Sven Axelsson wrote: > Is there a way to typeset a number of one line scores within a book in > two columns? > > Ideally I'd like something like > > \book { > \score {} > \markup { > \column { > \score {} > \score {} > } > \column { > \score {} > \score {} > } > } > } > > but that doesn't work, at least not with 2.14. I really like to use > score so I can get headers and stuff for the fragments, but if there > is another, more manual way, that can work too. > See http://lists.gnu.org/archive/html/lilypond-user/2011-06/msg00299.html This may be something that you could work with. Regards -- -- James ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Automatic beaming in 2/2
On 10/30/11 11:41 AM, "me" wrote: > > >I want the piece to be in 2/2 time, but with the 4/4 beamExceptions. >What's the best way to do this? Probably find the beamExceptions from 4/4 time in scm/time-signature-settings.scm and copy them into your source file. HTH, Carl ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Automatic beaming in 2/2
Hi me, sorry, should have read more carefully. Try: \version "2.14.2" music = \relative c'' { c16 c c c c c c c c8 c16 c c8 c16 c | r8 c c c c c c c | \break } \new Staff { \overrideTimeSignatureSettings #'(2 . 2) % timeSignatureFraction #'(1 . 4) % baseMomentFraction #'(2 2) % beatStructure #'( (end . ;entry for end of beams ( ;start of alist of end points ((1 . 16) . (4 4 4 4)) ;from time-signature-settings.scm )))% beamExceptions \time 4/4 \music \time 2/2 \music } -Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Making feathered beams more variable
Hi David, 2011/10/30 David Nalesnik > Hi Harm, > > I added (if (ly:stencil? (ly:stem::print grob)) ... to the function (and >> some construction-helpers, maybe deleted). Now it works with \change Staff, >> too. "2.15.13" or higher is still needed. >> > > All you need here is a call to ly:stem::print first; there's no need to > integrate it into the logic of the function. > > This is enough: > > #(define ((stem-length y) grob) >(ly:stem::print grob) ; this line must be present >(ly:grob-set-property! grob 'length y) >(ly:stem::print grob)) > > This doesn't work, though: > > #(define ((stem-length y) grob) >(let ((stencil (ly:stem::print grob))) > (ly:grob-set-property! grob 'length y) > stencil)) > Thanks to clearify this. > > Why is this? If you or anyone reading this can explain, I'd love to hear > the answer. > I've not a clue about it. > > >> Any idea how to change to make it work with "2.14.2"? >> > > I wasn't able to figure out how to use 'length on a single beamed stem > with 2.14.2. However, you can use the 'stem-end-position property here. > (It seems that this property is no longer available in 2.15.13.) So, in > 2.14.2, this line will get you what you want: > > \once \override Stem #'stem-end-position = #-8 > Works fine with "2.14.2" and \change Staff. But there is no effect in the following example. \version "2.14.2" { a'8 [ \once \override Score.Stem #'stem-end-position = #-80 a'] } Again, thanks a lot for all the work you've invested in my problems. Harm ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: Cello fingering indications
On 11-10-27 09:21 PM, Colin Campbell wrote: My cello teacher is quite insistent that I get accustomed to keeping fingers in place while I'm going between strings, so I'm asking about the best way to code that in LP. The only thing I've found is repeatCommands, as in this: %<%< \version "2.15" celloII = \relative c { \key d \major \clef bass \time 4/4 %13 d8-0 \set Score.repeatCommands = #'((volta "3")) fis-3 a-0 d-4 \set Score.repeatCommands = #'((volta #f)) a,-1 \set Score.repeatCommands = #'((volta "1")) e'-1 a-0 cis-3 \set Score.repeatCommands = #'((volta #f)) } \score { \celloII \layout {} } %<%< Surely I'm missing something less brutal than that! My instructor wants to make the held fingering explicit in many, many bars, and as long as he's waving the pencil, I'm unconcerned. When I'm running the exercise through LP to get it larger and cleaner, I'm seriously concerned, and very much open to suggestions! Further Googling gives http://lsr.dsi.unimi.it/LSR/Snippet?id=616 : %<--- stringNumberSpanner = #(define-music-function (parser location StringNumber) (string?) #{ \override TextSpanner #'style = #'solid \override TextSpanner #'font-size = #-5 \override TextSpanner #'(bound-details left stencil-align-dir-y) = #CENTER \override TextSpanner #'(bound-details left text) = \markup { \circle \number $StringNumber } #}) \relative c { \clef "treble_8" \stringNumberSpanner "5" \textSpannerDown a8\startTextSpan b c d e f\stopTextSpan \stringNumberSpanner "4" g\startTextSpan a bes4 a g2\stopTextSpan } %<--- which is closer in appearance, but I haven't the Scheme fu to modify the stringNumberSpanner function to incorporate the startTextSpan and number of notes. Ideally, one would wind up with something like a8\fSpan {"5" 4} which would extend a line for 4 of the note value of the starting note. Maybe I'll have a chance to RTFM about Extending, but for the moment, desperately in need of practice as I am, the analog pencil will have to suffice! Cheers, Colin -- I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. -Maya Angelou, poet (1928- ) ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
metrical structure
hello list, i'm trying to figure out the best way to include the metrical grid analysis using dots like in the lerdahl and jackendoff book (see image). i'm trying with \markup's, but how can i get all the dots vertically aligned? best, lj ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user
metrical structure
(this is the image...)<>___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user