X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformer-group.cc;h=9e71c6e7629c4ec817db3ca75bbea04fa337832c;hb=9f3572d98bb948c9689cd1f75401a029451fa001;hp=d1696dac748317318eff66cef0731852ad1dd8d0;hpb=04265f11d1f21416ccebd2dcaa1d903dc781b36e;p=lilypond.git diff --git a/lily/performer-group.cc b/lily/performer-group.cc index d1696dac74..9e71c6e762 100644 --- a/lily/performer-group.cc +++ b/lily/performer-group.cc @@ -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 (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 (c->implementation ()); + return pgp->get_tempo (); + } + return 60; +} +