]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/music-sequence.hh
* Another grand 2003 update.
[lilypond.git] / lily / include / music-sequence.hh
1 /*   
2   music-sequence.hh -- declare Music_sequence
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c)  2000--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef MUSIC_SEQUENCE_HH
11 #define MUSIC_SEQUENCE_HH
12 #include "music.hh"
13 /**
14   Music can be a list of other "Music" elements
15  */
16 class Music_sequence : public Music
17 {
18 public:
19   Music_sequence (SCM h);
20   Music_sequence ();
21   SCM music_list () const;
22   void append_music (Music *);
23   VIRTUAL_COPY_CONS (Music);
24   
25   Pitch do_relative_octave (Pitch p, bool b);
26   static void transpose_list (SCM , Pitch);
27   static void compress_list (SCM, Moment);
28   
29   virtual void transpose (Pitch );
30   virtual void compress (Moment);
31
32   static Moment cumulative_length (SCM) ;
33   static Moment maximum_length (SCM) ;
34   static Moment first_start (SCM list) ;
35   static Moment minimum_start (SCM list);
36   
37 protected:
38   virtual Pitch to_relative_octave (Pitch);
39 };
40 #endif