[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SpanBar and Lyrics [now also new: with Segfault]
From: |
Alexander Kobel |
Subject: |
Re: SpanBar and Lyrics [now also new: with Segfault] |
Date: |
Thu, 26 Nov 2009 17:06:04 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Alexander Kobel wrote:
Note that the second example in the file produces a segfault for me,
with 2.12.2 and 2.13.7;
Sorry for the noise, it's my fault - StaffGroup already has a
Span_bar_engraver.
Although this should not produce a segfault, but a warning, it's
certainly not related. And I'm almost certain /this/ bug is already known.
In essence, the snippet now shows that it works as expected if the
Span_bar_engraver is not in a context containing the Lyrics as a
sub-context. Don't know if this helps anything.
\version "2.13.7"
\score {
<<
\new Staff { \repeat unfold 24 { c''8 } \bar "|." }
\new ChoirStaff <<
\new Staff {
\override Staff.BarLine #'allow-span-bar = ##f
\override Staff.SpanBar #'allow-span-bar = ##f %% seems to do nothing
at all
\new Voice = "upper" \repeat unfold 6 { c''2 }
\revert Staff.BarLine #'allow-span-bar
}
\new Lyrics \lyricsto "upper" \lyricmode {
%% long-syllables position should not be affected by the forbidden
SpanBar.
long-syllable a b c long-syllable d
}
\new Staff \repeat unfold 6 { c''2 }
>>
>>
\layout {
\context {
\Score
%% Comment this out to get the expected behaviour, but - well - the
SpanBar.
\consists Span_bar_engraver
}
}
}
\score {
<<
\new StaffGroup {
<<
\new Staff { \repeat unfold 24 { c''8 } \bar "|." }
\new Staff \repeat unfold 24 { c''8 }
>>
}
\new ChoirStaff <<
\new Staff {
\new Voice = "upper" \repeat unfold 6 { c''2 }
}
\new Lyrics \lyricsto "upper" \lyricmode {
%% long-syllables position is not affected by the SpanBar in the above
StaffGroup.
%% This is the expected behaviour.
long-syllable a b c long-syllable d
}
\new Staff \repeat unfold 6 { c''2 }
>>
>>
\layout {}
}
![PNG image](png_n6YM4Lq03.png)