\version "2.18.2" \header { title = "How to add Bar Numbers?" composer = "address@hidden" } global = { \key c \major \time 4/4 } %%%%%%%%%%%%%%%%% scoreAViolinI = \relative c' { \global c4 d e f g a b a g f e d \bar "||" c d e f g a b a g f e d \bar "||" c d e f g a b a g f e d \bar "||" c d e f g a b a g f e d \bar "||" } scoreAViolinII = \relative c' { \global c4 d e f g a b a g f e d \bar "||" c d e f g a b a g f e d \bar "||" c d e f g a b a g f e d \bar "||" c d e f g a b a g f e d \bar "||" } %%%%%%%%%%%%%%%%% scoreACelloI = \relative c' { \global c4 b a g f e d c b c d e f g a b \bar "||" c4 b a g f e d c b c d e f g a b \bar "||" c4 b a g f e d c b c d e f g a b \bar "||" } scoreACelloII = \relative c' { \global c4 b a g f e d c b c d e f g a b \bar "||" c4 b a g f e d c b c d e f g a b \bar "||" c4 b a g f e d c b c d e f g a b \bar "||" } scoreAViolinIPart = \new Staff \with { instrumentName = "Violin I" midiInstrument = "violin" } \scoreAViolinI scoreAViolinIIPart = \new Staff \with { instrumentName = "Violin II" midiInstrument = "violin" } \scoreAViolinII scoreACelloIPart = \new Staff \with { instrumentName = "Cello I" midiInstrument = "Cello" } { \clef bass \scoreACelloI } scoreACelloIIPart = \new Staff \with { instrumentName = "Cello II" midiInstrument = "Cello" } { \clef bass \scoreACelloII } \score { << \new StaffGroup << \scoreAViolinIPart \scoreAViolinIIPart >> \new StaffGroup << \scoreACelloIPart \scoreACelloIIPart >> >> \layout { \context { \Score \remove "Timing_translator" \remove "Default_bar_line_engraver" } \context { \Staff \consists "Timing_translator" \consists "Default_bar_line_engraver" } } \midi { \tempo 4=100 } }