Re: bar number printed above the phrase (slur) curve

2010-12-16 Thread Jan Warchoł
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


Re: bar number printed above the phrase (slur) curve

2010-12-16 Thread -Eluze


Jan Warchoł wrote:
 
 
 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?
 
 
 
using Score.BarNumber might help!
-- 
View this message in context: 
http://old.nabble.com/bar-number-printed-above-the-phrase-%28slur%29--curve-tp30449545p30471355.html
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar number printed above the phrase (slur) curve

2010-12-16 Thread MING TSANG
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 bellsring, are youlist- 'nin? In the
 lane snow isglist- 'nin'. Abeau- 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

Re: bar number printed above the phrase (slur) curve

2010-12-16 Thread Jan Warchoł
2010/12/16 -Eluze elu...@gmail.com:

 using Score.BarNumber might help!

Silly me :) of course i should have used Score.BarNumber.

So, Ming, here is the final solution: add
  \once \override Score.BarNumber #'outside-staff-priority = ##f
before every bar number that should be below the slur.

You can also use
  \once \override Score.BarNumber #'Y-offset = #insertAnumberHere
to fine-tune the bar number position.

So for example

\version 2.13.40
\relative c''{
  \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
  \stemUp \slurUp e e e( e \once \override Score.BarNumber
#'outside-staff-priority = ##f |
  c d) g, e( | f g a) b |
  c d) g, e( \once \override Score.BarNumber #'outside-staff-priority
= ##f | f g a) b |   % the small amount of slur sticking above staff
is ignored
  c d) g, e( \once \override Score.BarNumber #'outside-staff-priority
= ##f | \once \override Score.BarNumber #'Y-offset = #1.9   % the
distance in Y-offset is measured from the middle staff line!
  f g a) b |
}

Good luck!
Janek

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar number printed above the phrase (slur) curve

2010-12-16 Thread MING TSANG
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 bellsring, are youlist- 'nin? In the
 lane snow isglist- 'nin'. Abeau- 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

Re: bar number printed above the phrase (slur) curve

2010-12-16 Thread Patrick Karl

 
 Message: 1
 Date: Thu, 16 Dec 2010 09:34:54 +0100
 From: Jan Warcho? lemniskata.bernoulli...@gmail.com
 Subject: Re: bar number printed above the phrase (slur) curve
 To: MING TSANG tsan...@rogers.com
 Cc: lilypond-user lilypond-user@gnu.org
 Message-ID:
   aanlktinwhbcksuogosnjyskua3g4vpya8dgeog2si...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8
 
 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]
 
 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
 }
 
 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?

I think I get satisfactory results with:

\version 2.12.3
\relative c''{
 \override Score.BarNumber #'break-visibility = #'#(#t #t #t)
 \override Score.BarNumber #'outside-staff-priority = ##f
 \override Score.BarNumber #'Y-offset = #-2.4
 \stemUp \slurUp e e e( e | e e) e e
}


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar number printed above the phrase (slur) curve

2010-12-16 Thread Jan Warchoł
2010/12/16 MING TSANG tsan...@rogers.com:
 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?

You can use
  \override Score.BarNumber #'outside-staff-priority = ##f
(without \once) and all bar numbers will be affected, but then some
may collide with slurs or other objects. Unfortunately as far as i
know there is no way of telling LilyPond please lower the bar numbers
so they are inside slurs, but don't do this if there is not enough
space under a slur :/

cheers,
Janek

___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar number printed above the phrase (slur) curve

2010-12-15 Thread James

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.

---snip--

# -*-compilation-*-
Processing `C:/Users/jlowe/Desktop/test.ly'
Parsing...
C:/Users/jlowe/Desktop/test.ly:78:30: error: unknown escaped string: 
`\EzNum'

\new Voice = Sop  { ...

---snip---

James


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar number printed above the phrase (slur) curve

2010-12-15 Thread Jan Warchoł
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).

cheers,
Janek

2010/12/13 MING TSANG tsan...@rogers.com

 Please note the bar number #2,4,8 is printed very far from the bar line.
 Is is possible to have it printed close to the bar line?

 Below is the lilypond code:
 \version 2.13.40

 date = #(strftime %d-%m-%Y (localtime (current-time)))
 %   #(ly:set-option 'delete-intermediate-files #f)

 \header {
   title = Walking in Winter Wonderland
   subtitle = \date
 }

 \paper  {

   indent = #(* mm 0)
   line-width = #(* mm 180)
   interscoreline = 2.\mm
   between-system-space = 36\mm
   ragged-bottom = ##t
print-first-page-number = ##t

 }

 \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
   }
 AltoMusic  = \relative c' {
 \override NoteHead #'color = #blue
   }
 TenorMusic = \relative c  {
   }
 BassMusic  = \relative c  {
 \override NoteHead #'color = #red
  }

 PianoRHand = \relative c' {
  }
 PianoLHand = \relative c {
  }

 VerseOne   = \lyricmode {
 Sleigh bellsring, are youlist- 'nin? In the
 lane snow isglist- 'nin'. Abeau- 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
 }
 %VerseThree = \lyricmode { }
 %VerseFour  = \lyricmode { |




 \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.3)
 \clef treble
 \tempo 4 = 118
 \TimeKey
 \new Voice = Sop  { \EzNum \voiceOne   \SopMusic  }

  \new Lyrics \lyricsto Sop { \VerseOne   }
  \new Lyrics \lyricsto Sop { \VerseTwo   }

   
   \new Staff 
 \clef bass
 \TimeKey
 \new Voice = Tenor { \EzNum \voiceOne  \TenorMusic }
 \new Voice = Bass  { \EzNum \voiceTwo  \BassMusic  }
   
 

   
\layout {
 \context {
  \RemoveEmptyStaffContext
  \override VerticalAxisGroup #'remove-first = ##t
%{ % Draw a circle round the following bar number(s)
  \override Score.BarNumber  #'stencil
= #(make-stencil-circler 0.1 0.25 ly:text-interface::print)
 %}
 }
 \context {
 \Voice
 \consists \Ez_numbers_engraver
 }
   }
   \midi { \context { \Staff \remove Dynamic_performer } }
 }

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: bar number printed above the phrase (slur) curve

2010-12-15 Thread MING TSANG

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.

\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 bellsring, are youlist- 'nin? In the  
lane snow isglist- 'nin'. Abeau- 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.

---snip--

# -*-compilation-*-
Processing `C:/Users/jlowe/Desktop/test.ly'
Parsing...
C:/Users/jlowe/Desktop/test.ly:78:30: error: unknown escaped string: `\EzNum'
\new Voice = Sop  { ...

---snip---

James___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user