Thank you so much for the info, Kieren.
I followed your instructions and moved the bar numbering block
    \context {      \Score      \consists "Bar_number_engraver"      
barNumberVisibility = #(every-nth-bar-number-visible 1)      \override 
BarNumber.break-visibility = #end-of-line-invisible    }
from the beginning of the score to the layout block, as in your example.
Unfortunately, I now get two bar numbers on every measure (not just the first 
one in each line)! (Is it already Monday?)


Revised snipped attached.
Karen    On Sunday, January 7, 2024 at 04:13:26 PM MST, Kieren MacMillan 
<kie...@kierenmacmillan.info> wrote:  
 
 Hi Karen,

> I need all measures numbered in this score - for some reason, the first 
> measure number in each line is being printed twice:

Just add/configure the Bar_number_engraver at the Score level — see snippet 
below.

Hope this helps!
Kieren.

% Version 1.0
% Last edit:  January 7, 2024
%
% The source code is covered by the Creative
% Commons Attribution-NonCommercial license,
% http://creativecommons.org/licenses/by-nc/2.5/
% Attribution:  Karen S. Billings CAGO
%

\version "2.22.1"
\include "english.ly"
ignore = \override NoteColumn.ignore-collision = ##t
\layout { indent = 0.0\cm }

\paper {
  #(define top-margin (* 0.5 in))
  #(define line-width (* 6.5 in))
  #(define bottom-margin (* 1.0 in))
  top-system-spacing.basic-distance = #10
  score-system-spacing.basic-distance = #10
  system-system-spacing.basic-distance = #17
  last-bottom-spacing.basic-distance = #10
  score-markup-spacing.basic-distance = #15
  ragged-bottom = ##t
}

% #(set-global-staff-size 24)

harmony = \chordmode {
  % Insert chords if needed
}
Melody = \relative c'' {
  \clef treble
  \key c \major
  \autoBeamOn
  \numericTimeSignature
  \time 4/4
  R1*4
  \bar "||" \break
  a4 a c c e, a a2
  c,4 e d c8 b a2 a2
  \bar "|."
}

Words = \lyricmode {
  _ _ _ _ _ _ _
}


UpperOne = \relative c'' {
  \clef treble
  \key c \major
  \numericTimeSignature
  \stemUp
  \time 4/4
  \repeat unfold 4 { <c a>4 <d b a> <e c a>2 }
  c4 b8 a b2 a1
  a8 b <c a>4 <b g>4 g a1
}

UpperTwo = \relative c' {
  \clef treble
  \key c \major
  \numericTimeSignature
  \stemDown
  \time 4/4
  \repeat unfold 4 { e8 e e e e2 }
  e8 e e4 d2
  c8 d e4 d2
  e8 f e4 d2
  <c e>4 d e2
}

LowerOne = \relative c' {
  \clef bass
  \key c \major
  \numericTimeSignature
  \time 4/4
  \stemUp
  a1 a a a
  a1 a a a
}
LowerTwo = {
  \clef bass
  \key c \major
  \numericTimeSignature
  \stemDown
  \time 4/4
}


\score {
  <<
    %    \new ChordNames {
    %      \set chordChanges = ##t
    %      \harmony
    %    }
    \new Staff
    \new Voice = "mel" \Melody
    \new Lyrics \lyricsto mel \Words
    \new PianoStaff <<
      \new Staff = "Upper"  <<
        \new Voice = "UpperOne" \UpperOne
        \new Voice = "UpperTwo" \UpperTwo
      >>
      \new Staff = "Lower" <<
        \new Voice = "LowerOne" \LowerOne
        \new Voice = "LowerTwo" \LowerTwo
      >>
    >>
  >>
  \layout {
    ragged-last = ##f
    ragged-right = ##f
    \context {
      \Score
      \consists "Bar_number_engraver"
      barNumberVisibility = #(every-nth-bar-number-visible 1)
      \override BarNumber.break-visibility = #end-of-line-invisible
    }
    \context {
      \Lyrics
      \override LyricSpace.minimum-distance = #0.8
      \override LyricText.font-size = #+1.2
      \override VerticalAxisGroup.minimum-Y-extent = #'(-1 . 1)
      \override VerticalAxisGroup.
      nonstaff-relatedstaff-spacing.padding = #1.5
      \override VerticalAxisGroup.
      nonstaff-unrelatedstaff-spacing.padding = #1.5
    }
  }
}

______________________________________________

My work day may look different than your work day. Please do not feel obligated 
to read or respond to this email outside of your normal working hours.

  
% Version 1.0
% Last edit:  January 7, 2024
%
% The source code is covered by the Creative
% Commons Attribution-NonCommercial license,
% http://creativecommons.org/licenses/by-nc/2.5/
% Attribution:  Karen S. Billings CAGO
%


\version "2.22.1"
\include "english.ly"
ignore = \override NoteColumn.ignore-collision = ##t
\layout { indent = 0.0\cm }

\paper {
  #(define top-margin (* 0.5 in))
  #(define line-width (* 6.5 in))
  #(define bottom-margin (* 1.0 in))
  top-system-spacing.basic-distance = #10
  score-system-spacing.basic-distance = #10
  system-system-spacing.basic-distance = #17
  last-bottom-spacing.basic-distance = #10
  score-markup-spacing.basic-distance = #15
  ragged-bottom = ##t
}

% #(set-global-staff-size 24)

harmony = \chordmode {
  % Insert chords if needed
}
Melody = \relative c'' {
  \clef treble
  \key c \major
  \autoBeamOn
  \numericTimeSignature
  \time 4/4
  R1*4
  \bar "||" \break
  a4 a c c e, a a2
  c,4 e d c8 b a2 a2
  \bar "|."
}

Words = \lyricmode {
  _ _ _ _ _ _ _
}


UpperOne = \relative c'' {
  \clef treble
  \key c \major
  \numericTimeSignature
  \stemUp
  \time 4/4
  \repeat unfold 4 { <c a>4 <d b a> <e c a>2 }
  c4 b8 a b2 a1
  a8 b <c a>4 <b g>4 g a1
}

UpperTwo = \relative c' {
  \clef treble
  \key c \major
  \numericTimeSignature
  \stemDown
  \time 4/4
  \repeat unfold 4 { e8 e e e e2 }
  e8 e e4 d2
  c8 d e4 d2
  e8 f e4 d2
  <c e>4 d e2
}

LowerOne = \relative c' {
  \clef bass
  \key c \major
  \numericTimeSignature
  \time 4/4
  \stemUp
  a1 a a a
  a1 a a a
}
LowerTwo = {
  \clef bass
  \key c \major
  \numericTimeSignature
  \stemDown
  \time 4/4
}


\score {
% Move measure numbering to layout section
% \context PianoStaff \with {
%    \consists "Bar_number_engraver"
%    barNumberVisibility = #(every-nth-bar-number-visible 1)
%    \override BarNumber.break-visibility = #end-of-line-invisible
%  }
  <<
%    \new ChordNames {
%      \set chordChanges = ##t
%      \harmony
%    }
    \new Staff
    \new Voice = "mel" \Melody
    \new Lyrics \lyricsto mel \Words
    \new PianoStaff <<
      \new Staff = "Upper"  <<
        \new Voice = "UpperOne" \UpperOne
        \new Voice = "UpperTwo" \UpperTwo
      >>
      \new Staff = "Lower" <<
        \new Voice = "LowerOne" \LowerOne
        \new Voice = "LowerTwo" \LowerTwo
      >>
    >>
  >>
  \layout {
    ragged-last = ##f
    ragged-right = ##f
    \context {
      \Score
      \consists "Bar_number_engraver"
      barNumberVisibility = #(every-nth-bar-number-visible 1)
      \override BarNumber.break-visibility = #end-of-line-invisible
    }
    \context {
      \Lyrics
      \override LyricSpace #'minimum-distance = #0.8
      \override LyricText #'font-size = #+1.2
      \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
      \override VerticalAxisGroup.
      nonstaff-relatedstaff-spacing.padding = #1.5
      \override VerticalAxisGroup.
      nonstaff-unrelatedstaff-spacing.padding = #1.5
    }
  }
}



Reply via email to