2004-01-10 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/*.cc: remove superfluous start_translation_timestep() calls.
+
* lily/translator-group.cc (get_simple_trans_list):
new function; construct simple_trans_list_ lazily.
virtual bool try_music (Music *req);
virtual void process_acknowledged_grobs ();
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
private:
Music * breathing_sign_req_;
typeset_grob (breathing_sign_);
breathing_sign_ = 0;
}
-}
-
-void
-Breathing_sign_engraver::start_translation_timestep ()
-{
breathing_sign_req_ = 0;
}
protected:
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
virtual void process_music ();
virtual void acknowledge_grob (Grob_info);
private:
}
}
-void
-Clef_engraver::start_translation_timestep ()
-{
-}
-
ENTER_DESCRIPTION(Clef_engraver,
{
public:
TRANSLATOR_DECLARATIONS( Custos_engraver);
- virtual void start_translation_timestep ();
virtual void acknowledge_grob (Grob_info);
virtual void process_acknowledged_grobs ();
virtual void stop_translation_timestep ();
void
Custos_engraver::stop_translation_timestep ()
-{
- /*
- delay typeset until we're at the next moment, so we can silence custodes at the end of the piece.
- */
-}
-
-void
-Custos_engraver::start_translation_timestep ()
{
for (int i = custodes_.size (); i--;)
{
typeset_grob (custodes_[i]);
}
- custodes_.clear ();
- pitches_.clear ();
+ /*
+ delay clear until we're at the next moment, so we can silence
+ custodes at the end of the piece.
+ */
+ pitches_.clear ();
custos_permitted = false;
}
for (int i = custodes_.size (); i--;)
{
custodes_[i]->suicide ();
- typeset_grob (custodes_[i]);
}
custodes_.clear ();
}
virtual bool try_music (Music *req);
virtual void stop_translation_timestep ();
virtual void process_music ();
- virtual void start_translation_timestep ();
};
accepted_spanreqs_drul_[STOP] = 0;
}
-void
-Dynamic_engraver::start_translation_timestep ()
-{
- script_ev_ = 0;
- accepted_spanreqs_drul_[START] = 0;
- accepted_spanreqs_drul_[STOP] = 0;
-}
-
bool
Dynamic_engraver::try_music (Music * m)
{
line_spanner_ =0;
typeset_all ();
}
+
+ script_ev_ = 0;
+ accepted_spanreqs_drul_[START] = 0;
+ accepted_spanreqs_drul_[STOP] = 0;
}
void
virtual void finalize ();
virtual bool try_music (Music*);
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
virtual void process_music ();
private:
if (extender_)
finished_extender_ = extender_;
extender_ = 0;
-}
-void
-Extender_engraver::start_translation_timestep ()
-{
ev_ = 0;
}
+
ENTER_DESCRIPTION(Extender_engraver,
/* descr */ "Create lyric extenders",
/* creats*/ "LyricExtender",
}
void
-Gregorian_ligature_engraver::start_translation_timestep ()
+Gregorian_ligature_engraver::stop_translation_timestep ()
{
- Ligature_engraver::start_translation_timestep ();
+ Ligature_engraver::stop_translation_timestep ();
pes_or_flexa_req_ = 0;
}
int push_count_;
virtual bool try_music(Music*);
- virtual void start_translation_timestep ();
virtual void stop_translation_timestep ();
virtual void process_music ();
virtual void acknowledge_grob (Grob_info);
push_count_ = 0;
}
-void
-Horizontal_bracket_engraver::start_translation_timestep()
-{
- pop_count_ = 0;
- push_count_ = 0;
-}
bool
Horizontal_bracket_engraver::try_music (Music *m)
if (bracket_stack_.size())
typeset_grob (bracket_stack_.pop());
}
+ pop_count_ = 0;
+ push_count_ = 0;
}
virtual void finalize ();
virtual bool try_music (Music*);
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
virtual void process_acknowledged_grobs ();
private:
last_lyric_ = current_lyric_;
current_lyric_ =0;
}
-}
-
-void
-Hyphen_engraver::start_translation_timestep ()
-{
req_ = 0;
}
}
}
-void
-Ligature_engraver::start_translation_timestep ()
-{
- reqs_drul_[START] = 0;
- reqs_drul_[STOP] = 0;
-}
-
void
Ligature_engraver::typeset_ligature (Spanner *, Array<Grob_info>)
{
finished_primitives_.clear ();
finished_ligature_ = 0;
}
+
+ reqs_drul_[START] = 0;
+ reqs_drul_[STOP] = 0;
}
void
virtual void stop_translation_timestep ();
virtual bool try_music (Music *);
virtual void process_music ();
- virtual void start_translation_timestep ();
public:
TRANSLATOR_DECLARATIONS(Lyric_engraver);
typeset_grob (text_);
text_ =0;
}
-}
-
-void
-Lyric_engraver::start_translation_timestep ()
-{
req_ =0;
}
virtual void acknowledge_grob (Grob_info);
void create_items (Music*);
virtual bool try_music (Music *req);
- virtual void start_translation_timestep ();
virtual void process_music ();
private:
typeset_grob (text_);
text_ =0;
}
+ mark_req_ = 0;
}
}
-void
-Mark_engraver::start_translation_timestep ()
-{
- mark_req_ = 0;
-}
-
-
bool
Mark_engraver::try_music (Music* r)
{
typeset_grob (text_);
text_ =0;
}
+ mark_req_ = 0;
}
announce_grob(text_, rq->self_scm());
}
-void
-Metronome_mark_engraver::start_translation_timestep ()
-{
- mark_req_ = 0;
-}
bool
Metronome_mark_engraver::try_music (Music* r)
virtual void finalize ();
virtual bool try_music (Music*);
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
virtual void acknowledge_grob (Grob_info);
virtual void process_music ();
}
typeset_all ();
+
+ for (Pedal_info*p = info_list_; p->name_; p ++)
+ {
+ p->event_drul_[STOP] = 0;
+ p->event_drul_[START] = 0;
+ }
}
}
}
-void
-Piano_pedal_engraver::start_translation_timestep ()
-{
- for (Pedal_info*p = info_list_; p->name_; p ++)
- {
- p->event_drul_[STOP] = 0;
- p->event_drul_[START] = 0;
- }
-}
-
ENTER_DESCRIPTION (Piano_pedal_engraver,
/* descr */ "Engrave piano pedal symbols and brackets.",
/* creats*/ "SostenutoPedal SustainPedal UnaCordaPedal SostenutoPedalLineSpanner SustainPedalLineSpanner UnaCordaPedalLineSpanner",
virtual void acknowledge_grob (Grob_info);
virtual void process_acknowledged_grobs ();
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
};
last_spacing_ = spacing_;
spacing_ =0;
}
-}
-
-void
-Rhythmic_column_engraver::start_translation_timestep ()
-{
+
dotcol_ =0;
stem_ =0;
}
virtual void acknowledge_grob (Grob_info);
virtual void process_acknowledged_grobs ();
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
};
typeset_grob (scol_);
scol_ =0;
}
-}
-
-void
-Script_column_engraver::start_translation_timestep ()
-{
scripts_.clear ();
-
}
void
protected:
virtual bool try_music (Music*);
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
virtual void process_music ();
virtual void acknowledge_grob (Grob_info);
};
scripts_.clear ();
}
-void
-Script_engraver::start_translation_timestep ()
-{
- scripts_.clear ();
-}
-
Script_engraver::Script_engraver(){}
typeset_grob (end_slurs_[i]);
}
end_slurs_.clear ();
-}
-
-void
-Slur_engraver::start_translation_timestep ()
-{
new_slur_evs_.clear ();
}
virtual void acknowledge_audio_element (Audio_element_info);
virtual void process_music ();
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
private:
Audio_dynamic* audio_;
play_element (audio_);
audio_ = 0;
}
-}
-void
-Span_dynamic_performer::start_translation_timestep ()
-{
span_req_l_drul_[STOP] = 0;
span_req_l_drul_[START] = 0;
+
}
bool
TRANSLATOR_DECLARATIONS(Tab_note_heads_engraver);
protected:
- virtual void start_translation_timestep ();
virtual bool try_music (Music *event) ;
virtual void process_music ();
tabstring_events_.clear ();
}
-void
-Tab_note_heads_engraver::start_translation_timestep ()
-{
-}
-
ENTER_DESCRIPTION(Tab_note_heads_engraver,
/* descr */ "Generate one or more tablature noteheads from Music of type NoteEvent.",
typeset_grob (ti);
}
texts_.clear ();
-}
-
-void
-Text_engraver::start_translation_timestep ()
-{
reqs_.clear ();
}
virtual void acknowledge_grob (Grob_info);
virtual bool try_music (Music *);
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
virtual void process_music ();
private:
req_drul_[STOP] = 0;
}
-void
-Text_spanner_engraver::start_translation_timestep ()
-{
- req_drul_[START] = 0;
- req_drul_[STOP] = 0;
-}
-
bool
Text_spanner_engraver::try_music (Music *m)
{
}
typeset_all ();
+ req_drul_[START] = 0;
+ req_drul_[STOP] = 0;
}
void
{
}
+/*
+ this function has 2 properties
+
+ - It is called before try_music()
+
+ - It is called before any user information enters the translators.
+ (i.e. any \property is not processed yet.)
+
+ */
void
Translator::start_translation_timestep ()
{