]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/repeated-music.hh
1b85706da82b417d17f241ac6f780290d2ef9109
[lilypond.git] / lily / include / repeated-music.hh
1 /*   
2   repeated-music.hh -- declare Repeated_music
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1998--1999 Jan Nieuwenhuizen <janneke@gnu.org>
7   
8  */
9
10 #ifndef REPEATED_MUSIC_HH
11 #define REPEATED_MUSIC_HH
12
13 #include "music-list.hh"
14
15 /**
16    Repeats and voltas
17  */
18 class Repeated_music : public Music
19 {
20 public:
21   int repeats_i_;
22   bool unfold_b_;
23   Music* repeat_p_;
24   /*
25     UGH FIXME: this should be:
26
27     Music_list  * alternative_p_;
28    */
29   Music_sequence* alternative_p_;
30
31   Repeated_music (Music*, int n, Music_sequence*);
32   Repeated_music (Repeated_music const& s);
33   virtual ~Repeated_music ();
34   
35   virtual void do_print () const;
36   virtual void transpose (Musical_pitch p);
37   virtual Moment length_mom () const;
38   virtual Musical_pitch to_relative_octave (Musical_pitch p);
39   VIRTUAL_COPY_CONS(Music);
40 };
41
42 #endif /* REPEATED_MUSIC_HH */
43