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);
92 Put a note of specified type, height, and with accidental on the staff.
93 /// force/supress printing of accidental.
95 /// Cautionary, i.e. parenthesized accidental.
99 class Note_req : public Rhythmic_req, virtual public Melodic_req {
105 bool do_equal_b (Request const*) const;
106 VIRTUAL_COPY_CONS(Music);
110 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.
112 class Rest_req : public Rhythmic_req {
114 VIRTUAL_COPY_CONS(Music);
119 class Extender_req : public Request {
121 VIRTUAL_COPY_CONS(Music);
125 class Hyphen_req : public Request {
127 VIRTUAL_COPY_CONS(Music);
130 /** is anyone playing a note?
131 Used for communication between Music & Lyrics
133 class Busy_playing_req : public Request
136 VIRTUAL_COPY_CONS (Music);
142 instruct lyric context to alter typesetting (unimplemented). */
143 class Melisma_req : public Span_req
146 VIRTUAL_COPY_CONS(Music);
151 Helping req to signal start of a melisma from within a context, and
153 class Melisma_playing_req : public Request
156 VIRTUAL_COPY_CONS (Music);
159 class Arpeggio_req : public Request
162 VIRTUAL_COPY_CONS (Music);
165 #endif // MUSICALREQUESTS_HH