/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1999--2009 Michael Krause
+ Copyright (C) 1999--2015 Michael Krause
written for the GNU LilyPond music typesetter
TODO:
- . Cancel any beams running through the breathing sign
- ([e8 \breathe f e f] should become [e8] \breathe [f e f])
. Spacing is not yet completely pretty
LilyPond is free software: you can redistribute it and/or modify
void process_music ();
void stop_translation_timestep ();
- DECLARE_TRANSLATOR_LISTENER (breathing);
+ void listen_breathing (Stream_event *);
private:
Stream_event *breathing_sign_event_;
Grob *breathing_sign_;
};
-Breathing_sign_engraver::Breathing_sign_engraver ()
+Breathing_sign_engraver::Breathing_sign_engraver (Context *c)
+ : Engraver (c)
{
breathing_sign_ = 0;
breathing_sign_event_ = 0;
}
-IMPLEMENT_TRANSLATOR_LISTENER (Breathing_sign_engraver, breathing);
void
Breathing_sign_engraver::listen_breathing (Stream_event *ev)
{
breathing_sign_event_ = 0;
}
+void
+Breathing_sign_engraver::boot ()
+{
+ ADD_LISTENER (Breathing_sign_engraver, breathing);
+}
+
ADD_TRANSLATOR (Breathing_sign_engraver,
- /* doc */
- "Create a breathing sign.",
+ /* doc */
+ "Create a breathing sign.",
- /* create */
- "BreathingSign ",
+ /* create */
+ "BreathingSign ",
- /* read */
- "",
+ /* read */
+ "",
- /* write */
- ""
- );
+ /* write */
+ ""
+ );