]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lyric-phrasing-engraver.cc
* ly/engraver-init.ly (AncientRemoveEmptyStaffContext): move
[lilypond.git] / lily / lyric-phrasing-engraver.cc
index b7e5f75ff799bea576f36715b217001a01411dfe..f33a10de35e8523e395b03c4aa2340e73eaf31d1 100644 (file)
@@ -91,6 +91,12 @@ Lyric_phrasing_engraver::get_phrasing_assoc (String nm)
 String
 Lyric_phrasing_engraver::get_voice_name_for_lyric (Translator_group*tr)
 {
+  SCM voice_context = tr->get_property ("associatedVoiceContext");
+  if (Translator *vc = unsmob_translator (voice_context))
+    {
+      return dynamic_cast<Translator_group*> (vc)->id_string_;
+    }
+  
   SCM voice = tr->get_property ("associatedVoice");
   String nm = tr->id_string_;
   if (gh_string_p (voice))