2 musical-request.hh -- declare Musical requests
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef MUSICALREQUESTS_HH
11 #define MUSICALREQUESTS_HH
13 #include "lily-proto.hh"
15 #include "duration.hh"
19 /** a request with a duration.
20 This request is used only used as a base class.
22 class Rhythmic_req : public virtual Request {
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);
30 class Skip_req : public Rhythmic_req {
32 VIRTUAL_COPY_CONS (Music);
36 struct Tremolo_req : public Request {
37 VIRTUAL_COPY_CONS (Music);
41 struct Chord_tremolo_notify_req : public Request
44 VIRTUAL_COPY_CONS(Chord_tremolo_notify_req);
45 Chord_tremolo_notify_req();
50 a syllable or lyric is a string with rhythm.
52 class Lyric_req : public Rhythmic_req
55 VIRTUAL_COPY_CONS (Music);
59 class Articulation_req : public Script_req
62 String get_articulation_string ();
64 virtual bool do_equal_b (Request const*) const;
65 VIRTUAL_COPY_CONS (Music);
68 class Text_script_req : public Script_req
71 VIRTUAL_COPY_CONS (Music);
72 virtual bool do_equal_b (Request const*) const;
75 class String_number_req : public Script_req
78 VIRTUAL_COPY_CONS (Music);
79 virtual bool do_equal_b (Request const*) const;
82 /// request which has some kind of pitch
83 struct Melodic_req :virtual Request
85 static int compare (Melodic_req const&,Melodic_req const&);
88 virtual bool do_equal_b (Request const*) const;
90 VIRTUAL_COPY_CONS (Music);
94 Put a rest on the staff. Why a request? It might be a good idea to not typeset the rest, if the paper is too crowded.
96 class Rest_req : public Rhythmic_req {
98 VIRTUAL_COPY_CONS (Music);
103 class Extender_req : public Request {
105 VIRTUAL_COPY_CONS (Music);
109 class Hyphen_req : public Request {
111 VIRTUAL_COPY_CONS (Music);
117 instruct lyric context to alter typesetting. */
118 class Melisma_req : public Span_req
121 VIRTUAL_COPY_CONS (Music);
126 Helping req to signal start of a melisma from within a context, and
128 class Melisma_playing_req : public Request
131 VIRTUAL_COPY_CONS (Music);
134 class Arpeggio_req : public Request
137 VIRTUAL_COPY_CONS (Music);
140 class Glissando_req : public Request
143 VIRTUAL_COPY_CONS (Music);
147 #endif // MUSICALREQUESTS_HH