lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bar number printed above the phrase (slur) curve


From: MING TSANG
Subject: bar number printed above the phrase (slur) curve
Date: Mon, 13 Dec 2010 12:54:17 -0800 (PST)

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 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
}
%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" } }
}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]