On 2010-09-22 11:47, -Eluze wrote:
On Tue, Sep 21, 2010 at 01:31:00PM -0700, -Eluze wrote:
there is also this (quite hidden&  undocumented, but working!):

   \override Score.BarNumber #'break-visibility = #end-of-line-invisible
   \set Score.barNumberVisibility = #(modulo-bar-number-visible 2 1 )

added!

however i didn't manage to build an example where also the very first
barnumber is printed - this seems only to work when the currentBarNumber is
explicitly set to>1

%% from your mails and http://lsr.dsi.unimi.it/LSR/Item?id=592
\score {
  \new Staff {
    %% The next two lines are responsible for the first bar number
    \set Score.barNumberVisibility = #all-bar-numbers-visible
    \bar ""
    { c'4 c' c' c' }
    \set Score.barNumberVisibility = #(modulo-bar-number-visible 2 1)
    \repeat unfold 40 { c'4 c' c' c' }
  }

  \layout {
    \context {
      \Score
      \override BarNumber #'break-visibility = #end-of-line-invisible
    }
  }
}


Cheers,
Alexander

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

Reply via email to