Hi, Janek: Thank you for the solution. That means I need to tune up after the score sheet is completed for the large score.
Is there a parameter that will put the bar number just above the staff / bar line? Ming. ________________________________ From: MING TSANG <tsan...@rogers.com> To: Jan Warchoł <lemniskata.bernoulli...@gmail.com> Cc: James <james.l...@datacore.com>; lilypond-user <lilypond-user@gnu.org> Sent: Thu, December 16, 2010 8:45:55 AM Subject: Re: bar number printed above the phrase (slur) curve Hi, Janek' Thank you for your patient. I thought my sample is simple. Will remember next time. Here is the tiny example again: (with your suggestion) \version "2.13.40" \relative c''{ \override Score.BarNumber #'break-visibility = #'#(#t #t #t) \override BarNumber #'avoid-slur = #'inside \override BarNumber #'outside-staff-priority = ##f \override BarNumber #'Y-offset = #5.0 \stemUp \slurUp e e e( e | c d) g, e( | f g a) b } I include your suggestion. However bar #2 is still print outside the phrase curve far away from the staff / bar line. Bar #3 looks good even though it is above the phrase curve. What I hope to do is to make bar numbers pretty much line bar#4 all through the score. Thank you again for your help Ming. ________________________________ From: Jan Warchoł <lemniskata.bernoulli...@gmail.com> To: MING TSANG <tsan...@rogers.com> Cc: James <james.l...@datacore.com>; lilypond-user <lilypond-user@gnu.org> Sent: Thu, December 16, 2010 3:34:54 AM Subject: Re: bar number printed above the phrase (slur) curve 2010/12/16 MING TSANG <tsan...@rogers.com>: > > Is it possible to line up all bar number just above the staff / bar line, > especially bar 2, 4 and 5 which is on top of the phrase curve? > > Here is a simpler example. > [65 lines of code] Ming, you really miss the point of tiny examples. Have you read carefully the link about tiny examples that i sent you? ( http://lilypond.org/tiny-examples.html ) The code that you posted now compiles succesfully, but it is horribly long and compllicated. A proper tiny example for your question would be something like this (i wrote it in less than a minute): \version "2.13.40" \relative c''{ \override Score.BarNumber #'break-visibility = #'#(#t #t #t) \stemUp \slurUp e e e( e | e e) e e } If you don't stick to these rules, don't be surprised if no one answers your questions :( We simply value our time. (And the fact that i'm answering means that - judging by general standards in places like this list - i have extraordinary patience). Now back to the problem. I hoped that adding this \override BarNumber #'avoid-slur = #'inside \override BarNumber #'outside-staff-priority = ##f would solve it (similarly to the example in Learning Manual 4.4.3), but it doesn't. I also tried adding some Y-offset, but it doesn't work at all - a bug? see this, the bar number doesn't move at all: \version "2.13.40" \relative c''{ \override BarNumber #'Y-offset = #5.0 c c c c \break c c c c } My knowledge ends here. Can anyone wiser than me use my tiny example of Ming's problem and solve it? cheers, Janek > [Ming's code:] > > \version "2.13.40" > > \header { > title = "Walking in Winter Wonderland" > } > > #(set-global-staff-size 30) > \include "english.ly" > TimeKey = { \time 4/4 \key ef \major } > SopMusic = \relative c' { > % Draw a box round the following bar number(s) > \override Score.BarNumber #'stencil > = #(make-stencil-boxer 0.1 0.25 ly:text-interface::print) > \partial 4 > bf'8.\( bf16 \repeat volta 2 { \bar "|:" bf2^\markup {E \flat}\) > r4 bf8.\( bf16 | g8 bf4.\) r4 bf8.\( bf16 | %bar 00-02 > bf2^\markup {Fm}\) r4^\markup {Fm+5} bf8.\( bf16 | af8^\markup > {Fm7} bf4.\) r4^\markup {B\flat 7} bf4\( | d8. d16 d8 c8~ c4\) r8. c16\( > | %bar 03-05 > g8.^\markup {E\flat} gf16 f8 e8~^\markup {C7+5} e4\) r4 | > g8.^\markup {F9}\( g16 g8. g16 f8.^\markup{B\flat 7} f16 f8. f16 | } > \alternative { { ef2^\markup{E\flat}\) r4 bf'8. bf16 \bar ":|" } > %bar 06-08 > { ef,2^\markup{E\flat} r4 s4 || } } > \label #'lastPage > } > VerseOne = \lyricmode { > Sleigh bells ring, are you list- 'nin? In the > lane snow is glist- 'nin'. A beau- ti- ful sight, we're > hap- py to- night. walk- in' in a win- ter won- der- land! Gone a- > } > VerseTwo = \lyricmode { > "" "" way is the blue bird, here to stay is a > new bird He sings a love song, as we go a- long > walk- in' in a win- ter won- der "" "" "" land > } > > > \score { > \new GrandStaff = "GrandStaff_score" << > \new ChoirStaff << > \new Staff << > \override Score.BarNumber #'break-visibility = #all-visible > \override Score.BarNumber #'self-alignment-X = #0 > \override Score.BarNumber #'Y-offset = #0 > \override Score.BarNumber #'extra-offset = #'(0 . 0.1) > \clef "treble" > \tempo 4 = 118 > \TimeKey > \new Voice = "Sop" { \voiceOne \SopMusic } > \new Lyrics \lyricsto "Sop" { \VerseOne } > \new Lyrics \lyricsto "Sop" { \VerseTwo } > >> > >> > >> > \layout { > \context { > \RemoveEmptyStaffContext > \override VerticalAxisGroup #'remove-first = ##t > } > \context { > \Voice > } > } > \midi { \context { \Staff \remove "Dynamic_performer" } } > } > > > ________________________________ > From: James <james.l...@datacore.com> > To: Jan Warchoł <lemniskata.bernoulli...@gmail.com> > Cc: MING TSANG <tsan...@rogers.com>; lilypond-user@gnu.org > Sent: Wed, December 15, 2010 11:18:57 AM > Subject: Re: bar number printed above the phrase (slur) curve > > Ming > > On 15/12/2010 16:09, Jan Warchoł wrote: >> You need to create a tiny example of your problem (see >> http://lilypond.org/tiny-examples.html), or else the chance of getting >> help is (very) small. >> In my case the file failed to compile at all (i'm running latest >> development version, 2.13.43) so i don't even know if i can help you (i >> don't have the time to fix compile errors). > > Yes, I get compilation errors too.
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user