#include "context.hh"
#include "international.hh"
#include "note-column.hh"
+#include "item.hh"
#include "side-position-interface.hh"
#include "staff-symbol.hh"
#include "text-interface.hh"
/*
Create Volta spanners, by reading repeatCommands property, usually
- set by Unfolded_repeat_iterator.
+ set by Volta_repeat_iterator.
*/
class Volta_engraver : public Engraver
{
TRANSLATOR_DECLARATIONS (Volta_engraver);
protected:
+ DECLARE_END_ACKNOWLEDGER (staff_symbol);
DECLARE_ACKNOWLEDGER (staff_symbol);
DECLARE_ACKNOWLEDGER (note_column);
DECLARE_ACKNOWLEDGER (bar_line);
Volta_bracket_interface::add_bar (end_volta_span_, i.item ());
}
+void
+Volta_engraver::acknowledge_end_staff_symbol (Grob_info i)
+{
+ if (i.grob ()->self_scm () == staff_)
+ staff_ = SCM_EOL;
+}
+
void
Volta_engraver::acknowledge_staff_symbol (Grob_info i)
{
staff_ = i.grob ()->self_scm ();
}
+
void
Volta_engraver::finalize ()
{
TODO: should attach volta to paper-column if no bar is found.
*/
ADD_ACKNOWLEDGER (Volta_engraver, staff_symbol);
+ADD_END_ACKNOWLEDGER (Volta_engraver, staff_symbol);
ADD_ACKNOWLEDGER (Volta_engraver, note_column);
ADD_ACKNOWLEDGER (Volta_engraver, bar_line);
ADD_TRANSLATOR (Volta_engraver,
/* doc */ "Make volta brackets.",
/* create */ "VoltaBracket",
- /* accept */ "",
/* read */ "repeatCommands voltaSpannerDuration stavesFound",
/* write */ "");