]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/music-sequence.hh
(class Music): include SCM init argument.
[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--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef MUSIC_SEQUENCE_HH
11 #define MUSIC_SEQUENCE_HH
12
13 #include "music.hh"
14
15 class Music_sequence : public Music
16 {
17 public:
18   Music_sequence (SCM h);
19   VIRTUAL_COPY_CONSTRUCTOR (Music, Music_sequence);
20   DECLARE_SCHEME_CALLBACK(cumulative_length_callback, (SCM));
21   DECLARE_SCHEME_CALLBACK(maximum_length_callback, (SCM));
22   SCM music_list () const;
23   
24   Pitch do_relative_octave (Pitch p, bool b);
25   
26   static Moment cumulative_length (SCM) ;
27   static Moment maximum_length (SCM) ;
28   static Moment first_start (SCM list) ;
29   static Moment minimum_start (SCM list);
30 };
31
32 Pitch music_list_to_relative (SCM l,Pitch p, bool ret_first);
33 void transpose_music_list (SCM , Pitch);
34 void compress_music_list (SCM, Moment);
35
36 #endif