lilypond-user
[Top][All Lists]
Advanced

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

Re: SpanBar and Lyrics [now also new: with Segfault]


From: James E. Bailey
Subject: Re: SpanBar and Lyrics [now also new: with Segfault]
Date: Thu, 26 Nov 2009 20:27:42 +0100


On 26.11.2009, at 16:51, Alexander Kobel wrote:
Note that the second example in the file produces a segfault for me, with 2.12.2 and 2.13.7; is this related by any chance? If so, perhaps it should go into the same bug report, otherwise it should be split. At least, someone could test on her system if it's just my fault.


While I can't say for certain, but this is probably because StaffGroup already has Span_bar_engraver, and your code attempts to add an engraver to a context that already has that engraver.

Incidentally, I see the behavior with the lyrics, and before I add it, I just wanted to see if I could get different results.
\version "2.12.2"

\score {
  <<
    \new Staff { \repeat unfold 32 { c''8 } \bar "|." }
    \new ChoirStaff <<
      \new Staff {
        \context Voice = "upper" \repeat unfold 3 { c''2 }
        \override Staff.BarLine #'allow-span-bar = ##f
        \context Voice = "upper" \repeat unfold 3 { c''2 }
        \revert Staff.BarLine #'allow-span-bar
        \context Voice = "upper" \repeat unfold 2 { c''2 }
      }
      \new Lyrics \lyricsto "upper" \lyricmode {
        %% long-syllables position should not be affected by the forbidden SpanBar
        long-syllable a b c long-syllable d long-syllable e
      }
      \new Staff \repeat unfold 8 { c''2 }
    >>
  >>
  \layout {
    \context {
      \ChoirStaff
      \consists Span_bar_engraver
    }
  }
}


James E. Bailey




reply via email to

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