(c) 2004 Han-Wen Nienhuys
*/
-#include "translator-group.hh"
+#include "context.hh"
#include "event.hh"
#include "music-sequence.hh"
#include "lily-guile.hh"
DECLARE_SCHEME_CALLBACK(constructor, ());
protected:
- virtual void derived_substitute (Translator_group*f, Translator_group*t) ;
+ virtual void derived_substitute (Context *f, Context *t) ;
virtual void derived_mark () const;
New_pc_iterator (New_pc_iterator const &);
Interpretation_context_handle shared_;
Interpretation_context_handle solo_;
- void substitute_both (Translator_group * to1,
- Translator_group * to2);
+ void substitute_both (Context * to1,
+ Context * to2);
- void kill_mmrest (Translator_group*);
+ void kill_mmrest (Context *);
void chords_together ();
void solo1 ();
void solo2 ();
}
void
-New_pc_iterator::derived_substitute (Translator_group*f,
- Translator_group*t)
+New_pc_iterator::derived_substitute (Context *f,
+ Context *t)
{
if (first_iter_)
first_iter_->substitute_outlet (f,t);
void
-New_pc_iterator::kill_mmrest (Translator_group * tg)
+New_pc_iterator::kill_mmrest (Context * tg)
{
static Music * mmrest;
if (!mmrest)
}
void
-New_pc_iterator::substitute_both (Translator_group * to1,
- Translator_group * to2)
+New_pc_iterator::substitute_both (Context * to1,
+ Context * to2)
{
- Translator_group *tos[] = {to1,to2};
+ Context *tos[] = {to1,to2};
Music_iterator *mis[] = {first_iter_, second_iter_};
Interpretation_context_handle *hs[] = {
&null_,
for (int j = 0; hs[j]; j++)
{
- Translator_group* t = hs[j]->get_outlet ();
+ Context * t = hs[j]->get_outlet ();
if (t != to1 && t != to2)
kill_mmrest (t);
}
SCM_UNDEFINED);
- Translator_group *tr
- = get_outlet ()->find_create_translator (ly_symbol2scm ("Voice"),
+ Context *tr
+ = get_outlet ()->find_create_context (ly_symbol2scm ("Voice"),
"shared",props);
shared_.set_translator (tr);
*/
set_translator (tr);
- Translator_group *solo_tr
- = get_outlet ()->find_create_translator (ly_symbol2scm ("Voice"),
+ Context *solo_tr
+ = get_outlet ()->find_create_context (ly_symbol2scm ("Voice"),
"solo",props);
solo_ .set_translator (solo_tr);
- Translator_group *null
- = get_outlet ()->find_create_translator (ly_symbol2scm ("Devnull"),
+ Context *null
+ = get_outlet ()->find_create_context (ly_symbol2scm ("Devnull"),
"", SCM_EOL);
if (!null)
null_.set_translator (null);
- Translator_group *one = tr->find_create_translator (ly_symbol2scm ("Voice"),
+ Context *one = tr->find_create_context (ly_symbol2scm ("Voice"),
"one", props);
one_.set_translator (one);
first_iter_ = unsmob_iterator (get_iterator (unsmob_music (gh_car (lst))));
- Translator_group *two = tr->find_create_translator (ly_symbol2scm ("Voice"),
+ Context *two = tr->find_create_context (ly_symbol2scm ("Voice"),
"two", props);
two_.set_translator (two);
set_translator (two);