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 "slur-engraver.hh"
22 #include "translator.icc"
24 class Phrasing_slur_engraver : public Slur_engraver
26 virtual SCM event_symbol () const;
27 virtual bool double_property () const;
28 virtual SCM grob_symbol () const;
29 virtual const char* object_name () const;
30 virtual void set_melisma (bool);
33 TRANSLATOR_DECLARATIONS (Phrasing_slur_engraver);
34 TRANSLATOR_INHERIT (Slur_engraver);
38 Phrasing_slur_engraver::event_symbol () const
40 return ly_symbol2scm ("phrasing-slur-event");
44 Phrasing_slur_engraver::double_property () const
50 Phrasing_slur_engraver::grob_symbol () const
52 return ly_symbol2scm ("PhrasingSlur");
56 Phrasing_slur_engraver::object_name () const
58 return "phrasing slur";
61 Phrasing_slur_engraver::Phrasing_slur_engraver ()
66 Phrasing_slur_engraver::set_melisma (bool)
71 Phrasing_slur_engraver::boot ()
73 ADD_LISTENER_FOR (Phrasing_slur_engraver, slur, phrasing_slur);
74 ADD_LISTENER (Phrasing_slur_engraver, note);
75 ADD_ACKNOWLEDGER_FOR (Phrasing_slur_engraver, extra_object, inline_accidental);
76 ADD_ACKNOWLEDGER_FOR (Phrasing_slur_engraver, extra_object, fingering);
77 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, note_column);
78 ADD_ACKNOWLEDGER_FOR (Phrasing_slur_engraver, extra_object, slur);
79 ADD_ACKNOWLEDGER (Phrasing_slur_engraver, script);
80 ADD_ACKNOWLEDGER_FOR (Phrasing_slur_engraver, extra_object, dots);
81 ADD_ACKNOWLEDGER_FOR (Phrasing_slur_engraver, extra_object, text_script);
82 ADD_END_ACKNOWLEDGER_FOR (Phrasing_slur_engraver, extra_object, tie);
83 ADD_ACKNOWLEDGER_FOR (Phrasing_slur_engraver, extra_object, tuplet_number);
86 ADD_TRANSLATOR (Phrasing_slur_engraver,
88 "Print phrasing slurs. Similar to @ref{Slur_engraver}.",