]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/event.hh
47864b2e56dcce2a9af242efe1909ed4b00216ed
[lilypond.git] / lily / include / event.hh
1 /*
2   event.hh -- declare Event baseclasses.
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #ifndef EVENT_HH
10 #define EVENT_HH
11
12
13 #include "string.hh"
14 #include "moment.hh"
15 #include "virtual-methods.hh"
16 #include "input.hh"
17 #include "music.hh"
18 #include "duration.hh"
19 #include "pitch.hh"
20
21 /** An atom of musical information.  This is an abstract class for any
22   piece of music that does not contain other Music.
23   
24
25  */
26 class Event : public Music {
27 public:
28   Event ();
29   VIRTUAL_COPY_CONS (Music);
30   virtual void compress (Moment);
31   virtual void transpose (Pitch);
32   virtual Moment get_length () const;
33   virtual Pitch to_relative_octave (Pitch);
34 };
35
36
37 /**
38     Handle key changes.
39 */
40 class Key_change_ev  : public Event
41 {
42 public:
43   SCM pitch_alist ();
44   
45 protected:
46   VIRTUAL_COPY_CONS (Music);
47   void transpose (Pitch  d);
48 };
49
50 SCM ly_transpose_key_alist (SCM,SCM);
51
52
53
54 #endif