X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fmusic.hh;h=b0f48371048a50bc6f4a3d953d89fc20828a88da;hb=9578677bb2b3929964e8cc2c906df5c98b8a50c4;hp=9f244081d32c3994ca9eda68d90774d666d36552;hpb=7f3f0083f89d87c5ed0422858e9648fc759e98a4;p=lilypond.git diff --git a/lily/include/music.hh b/lily/include/music.hh index 9f244081d3..b0f4837104 100644 --- a/lily/include/music.hh +++ b/lily/include/music.hh @@ -1,9 +1,20 @@ /* - music.hh -- declare Music + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 1997--2012 Han-Wen Nienhuys - (c) 1997--2008 Han-Wen Nienhuys + 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 . */ #ifndef MUSIC_HH @@ -13,6 +24,7 @@ #include "moment.hh" #include "pitch.hh" #include "prob.hh" +#include "context.hh" #define is_mus_type(x) internal_is_music_type (ly_symbol2scm (x)) @@ -28,7 +40,7 @@ public: bool internal_is_music_type (SCM) const; - Stream_event *to_event () const; + Stream_event *to_event (Context *) const; DECLARE_SCHEME_CALLBACK (relative_callback, (SCM, SCM)); Pitch to_relative_octave (Pitch); @@ -42,12 +54,12 @@ public: /// Scale the music in time by #factor#. void compress (Moment factor); - + // Broadcast the event in a context's event-source. void send_to_context (Context *c); DECLARE_SCHEME_CALLBACK (duration_length_callback, (SCM)); - + protected: virtual SCM copy_mutable_properties () const; virtual void type_check_assignment (SCM, SCM) const;