2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
20 #include "engraver.hh"
23 #include "directional-element-interface.hh"
24 #include "international.hh"
25 #include "note-column.hh"
27 #include "slur-proto-engraver.hh"
29 #include "stream-event.hh"
32 #include "translator.icc"
34 class Phrasing_slur_engraver : public Slur_proto_engraver
37 void listen_phrasing_slur (Stream_event *);
38 void listen_note (Stream_event *);
39 void acknowledge_slur (Grob_info);
43 TRANSLATOR_DECLARATIONS (Phrasing_slur_engraver);
44 TRANSLATOR_INHERIT (Slur_proto_engraver);
47 Phrasing_slur_engraver::Phrasing_slur_engraver () :
48 Slur_proto_engraver (0, "PhrasingSlur", "phrasing slur", "phrasing-slur-event")
53 Phrasing_slur_engraver::event_symbol ()
55 // Need a string constant for memoization
56 return ly_symbol2scm ("phrasing-slur-event");
60 Phrasing_slur_engraver::listen_phrasing_slur (Stream_event *ev)
62 Slur_proto_engraver::listen_slur (ev);
66 Phrasing_slur_engraver::listen_note (Stream_event *ev)
68 Slur_proto_engraver::listen_note (ev);
72 Phrasing_slur_engraver::acknowledge_slur (Grob_info info)
74 acknowledge_extra_object (info);
79 Phrasing_slur_engraver::boot ()
81 ADD_LISTENER (Phrasing_slur_engraver, phrasing_slur);
82 ADD_LISTENER (Phrasing_slur_engraver, note);
83 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, inline_accidental);
84 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, fingering);
85 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, note_column);
86 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, slur);
87 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, script);
88 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, dots);
89 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, text_script);
90 ADD_END_ACKNOWLEDGER (Phrasing_slur_engraver, tie);
91 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, tuplet_number);
94 ADD_TRANSLATOR (Phrasing_slur_engraver,
96 "Print phrasing slurs. Similar to @ref{Slur_engraver}.",