]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/part-combine-music.cc
* GNUmakefile.in (short-examples):
[lilypond.git] / lily / part-combine-music.cc
index 75edf8cbb849cc1ca9529ca1036e0309f0c27403..8724d8607113841323fec17b5dcf12d30d25ae70 100644 (file)
@@ -3,7 +3,7 @@
   
   source file of the GNU LilyPond music typesetter
   
-  (c) 2000--2001 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 2000--2002 Jan Nieuwenhuizen <janneke@gnu.org>
   
  */
 
@@ -50,11 +50,29 @@ Part_combine_music::compress (Moment m)
 Music*
 Part_combine_music::first_l () const
 {
-  return unsmob_music (get_mus_property ("one"));
+  SCM l = get_mus_property ("elements");
+  if (!gh_pair_p (l))
+    return 0;
+  return unsmob_music (gh_car (l));
 }
 
+
 Music*
 Part_combine_music::second_l () const
 {
-  return unsmob_music (get_mus_property ("two"));
+  SCM l = get_mus_property ("elements");
+  if (!gh_pair_p (l))
+    return 0;
+  l = gh_cdr (l);
+  if (!gh_pair_p (l))
+    return 0;
+  return unsmob_music (gh_car (l));
+}
+
+
+Part_combine_music::Part_combine_music ()
+  : Music (SCM_EOL)
+{
 }
+
+ADD_MUSIC (Part_combine_music);