X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformer.cc;h=d6ea9bd4d9bdd5a6432fbeb2577b1b7692daf563;hb=refs%2Fheads%2Fdebian;hp=7add5ba193149b478ba252f285cfe89032f66f30;hpb=474c8729dc274a30558102a015a01fa5882673db;p=lilypond.git diff --git a/lily/performer.cc b/lily/performer.cc index 7add5ba193..d6ea9bd4d9 100644 --- a/lily/performer.cc +++ b/lily/performer.cc @@ -1,17 +1,28 @@ /* - performer.cc -- implement Performer + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter - - (c) 1996--2007 Han-Wen Nienhuys + Copyright (C) 1996--2012 Han-Wen Nienhuys Jan Nieuwenhuizen + + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "context.hh" +#include "performer.hh" #include "performer-group.hh" #include "warn.hh" - Performer_group * Performer::get_daddy_performer () const { @@ -37,3 +48,9 @@ Performer::announce_element (Audio_element_info i) get_daddy_performer ()->announce_element (i); } + +Performer * +unsmob_performer (SCM perf) +{ + return dynamic_cast (unsmob_translator (perf)); +}