In case that the lyrics name is "", don't go looking for an associated
voice.
--- /dev/null
+
+\header {
+
+ texidoc = "When lyrics are not associated with specific voices, the
+ lyric placement should follow lyric rhythms. In particular, the
+ second syllable here should not be attached to the first note of the first staff."
+
+}
+
+
+\version "2.11.40"
+\layout { ragged-right = ##t }
+
+\score {
+ \context ChoirStaff <<
+ \context Staff = soprano <<
+ \context Voice = sop \relative c' { e2 e4 }
+ >>
+ \context Staff = alto <<
+ \context Voice = alt \relative c' { e4 e4 e4 }
+ \new Lyrics \lyricmode {
+ do4 re4 me4
+ }
+ >>
+ >>
+}
if (scm_is_string (voice_name))
nm = ly_scm2string (voice_name);
+ else if (nm == "")
+ {
+ return 0;
+ }
else
{
ssize idx = nm.rfind ('-');
if (text_)
{
Context *voice = get_voice_to_lyrics (context ());
-
+
if (voice)
{
Grob *head = get_current_note_head (voice);