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;
78 class String_number_req : public Script_req
81 VIRTUAL_COPY_CONS (Music);
82 virtual bool do_equal_b (Request const*) const;
85 /// request which has some kind of pitch
86 struct Melodic_req :virtual Request
88 static int compare (Melodic_req const&,Melodic_req const&);
91 virtual bool do_equal_b (Request const*) const;
93 VIRTUAL_COPY_CONS (Music);
97 Put a note of specified type, height, and with accidental on the staff.
98 /// force/supress printing of accidental.
100 /// Cautionary, i.e. parenthesized accidental.
104 class Note_req : public Rhythmic_req, virtual public Melodic_req {
110 bool do_equal_b (Request const*) const;
111 VIRTUAL_COPY_CONS (Music);
115 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.
117 class Rest_req : public Rhythmic_req {
119 VIRTUAL_COPY_CONS (Music);
124 class Extender_req : public Request {
126 VIRTUAL_COPY_CONS (Music);
130 class Hyphen_req : public Request {
132 VIRTUAL_COPY_CONS (Music);
135 /** is anyone playing a note?
136 Used for communication between Music & Lyrics
138 class Busy_playing_req : public Request
141 VIRTUAL_COPY_CONS (Music);
147 instruct lyric context to alter typesetting. */
148 class Melisma_req : public Span_req
151 VIRTUAL_COPY_CONS (Music);
156 Helping req to signal start of a melisma from within a context, and
158 class Melisma_playing_req : public Request
161 VIRTUAL_COPY_CONS (Music);
164 class Arpeggio_req : public Request
167 VIRTUAL_COPY_CONS (Music);
170 class Glissando_req : public Request
173 VIRTUAL_COPY_CONS (Music);
176 class Bass_figure_req: public Rhythmic_req
179 VIRTUAL_COPY_CONS(Music);
182 #endif // MUSICALREQUESTS_HH