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 {
24 bool do_equal_b (Request const*) const;
25 void compress (Moment);
26 virtual Moment length_mom () const;
27 VIRTUAL_COPY_CONS(Music);
30 class Skip_req : public Rhythmic_req {
32 VIRTUAL_COPY_CONS(Music);
36 struct Tremolo_req : public Request {
37 VIRTUAL_COPY_CONS (Music);
41 int get_type () const;
46 a syllable or lyric is a string with rhythm.
48 class Lyric_req : public Rhythmic_req
51 VIRTUAL_COPY_CONS (Music);
55 class Articulation_req : public Script_req
58 String get_articulation_str();
60 virtual bool do_equal_b (Request const*) const;
62 VIRTUAL_COPY_CONS(Music);
65 class Text_script_req : public Script_req
68 VIRTUAL_COPY_CONS (Music);
69 virtual bool do_equal_b (Request const*) const;
73 /// request which has some kind of pitch
74 struct Melodic_req :virtual Request
77 /// transpose. #delta# is relative to central c.
78 virtual void transpose (Pitch delta);
79 virtual bool do_equal_b (Request const*) const;
81 VIRTUAL_COPY_CONS(Music);
86 TODO: junk these, and set
92 (chord-type . tonic/inversion/bass)
96 /// specify tonic of a chord
97 struct Tonic_req : public Melodic_req
99 VIRTUAL_COPY_CONS (Music);
102 /// specify inversion of a chord
103 struct Inversion_req : public Melodic_req
105 VIRTUAL_COPY_CONS (Music);
108 /// specify bass of a chord
109 struct Bass_req : public Melodic_req
111 VIRTUAL_COPY_CONS (Music);
115 Put a note of specified type, height, and with accidental on the staff.
117 force-accidental -- force/supress printing of accidental.
119 cautionary -- Cautionary, i.e. parenthesized accidental.
122 class Note_req : public Rhythmic_req, virtual public Melodic_req {
128 bool do_equal_b (Request const*) const;
129 VIRTUAL_COPY_CONS(Music);
133 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.
135 class Rest_req : public Rhythmic_req {
137 VIRTUAL_COPY_CONS(Music);
142 class Extender_req : public Request {
144 VIRTUAL_COPY_CONS(Music);
148 class Hyphen_req : public Request {
150 VIRTUAL_COPY_CONS(Music);
153 /** is anyone playing a note?
154 Used for communication between Music & Lyrics
156 class Busy_playing_req : public Request
159 VIRTUAL_COPY_CONS (Music);
165 instruct lyric context to alter typesetting (unimplemented). */
166 class Melisma_req : public Span_req
169 VIRTUAL_COPY_CONS(Music);
174 Helping req to signal start of a melisma from within a context, and
176 class Melisma_playing_req : public Request
179 VIRTUAL_COPY_CONS (Music);
182 class Arpeggio_req : public Request
185 VIRTUAL_COPY_CONS (Music);
188 #endif // MUSICALREQUESTS_HH