2 musical-request.hh -- declare Musical requests
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 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 {
26 bool do_equal_b (Request const*) const;
27 void compress (Moment);
28 virtual Moment length_mom () const;
29 static int compare (Rhythmic_req const&,Rhythmic_req const&);
30 VIRTUAL_COPY_CONS(Music);
33 class Skip_req : public Rhythmic_req {
35 VIRTUAL_COPY_CONS(Music);
39 struct Tremolo_req : public Request {
40 VIRTUAL_COPY_CONS (Music);
44 int get_type () const;
49 a syllable or lyric is a string with rhythm.
51 class Lyric_req : public Rhythmic_req
54 VIRTUAL_COPY_CONS (Music);
58 class Articulation_req : public Script_req
61 String get_articulation_str();
63 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;
76 /// request which has some kind of pitch
77 struct Melodic_req :virtual Request
81 static int compare (Melodic_req const&,Melodic_req const&);
84 /// transpose. #delta# is relative to central c.
85 virtual void transpose (Pitch delta);
86 virtual bool do_equal_b (Request const*) const;
88 VIRTUAL_COPY_CONS(Music);
91 /// specify tonic of a chord
92 struct Tonic_req : public Melodic_req
94 VIRTUAL_COPY_CONS (Music);
97 /// specify inversion of a chord
98 struct Inversion_req : public Melodic_req
100 VIRTUAL_COPY_CONS (Music);
103 /// specify bass of a chord
104 struct Bass_req : public Melodic_req
106 VIRTUAL_COPY_CONS (Music);
110 Put a note of specified type, height, and with accidental on the staff.
111 /// force/supress printing of accidental.
113 /// Cautionary, i.e. parenthesized accidental.
117 class Note_req : public Rhythmic_req, virtual public Melodic_req {
123 bool do_equal_b (Request const*) const;
124 VIRTUAL_COPY_CONS(Music);
128 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.
130 class Rest_req : public Rhythmic_req {
132 VIRTUAL_COPY_CONS(Music);
137 class Extender_req : public Request {
139 VIRTUAL_COPY_CONS(Music);
143 class Hyphen_req : public Request {
145 VIRTUAL_COPY_CONS(Music);
148 /** is anyone playing a note?
149 Used for communication between Music & Lyrics
151 class Busy_playing_req : public Request
154 VIRTUAL_COPY_CONS (Music);
160 instruct lyric context to alter typesetting (unimplemented). */
161 class Melisma_req : public Span_req
164 VIRTUAL_COPY_CONS(Music);
169 Helping req to signal start of a melisma from within a context, and
171 class Melisma_playing_req : public Request
174 VIRTUAL_COPY_CONS (Music);
177 class Arpeggio_req : public Request
180 VIRTUAL_COPY_CONS (Music);
183 #endif // MUSICALREQUESTS_HH