New in version 1.1.
Repeat contents of container:
abjad> staff = Staff("c'8 d'8")
abjad> spannertools.BeamSpanner(staff.leaves)
BeamSpanner(c'8, d'8)
abjad> f(staff)
\new Staff {
c'8 [
d'8 ]
}
abjad> containertools.repeat_contents_of_container(staff, 3)
Staff{6}
abjad> f(staff)
\new Staff {
c'8 [
d'8 ]
c'8 [
d'8 ]
c'8 [
d'8 ]
}
Leave container unchanged when total is 1.
Empty container when total is 0.
Return container.
Changed in version 2.0: renamed containertools.contents_multiply() to containertools.repeat_contents_of_container().