stuff in accordance with new timing of tie-events.
* lily/my-lily-lexer.cc: remove \outputproperty
* lily/melisma-engraver.cc (try_music): use melismaBusyProperties.
2003-09-18 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * lily/tie-engraver.cc (start_translation_timestep): move melisma
+ stuff in accordance with new timing of tie-events.
+
+ * lily/my-lily-lexer.cc: remove \outputproperty
+
* lily/melisma-engraver.cc (try_music): use melismaBusyProperties.
* scm/define-translator-properties.scm (melismaBusyProperties):
bool
Lyric_combine_music_iterator::melisma_busy ()
{
-#if 0
-
- Translator_group * trg = music_iter_->report_to();
- bool melisma_busy= to_boolean (trg->get_property ("melismaBusy"));
-
- melisma_busy = melisma_busy || to_boolean (trg->get_property ("slurMelismaBusy"));
- melisma_busy = melisma_busy || to_boolean (trg->get_property ("tieMelismaBusy"));
- melisma_busy = melisma_busy || to_boolean (trg->get_property ("beamMelismaBusy"));
- return melisma_busy;
-
-#else
-
/*
- The above code is nicer since it doesn't rely on a special
- engraver to signal the melisma status. Unfortunately,
- music_iter_->report_to() might not be the context that sets the
- melisma properties, but rather a parent context.
+ We can not read the property, since music_iter_->report_to() might
+ not be the context that sets the melisma properties, but rather a
+ parent context.
*/
return music_iter_->try_music (melisma_playing_req);
-#endif
-
}
void
for (; gh_pair_p (melisma_properties);
melisma_properties = gh_cdr (melisma_properties))
- busy = busy || to_boolean (get_property (gh_car (melisma_properties)));
+
+ busy = busy || to_boolean (internal_get_property (gh_car (melisma_properties)));
/*
for the phrasing engraver we also need this.
{"notes", NOTES},
{"octave", OCTAVE},
{"once", ONCE},
- {"outputproperty", OUTPUTPROPERTY},
{"override", OVERRIDE},
{"paper", PAPER},
{"partcombine", PARTCOMBINE},
protected:
virtual void stop_translation_timestep ();
+ virtual void start_translation_timestep ();
virtual void acknowledge_grob (Grob_info);
virtual bool try_music (Music*);
virtual void process_acknowledged_grobs ();
event_ = mus;
}
- if (event_)
- {
- SCM m = get_property ("automaticMelismata");
- bool am = gh_boolean_p (m) &&gh_scm2bool (m);
- if (am)
- {
- daddy_trans_->set_property ("tieMelismaBusy", m ? SCM_BOOL_T : SCM_BOOL_F);
- }
- }
return true;
}
}
}
+void
+Tie_engraver::start_translation_timestep ()
+{
+ if (to_boolean (get_property ("automaticMelismata")))
+ daddy_trans_->set_property ("tieMelismaBusy",
+ gh_bool2scm (heads_to_tie_.size ()));
+
+}
void
Tie_engraver::stop_translation_timestep ()
{
\break
% urg, only works for TeX output
- \context Score \outputproperty #(make-type-checker 'paper-column-interface)
- #'between-system-string = #"\\newpage"
+ \context Score \applyoutput
+ #(outputproperty-compatibility (make-type-checker 'paper-column-interface)
+ 'between-system-string "\\newpage")
}
% dynamic ly:dir? text script, articulation script ly:dir?
% End the incipit and print a ``normal line start''.
-endincipit = \notes{
+endincipit = \notes \context Staff {
\partial 16 s16 % Hack to handle e.g. \bar ".|" \endincipit
- \context Staff \outputproperty #(make-type-checker 'clef-interface) #'full-size-change = ##t
- \context Staff \outputproperty #(make-type-checker 'clef-interface) #'non-default = ##t
+ \once \property Staff.Clef \set #'full-size-change = ##t
+ \once \property Staff.Clef \set #'non-default = ##t
\bar ""
}