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 bool do_equal_b (Request const*) const;
25 void compress (Moment);
26 virtual Moment length_mom () const;
27 static int compare (Rhythmic_req const&,Rhythmic_req const&);
28 VIRTUAL_COPY_CONS (Music);
31 class Skip_req : public Rhythmic_req {
33 VIRTUAL_COPY_CONS (Music);
37 struct Tremolo_req : public Request {
38 VIRTUAL_COPY_CONS (Music);
42 struct Chord_tremolo_notify_req : public Request
46 VIRTUAL_COPY_CONS(Chord_tremolo_notify_req);
47 Chord_tremolo_notify_req();
52 a syllable or lyric is a string with rhythm.
54 class Lyric_req : public Rhythmic_req
57 VIRTUAL_COPY_CONS (Music);
61 class Articulation_req : public Script_req
64 String get_articulation_string ();
66 virtual bool do_equal_b (Request const*) const;
68 VIRTUAL_COPY_CONS (Music);
71 class Text_script_req : public Script_req
74 VIRTUAL_COPY_CONS (Music);
75 virtual bool do_equal_b (Request const*) const;
79 /// request which has some kind of pitch
80 struct Melodic_req :virtual Request
82 static int compare (Melodic_req const&,Melodic_req const&);
85 virtual bool do_equal_b (Request const*) const;
87 VIRTUAL_COPY_CONS (Music);
91 Put a note of specified type, height, and with accidental on the staff.
92 /// force/supress printing of accidental.
94 /// Cautionary, i.e. parenthesized accidental.
98 class Note_req : public Rhythmic_req, virtual public Melodic_req {
104 bool do_equal_b (Request const*) const;
105 VIRTUAL_COPY_CONS (Music);
109 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.
111 class Rest_req : public Rhythmic_req {
113 VIRTUAL_COPY_CONS (Music);
118 class Extender_req : public Request {
120 VIRTUAL_COPY_CONS (Music);
124 class Hyphen_req : public Request {
126 VIRTUAL_COPY_CONS (Music);
129 /** is anyone playing a note?
130 Used for communication between Music & Lyrics
132 class Busy_playing_req : public Request
135 VIRTUAL_COPY_CONS (Music);
141 instruct lyric context to alter typesetting. */
142 class Melisma_req : public Span_req
145 VIRTUAL_COPY_CONS (Music);
150 Helping req to signal start of a melisma from within a context, and
152 class Melisma_playing_req : public Request
155 VIRTUAL_COPY_CONS (Music);
158 class Arpeggio_req : public Request
161 VIRTUAL_COPY_CONS (Music);
164 class Glissando_req : public Request
167 VIRTUAL_COPY_CONS (Music);
170 class Bass_figure_req: public Rhythmic_req
173 VIRTUAL_COPY_CONS(Music);
176 #endif // MUSICALREQUESTS_HH