%token ACCEPTS
%token ADDLYRICS
+%token ADDQUOTE
%token NEWADDLYRICS
%token ALIAS
%token ALTERNATIVE
lilypond_header {
THIS->input_file_->header_ = $1;
}
+ | add_quote {
+ }
| score_block {
Score * sc = $1;
}
;
+
embedded_scm:
SCM_T
| SCM_IDENTIFIER
}
;
+add_quote:
+ ADDQUOTE string Music {
+ static SCM adder;
+ if (!adder)
+ adder = scm_c_eval_string ("add-quotable");
+
+ scm_call_2 (adder, $2, $3->self_scm ());
+ scm_gc_unprotect_object ($3->self_scm ());
+ }
+ ;
+
command_element:
command_req {
$$ = MY_MAKE_MUSIC("EventChord");
quote->set_property ("duration", $2);
quote->set_property ("quoted-events", evs);
} else {
- THIS->here_input ().warning (_f ("Can\'t find music."));
+ THIS->here_input ().warning (_f ("Can\'t find music"));
quote = MY_MAKE_MUSIC ("Event");
}
quote->set_spot (THIS->here_input ());