- ; // error (_ ("none of these in my family"));
-
-}
-
-/*
- Look ahead to find first pitches to determine staff position.
- WARNING: this means that
-
- \autochange Staff \notes { .... \context Staff = otherstaff { .. } .. }
-
- will confuse the autochanger, since it will not notice that the
- music for OTHERSTAFF is not his.
-
- PRECONDITION: this->ok () holds.
-*/
-Array<Pitch>
-Auto_change_iterator::pending_pitch (Moment m) const
-{
- Music_iterator * iter = child_iter_p_ ->clone ();
- Array<Pitch> ps;
- while (1)
- {
- SCM muses = iter->get_music (m);
- for (SCM s = muses; gh_pair_p (s); s=ly_cdr (s))
- if (Note_req* nr = dynamic_cast<Note_req*> (unsmob_music (ly_car (s))))
- {
- ps.push (*unsmob_pitch (nr->get_mus_property ("pitch")));
- }
-
- if (ps.size ())
- break;
-
- iter->skip (m);
- if (!iter->ok ())
- break;
-
- m = iter->pending_moment ();
- }