2004-03-31 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/change-iterator.cc (process): use find_existing_context().
+
* input/test/polymetric-differing-notes.ly: use ly:music-compress.
* input/regression/repeat-unfold-tremolo.ly: new file.
The string @var{staffname} is the name of the staff. It switches the
current voice from its current staff to the Staff called
@var{staffname}. Typically @var{staffname} is @code{"up"} or
-@code{"down"}.
+@code{"down"}. The @context{Staff} referred to must already exist, so
+usually the setup for a score will start with a setup of the staves,
+@example
+ <<
+ \context Staff = up @{
+ \skip 1 * 10 %@emph{ keep staff alive}
+ @}
+ \context Staff = down @{
+ \skip 1 * 10 %@emph{idem}
+ @}
+ >>
+@end example
+
+
+and the @context{Voice} is inserted afterwards
+
+@example
+ \context Staff = down
+ \new Voice @{ @dots{} \change Staff = up @dots{} @}
+@end example
@node Pedals
if (last)
{
Context * dest =
- get_outlet ()->find_create_context (to_type, to_id, SCM_EOL);
+ get_outlet ()->find_existing_context (to_type, to_id, SCM_EOL);
current->remove_context (last);
dest->add_context (last);
}
r-> set_property ("elements",alts);
if (gh_equal_p ($2, scm_makfrom0str ("tremolo"))) {
+ /*
+ TODO: move this code to Scheme.
+ */
+
/*
we can not get durations and other stuff correct down the line, so we have to
add to the duration log here.