Spanner * finished_cresc_p_;
Spanner * cresc_p_;
- Dynamic_script_req* script_req_l_;
+ Text_script_req* script_req_l_;
Span_req * current_cresc_req_;
Drul_array<Span_req*> accepted_spanreqs_drul_;
bool
Dynamic_engraver::do_try_music (Music * m)
{
- if (Dynamic_script_req* d = dynamic_cast <Dynamic_script_req*> (m))
+ if (dynamic_cast <Text_script_req*> (m)
+ && m->get_mus_property ("text-type") == ly_symbol2scm ("dynamic"))
{
- script_req_l_ = d;
+ script_req_l_ = dynamic_cast<Text_script_req*> (m);
return true;
}
else if (Span_req* s = dynamic_cast <Span_req*> (m))
Axis_group_interface::set_interface (line_spanner_);
Axis_group_interface::set_axes (line_spanner_, Y_AXIS, Y_AXIS);
- Request * rq = accepted_spanreqs_drul_[START];
- if (script_req_l_) rq = script_req_l_ ;
+ Music * rq = accepted_spanreqs_drul_[START];
+ if (script_req_l_)
+ rq = script_req_l_ ;
announce_element (line_spanner_, rq);