Hello,

the problem seems to be that the Bar_engraver takes part in triggering the clef on the new line, so without it no clef is printed. I tried to come up with a workaround, omitting the bar lines, but it has a major drawback: it still leaves some space for the omitted bar lines, which I can’t explain nor circumvent: all the overrides I tried had no effect. Anybody else?
Some other remarks:
It might make sense to make the context modifications (\remove) in a \layout environment also, such as to get more legible code. For the same reason, always store your music in variables, as explained in the Learning Manual. And: the {} around each music line aren’t necessary.

HTH, Simon

Am 09.04.2015 um 16:49 schrieb Peter Toye:
\version "2.18.2"

\language "english"

\layout {
 ragged-right  = ##t
}

\score {

 \new Staff \with {
   \remove "Bar_number_engraver"
   \remove "Time_signature_engraver"
   \remove "Bar_engraver"

 }

 \new Voice \with {
   \remove "Stem_engraver"
 }

 \relative c {
   \key c \major
   \clef bass

   { g4_5 a_4 b_3 c_2 d_1  }
   \break

   {  g,4 a g a b a b a }
   \break

   {g4 af g af bf a bf a }

 }

}

\version "2.18.2"

\language "english"

\layout {
  ragged-right  = ##t
}

break = { \break \bar "" }

mus = \relative c {
  \key c \major
  \clef bass

  g4_5 a_4 b_3 c_2 d_1
  \break

  g,4 a g a b a b a
  \break

  g4 af g af bf a bf a
}

\score {
  \mus
  \layout {
    \context {
      \Staff
      \remove "Bar_number_engraver"
      \remove "Time_signature_engraver"
      %\remove "Bar_engraver"
      \omit BarLine
      %\override BarLine.space-alist.next-note = 0
      %\override BarLine.gap = 0
      %\override BarLine.extra-spacing-height = #'(-inf.0 . +inf.0)
      %\override BarLine.break-align-anchor = 0
    }
    \context {
      \Voice
      \remove "Stem_engraver"
    }
  }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to