New in version 1.1.
Apply beam spanners to measures in expr:
abjad> staff = Staff(Measure((2, 8), notetools.make_repeated_notes(2)) * 2)
abjad> pitchtools.set_ascending_named_diatonic_pitches_on_nontied_pitched_components_in_expr(staff)
abjad> f(staff)
\new Staff {
{
\time 2/8
c'8
d'8
}
{
\time 2/8
e'8
f'8
}
}
abjad> measuretools.apply_beam_spanners_to_measures_in_expr(staff)
[BeamSpanner(|2/8(2)|), BeamSpanner(|2/8(2)|)]
abjad> f(staff)
\new Staff {
{
\time 2/8
c'8 [
d'8 ]
}
{
\time 2/8
e'8 [
f'8 ]
}
}
Return list of beams created.
Changed in version 2.0: renamed measuretools.beam() to measuretools.apply_beam_spanners_to_measures_in_expr().