2 musical-request.hh -- declare Musical requests
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2001 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 int get_type () const;
47 a syllable or lyric is a string with rhythm.
49 class Lyric_req : public Rhythmic_req
52 VIRTUAL_COPY_CONS (Music);
56 class Articulation_req : public Script_req
59 String get_articulation_str ();
61 virtual bool do_equal_b (Request const*) const;
63 VIRTUAL_COPY_CONS (Music);
66 class Text_script_req : public Script_req
69 VIRTUAL_COPY_CONS (Music);
70 virtual bool do_equal_b (Request const*) const;
74 /// request which has some kind of pitch
75 struct Melodic_req :virtual Request
77 static int compare (Melodic_req const&,Melodic_req const&);
80 virtual bool do_equal_b (Request const*) const;
82 VIRTUAL_COPY_CONS (Music);
86 Put a note of specified type, height, and with accidental on the staff.
87 /// force/supress printing of accidental.
89 /// Cautionary, i.e. parenthesized accidental.
93 class Note_req : public Rhythmic_req, virtual public Melodic_req {
99 bool do_equal_b (Request const*) const;
100 VIRTUAL_COPY_CONS (Music);
104 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.
106 class Rest_req : public Rhythmic_req {
108 VIRTUAL_COPY_CONS (Music);
113 class Extender_req : public Request {
115 VIRTUAL_COPY_CONS (Music);
119 class Hyphen_req : public Request {
121 VIRTUAL_COPY_CONS (Music);
124 /** is anyone playing a note?
125 Used for communication between Music & Lyrics
127 class Busy_playing_req : public Request
130 VIRTUAL_COPY_CONS (Music);
136 instruct lyric context to alter typesetting (unimplemented). */
137 class Melisma_req : public Span_req
140 VIRTUAL_COPY_CONS (Music);
145 Helping req to signal start of a melisma from within a context, and
147 class Melisma_playing_req : public Request
150 VIRTUAL_COPY_CONS (Music);
153 class Arpeggio_req : public Request
156 VIRTUAL_COPY_CONS (Music);
159 class Glissando_req : public Request
162 VIRTUAL_COPY_CONS (Music);
165 #endif // MUSICALREQUESTS_HH