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/>.
21 #include "slur-proto-engraver.hh"
23 #include "translator.icc"
25 class Slur_engraver : public Slur_proto_engraver
27 virtual void set_melisma (bool);
31 TRANSLATOR_DECLARATIONS (Slur_engraver);
32 TRANSLATOR_INHERIT (Slur_proto_engraver);
35 Slur_engraver::Slur_engraver () :
36 Slur_proto_engraver ("doubleSlurs", "Slur", "slur", "slur-event")
41 Slur_engraver::event_symbol ()
43 // Need a string constant for memoization
44 return ly_symbol2scm ("slur-event");
48 Slur_engraver::set_melisma (bool m)
50 context ()->set_property ("slurMelismaBusy", ly_bool2scm (m));
54 Slur_engraver::boot ()
56 ADD_LISTENER (Slur_engraver, slur);
57 ADD_LISTENER (Slur_engraver, note);
58 ADD_ACKNOWLEDGER (Slur_engraver, inline_accidental);
59 ADD_ACKNOWLEDGER (Slur_engraver, fingering);
60 ADD_ACKNOWLEDGER (Slur_engraver, note_column);
61 ADD_ACKNOWLEDGER (Slur_engraver, script);
62 ADD_ACKNOWLEDGER (Slur_engraver, text_script);
63 ADD_ACKNOWLEDGER (Slur_engraver, dots);
64 ADD_END_ACKNOWLEDGER (Slur_engraver, tie);
65 ADD_ACKNOWLEDGER (Slur_engraver, tuplet_number);
68 ADD_TRANSLATOR (Slur_engraver,
70 "Build slur grobs from slur events.",