]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/performer-group.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / performer-group.cc
index d1696dac748317318eff66cef0731852ad1dd8d0..9e71c6e7629c4ec817db3ca75bbea04fa337832c 100644 (file)
@@ -84,3 +84,27 @@ Performer_group::do_announces ()
       announce_infos_.clear ();
     }
 }
+
+void
+Performer_group::play_element (Audio_element *e)
+{
+  Context *c = context_->get_parent_context ();
+  if (c)
+    {
+      Performer_group *pgp = dynamic_cast<Performer_group *> (c->implementation ());
+      pgp->play_element (e);
+    }
+}
+
+int
+Performer_group::get_tempo () const
+{
+  Context *c = context_->get_parent_context ();
+  if (c)
+    {
+      Performer_group *pgp = dynamic_cast<Performer_group *> (c->implementation ());
+      return pgp->get_tempo ();
+    }
+  return 60;
+}
+