- SCM voice_name = get_music ()->get_property ("associated-context");
-
- if (gh_string_p (voice_name))
- {
- Context *t = get_outlet ();
- while (t && t->daddy_context_)
- t = t->daddy_context_;
-
- String name = ly_scm2string (voice_name);
- Context *voice = find_context_below (t, "Voice", name);
- if (!voice)
- get_music ()->origin ()->warning (_f ("cannot find Voice: %s",
- name.to_str0 ()) + "\n");
- else
- music_context_ = voice;
-
- }
+ /*
+ (spaghettini).
+
+ Need to set associatedVoiceContext again
+ */
+ if (music_context_)
+ made_association_ = false;
+
+ Context *t = get_outlet ();
+ while (t && t->get_parent_context ())
+ t = t->get_parent_context ();
+
+ String name = ly_scm2string (voice_name);
+ Context *voice = find_context_below (t, ly_symbol2scm ("Voice"), name);
+
+ if (voice)
+ music_context_ = voice;