Re: Begin with a staff bar at left edge

2011-09-21 Thread Janek Warchoł
2011/9/21 Neil Puttock : > 2011/9/21 Janek Warchoł : > >> So, \bar "|s" should do the trick? >> ...hmm, it doesn't work in the first measure, see: >> >> { >>  \bar "|s" s1 \break >>  \bar "|s" s1 \break >>  \bar "|s" s1 \break >> } >> >> i think it's a bug? > > Did you see the warning message?  You

Re: Begin with a staff bar at left edge

2011-09-21 Thread Neil Puttock
2011/9/21 Janek Warchoł : > So, \bar "|s" should do the trick? > ...hmm, it doesn't work in the first measure, see: > > { >  \bar "|s" s1 \break >  \bar "|s" s1 \break >  \bar "|s" s1 \break > } > > i think it's a bug? Did you see the warning message? You haven't instantiated a Staff context, so

Re: Begin with a staff bar at left edge

2011-09-21 Thread Janek Warchoł
2011/9/21 Thomas Morley : > Hi Janek, > > I don't think it's a bug, but the default behaviour. > It's possible to change with: > > \version "2.14.2" > > #(define my-bar-glyph-alist >   '(("|s" . ("|" . "|" > > #(define (my-bar-line::calc-glyph-name grob) >    (let* ((index-cell (lambda (cell di

Re: Begin with a staff bar at left edge

2011-09-21 Thread Thomas Morley
2011/9/21 Janek Warchoł > 2011/9/14 Neil Puttock : > > 2011/9/14 Janek Warchoł : > > > >> Why shouldn't it be controlled by break-visibility? > > > > See output-lib.scm, bar-glyph-alist and bar-line::calc-glyph-name. > > Ah, i see! So the barline is affected by break-visibility, but the > stenci

Re: Begin with a staff bar at left edge

2011-09-21 Thread Janek Warchoł
2011/9/14 Neil Puttock : > 2011/9/14 Janek Warchoł : > >> Why shouldn't it be controlled by break-visibility? > > See output-lib.scm, bar-glyph-alist and bar-line::calc-glyph-name. Ah, i see! So the barline is affected by break-visibility, but the stencil is empty in case of using \bar "|" at the

Re: Begin with a staff bar at left edge

2011-09-14 Thread Neil Puttock
2011/9/14 Janek Warchoł : > Why shouldn't it be controlled by break-visibility? See output-lib.scm, bar-glyph-alist and bar-line::calc-glyph-name. Cheers, Neil ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo

Re: Begin with a staff bar at left edge

2011-09-14 Thread Janek Warchoł
2011/9/14 Neil Puttock : > 2011/9/14 Janek Warchoł : > >> Interesting, shouldn't \override Staff.BarLine #'break-visibility = >> #'#(#t #t #t) solve Xavier's problem?  Should i report this as a bug? > > No.  An ordinary barline isn't allowed at the start of a system. Why shouldn't it be controlled

Re: Begin with a staff bar at left edge

2011-09-14 Thread Neil Puttock
2011/9/14 Janek Warchoł : > Interesting, shouldn't \override Staff.BarLine #'break-visibility = > #'#(#t #t #t) solve Xavier's problem?  Should i report this as a bug? No. An ordinary barline isn't allowed at the start of a system. Cheers, Neil ___ l

Re: Begin with a staff bar at left edge

2011-09-14 Thread Xavier Scheuer
On 14 September 2011 22:42, Neil Puttock wrote: > > Use a SystemStartBar instead (with collapse-height overridden). > Yeah! Thank you for this quick answer. SystemStartBar did not come into my mind! It is indeed a simple and efficient solution (I increased the thickness of SystemStartBar from #1

Re: Begin with a staff bar at left edge

2011-09-14 Thread Janek Warchoł
2011/9/14 Neil Puttock : > On 14 September 2011 21:30, Xavier Scheuer wrote: > >> What I'd like to get but I did not managed to is to begin the staff >> with a _normal bar_ ( \bar "|" ) at the left edge (because these >> measures are to be inserted in the middle of an existing [scanned] >> score).

Re: Begin with a staff bar at left edge

2011-09-14 Thread Neil Puttock
On 14 September 2011 21:30, Xavier Scheuer wrote: > What I'd like to get but I did not managed to is to begin the staff > with a _normal bar_ ( \bar "|" ) at the left edge (because these > measures are to be inserted in the middle of an existing [scanned] > score). > I tried to modify the place o

Begin with a staff bar at left edge

2011-09-14 Thread Xavier Scheuer
Hello, I'd like to add some measures (engraved thanks to LilyPond) to an existing *scanned* score. So I begin with a currentBarNumber different from 1, I remove the TimeSignature stencil at the beginning, etc. And as there are only a very small number of measures to insert I compile with -dprevie