/*
- arpeggio-engraver.cc -- implement Arpeggio_engraver
+ This file is part of LilyPond, the GNU music typesetter.
- source file of the GNU LilyPond music typesetter
+ Copyright (C) 2000--2012 Jan Nieuwenhuizen <janneke@gnu.org>
- (c) 2000--2006 Jan Nieuwenhuizen <janneke@gnu.org>
+ LilyPond is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ LilyPond is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
*/
#include "engraver.hh"
#include "side-position-interface.hh"
#include "stream-event.hh"
#include "note-column.hh"
+#include "item.hh"
#include "translator.icc"
void acknowledge_stem (Grob_info);
void acknowledge_rhythmic_head (Grob_info);
- void acknowledge_note_column (Grob_info);
protected:
void process_music ();
void stop_translation_timestep ();
IMPLEMENT_TRANSLATOR_LISTENER (Arpeggio_engraver, arpeggio);
void Arpeggio_engraver::listen_arpeggio (Stream_event *ev)
{
- arpeggio_event_ = ev;
+ ASSIGN_EVENT_ONCE (arpeggio_event_, ev);
}
void
if (arpeggio_)
{
if (!arpeggio_->get_parent (Y_AXIS))
- arpeggio_->set_parent (info.grob (), Y_AXIS);
+ arpeggio_->set_parent (info.grob (), Y_AXIS);
Pointer_group_interface::add_grob (arpeggio_,
- ly_symbol2scm ("stems"),
- info.grob ());
+ ly_symbol2scm ("stems"),
+ info.grob ());
}
}
void
Side_position_interface::add_support (arpeggio_, info.grob ());
}
-void
-Arpeggio_engraver::acknowledge_note_column (Grob_info info)
-{
- if (arpeggio_)
- info.grob ()->set_object ("arpeggio", arpeggio_->self_scm ());
-}
-
void
Arpeggio_engraver::process_music ()
{
ADD_ACKNOWLEDGER (Arpeggio_engraver, stem);
ADD_ACKNOWLEDGER (Arpeggio_engraver, rhythmic_head);
-ADD_ACKNOWLEDGER (Arpeggio_engraver, note_column);
ADD_TRANSLATOR (Arpeggio_engraver,
- /* doc */ "Generate an Arpeggio symbol",
- /* create */ "Arpeggio",
- /* accept */ "arpeggio-event",
- /* read */ "",
- /* write */ "");
+ /* doc */
+ "Generate an Arpeggio symbol.",
+
+ /* create */
+ "Arpeggio",
+
+ /* read */
+ "",
+
+ /* write */
+ ""
+ );