source file of the GNU LilyPond music typesetter
- (c) 2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 2000--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "engraver.hh"
class Repeat_acknowledge_engraver : public Engraver
{
public:
- VIRTUAL_COPY_CONS (Translator);
- Repeat_acknowledge_engraver();
+ TRANSLATOR_DECLARATIONS(Repeat_acknowledge_engraver);
virtual void start_translation_timestep ();
virtual void process_music ();
}
-Repeat_acknowledge_engraver::Repeat_acknowledge_engraver()
+Repeat_acknowledge_engraver::Repeat_acknowledge_engraver ()
{
}
bool volta_found = false;
while (gh_pair_p (cs))
{
- SCM command = gh_car (cs);
+ SCM command = ly_car (cs);
if (command == ly_symbol2scm ("start-repeat"))
start = true;
else if (command == ly_symbol2scm ("end-repeat"))
end = true;
- else if (gh_pair_p (command) && gh_car (command) == ly_symbol2scm ("volta"))
+ else if (gh_pair_p (command) && ly_car (command) == ly_symbol2scm ("volta"))
volta_found = true;
- cs = gh_cdr (cs);
+ cs = ly_cdr (cs);
}
- if (start && end )
+ if (start && end)
s = ":|:";
else if (start)
s = "|:";
*/
if (s != "" || (volta_found && !gh_string_p (get_property ("whichBar"))))
{
- daddy_trans_l_->set_property ("whichBar", ly_str02scm(s.ch_C()));
+ daddy_trans_l_->set_property ("whichBar", ly_str02scm (s.ch_C ()));
}
}
-ADD_THIS_TRANSLATOR(Repeat_acknowledge_engraver);
+
+ENTER_DESCRIPTION(Repeat_acknowledge_engraver,
+/* descr */ "Acknowledge repeated music, and convert the contents of
+repeatCommands ainto an appropriate setting for whichBar",
+/* creats*/ "",
+/* acks */ "",
+/* reads */ "repeatCommands whichBar",
+/* write */ "");