]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/musical-request.hh
* input/trip.ly (fugaIILeft): add arpeggio
[lilypond.git] / lily / include / musical-request.hh
1 /*
2   musical-request.hh -- declare Musical requests
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef MUSICALREQUESTS_HH
11 #define MUSICALREQUESTS_HH
12
13 #include "lily-proto.hh"
14 #include "request.hh"
15 #include "duration.hh"
16 #include "pitch.hh"
17 #include "array.hh"
18
19 /** a request with a duration.
20   This request is used only used as a base class.
21  */
22 class Rhythmic_req  : public virtual Request  {
23 public:
24   void compress (Moment);
25   virtual Moment length_mom () const;
26   static int compare (Rhythmic_req const&,Rhythmic_req const&);
27   VIRTUAL_COPY_CONS (Music);
28 };
29
30
31
32 struct Tremolo_req : public Request {
33   VIRTUAL_COPY_CONS (Music);
34   Tremolo_req ();
35 };
36
37 struct Chord_tremolo_notify_req : public Request
38 {
39   Rational factor_;
40   VIRTUAL_COPY_CONS(Chord_tremolo_notify_req);
41   Chord_tremolo_notify_req();
42 };
43
44
45 /**
46    a syllable or lyric is a string with rhythm.
47   */
48 class Lyric_req : public Rhythmic_req
49 {
50 protected:
51   VIRTUAL_COPY_CONS (Music);
52 };
53
54
55 class Articulation_req : public Script_req
56 {
57 public:
58   String get_articulation_string ();
59 protected:
60   virtual bool do_equal_b (Request const*) const;
61   VIRTUAL_COPY_CONS (Music);
62 };
63
64 class Text_script_req : public Script_req
65 {
66 protected:
67   VIRTUAL_COPY_CONS (Music);
68   virtual bool do_equal_b (Request const*) const;
69 };
70
71 /// request which has some kind of pitch
72 struct Melodic_req :virtual Request
73 {
74   static int compare (Melodic_req const&,Melodic_req const&);
75   
76 protected:
77   virtual bool do_equal_b (Request const*) const;
78
79   VIRTUAL_COPY_CONS (Music);
80 };
81
82
83
84 #endif // MUSICALREQUESTS_HH