* input/regression/ambitus.ly: move file.
[lilypond.git] / lily / include / event.hh
blobee60c1e9e32637ca0b3f75d018e4677c8fd1d1ae
1 /*
2 event.hh -- declare Event baseclasses.
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #ifndef EVENT_HH
10 #define EVENT_HH
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"
21 /** An atom of musical information. This is an abstract class for any
22 piece of music that does not contain other Music.
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);
37 /**
38 Handle key changes.
40 class Key_change_ev : public Event
42 public:
43 SCM pitch_alist ();
45 protected:
46 VIRTUAL_COPY_CONS (Music);
47 void transpose (Pitch d);
50 SCM transpose_key_alist (SCM,SCM);
54 #endif