New in version 2.0.
Iterate namesakes backward from component:
abjad> container = Container(Staff(notetools.make_repeated_notes(2)) * 2)
abjad> container.is_parallel = True
abjad> container[0].name = 'staff 1'
abjad> container[1].name = 'staff 2'
abjad> score = Score([])
abjad> score.is_parallel = False
abjad> score.extend(container * 2)
abjad> pitchtools.set_ascending_named_diatonic_pitches_on_nontied_pitched_components_in_expr(score)
abjad> print score.format
\new Score {
<<
\context Staff = "staff 1" {
c'8
d'8
}
\context Staff = "staff 2" {
e'8
f'8
}
>>
<<
\context Staff = "staff 1" {
g'8
a'8
}
\context Staff = "staff 2" {
b'8
c''8
}
>>
}
abjad> for staff in componenttools.iterate_namesakes_backward_from_component(score[-1][0]):
... print staff.format
...
\context Staff = "staff 1" {
g'8
a'8
}
\context Staff = "staff 1" {
c'8
d'8
}
Return generator.