/*
- accidental-engraver.cc -- implement Accidental_engraver
+ This file is part of LilyPond, the GNU music typesetter.
- source file of the GNU LilyPond music typesetter
-
- (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 1997--2010 Han-Wen Nienhuys <hanwen@xs4all.nl>
Modified 2001--2002 by Rune Zedeler <rz@daimi.au.dk>
+
+ 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 "accidental-placement.hh"
void stop_translation_timestep ();
void process_acknowledged ();
-
+
virtual void finalize ();
virtual void derived_mark () const;
bool cautionary = to_boolean (note->get_property ("cautionary"));
if (caut.score () > acc.score ())
{
- acc.need_acc |= caut.need_acc;
- acc.need_restore |= caut.need_restore;
+ acc.need_acc |= caut.need_acc;
+ acc.need_restore |= caut.need_restore;
cautionary = true;
}
*/
if (!note->in_event_class ("trill-span-event"))
{
- if (acc.need_acc)
+ if (acc.need_acc)
create_accidental (&accidentals_[i], acc.need_restore, cautionary);
if (forced || cautionary)
Accidental_placement::add_accidental (accidental_placement_, a);
note_head->set_object ("accidental-grob", a->self_scm ());
-
+
return a;
}
}
for (vsize i = accidentals_.size (); i--;)
- {
+ {
Stream_event *note = accidentals_[i].melodic_;
Context *origin = accidentals_[i].origin_;
else
{
/*
- not really really correct if there is more than one
+ not really correct if there is more than one
note head with the same notename.
*/
localsig = ly_assoc_prepend_x (localsig, key,
accidental_placement_ = 0;
accidentals_.clear ();
+ note_columns_.clear ();
left_objects_.clear ();
right_objects_.clear ();
}