X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Frepeated-music.hh;h=e84b1d2fbc8e9f1be45439e644cc8b587d6bb52b;hb=9ce63beb6e98dfda72259406ae5a19f48cd9b6af;hp=b2deaee08fa4446f23769b0a9aff0c97aebfcf8b;hpb=4975901229a1b074f6c93d812e15d653aa8e2952;p=lilypond.git diff --git a/lily/include/repeated-music.hh b/lily/include/repeated-music.hh index b2deaee08f..e84b1d2fbc 100644 --- a/lily/include/repeated-music.hh +++ b/lily/include/repeated-music.hh @@ -3,12 +3,12 @@ source file of the GNU LilyPond music typesetter - (c) 1999--2000 Han-Wen Nienhuys + (c) 1999--2004 Han-Wen Nienhuys */ -#ifndef RepEATED_MUSIC_HH -#define RepEATED_MUSIC_HH +#ifndef REPEATED_MUSIC_HH +#define REPEATED_MUSIC_HH #include "music.hh" @@ -49,30 +49,27 @@ class Repeated_music : public Music { public: - Music * body () const; - Music_sequence * alternatives () const; + Repeated_music (); + Repeated_music (SCM); + VIRTUAL_COPY_CONSTRUCTOR (Music, Repeated_music); - /// how often do we repeat? - int repeat_count( ) const; - virtual Pitch to_relative_octave (Pitch); - - Moment body_length_mom () const; - Moment alternatives_length_mom (bool fold) const; + Music *body () const; + SCM alternatives () const; - DECLARE_SCHEME_CALLBACK(unfolded_music_length, (SCM)); - DECLARE_SCHEME_CALLBACK(volta_music_length, (SCM)); - DECLARE_SCHEME_CALLBACK(folded_music_length, (SCM)); - - /// Transpose, with the interval central C to #p# - virtual void transpose (Pitch p); + /* How often do we repeat? */ + int repeat_count () const; + virtual Pitch to_relative_octave (Pitch); - /// Scale the music in time by #factor#. - virtual void compress (Moment factor); - VIRTUAL_COPY_CONS(Music); + Moment body_get_length () const; + Moment alternatives_get_length (bool fold) const; + Moment alternatives_volta_get_length () const; - Repeated_music (Music*, int , Music_sequence*); - Repeated_music (Repeated_music const&); + DECLARE_SCHEME_CALLBACK (unfolded_music_length, (SCM)); + DECLARE_SCHEME_CALLBACK (volta_music_length, (SCM)); + DECLARE_SCHEME_CALLBACK (folded_music_length, (SCM)); + DECLARE_SCHEME_CALLBACK (minimum_start, (SCM)); + DECLARE_SCHEME_CALLBACK (first_start, (SCM)); }; -#endif /* RepEATED_MUSIC_HH */ +#endif /* REPEATED_MUSIC_HH */