2 commandrequest.cc -- implement Nonmusical reqs
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
9 #include "commandrequest.hh"
11 #include "musicalrequest.hh"
15 Cadenza_req::do_print()const
20 Cadenza_req::Cadenza_req(bool b
)
28 Bar_req::compare(const Bar_req
&c1
)const
30 return type_str_
== c1
.type_str_
;
34 Bar_req::do_print() const
39 Bar_req::Bar_req(String s
)
44 Partial_measure_req::Partial_measure_req(Moment m
)
49 Meter_change_req::Meter_change_req()
55 Meter_change_req::set(int b
,int o
)
62 Timing_req::do_print()const{}
65 Command_req::do_print()const{}
68 Barcheck_req::do_print() const{}
72 Clef_change_req::do_print() const
77 Clef_change_req::Clef_change_req(String s
)
83 Group_feature_req::do_print() const
85 mtor
<< "stemdir " << stemdir_i_
;
88 Group_feature_req::Group_feature_req()
94 Group_change_req::do_print()const
96 mtor
<< "id : " << newgroup_str_
;
100 Terminate_voice_req::do_print()const
104 /* *************** */
106 Partial_measure_req::do_print() const
112 Meter_change_req::do_print() const
114 mtor
<< beats_i_
<< "*" << one_beat_i_
;
117 /* *************** */
120 Measure_grouping_req::do_print() const
122 for (int i
=0; i
< elt_length_arr_
.size(); i
++) {
123 mtor
<< beat_i_arr_
[i
] <<"*" << elt_length_arr_
[i
]<<" ";
126 /* *************** */
128 Key_change_req::do_print() const
130 for (int i
=0; i
< melodic_p_arr_
.size(); i
++) {
131 melodic_p_arr_
[i
]->print();
135 Key_change_req::Key_change_req()
138 Key_change_req::Key_change_req(Key_change_req
const&c
)
140 for (int i
=0; i
< c
.melodic_p_arr_
.size(); i
++) {
141 melodic_p_arr_
.push( c
.melodic_p_arr_
[i
]->clone()->melodic() );
145 Key_change_req::~Key_change_req()
147 for (int i
=0; i
< melodic_p_arr_
.size(); i
++)
148 delete melodic_p_arr_
[i
];