New in version 2.0.
Get likely multiplier of components:
abjad> staff = Staff("c'8.. d'8.. e'8.. f'8..")
abjad> f(staff)
\new Staff {
c'8..
d'8..
e'8..
f'8..
}
abjad> componenttools.get_likely_multiplier_of_components(staff[:])
Duration(7, 4)
Return 1 when no multiplier is likely:
abjad> staff = Staff("c'8 d'8 e'8 f'8")
abjad> f(staff)
\new Staff {
c'8
d'8
e'8
f'8
}
abjad> componenttools.get_likely_multiplier_of_components(staff[:])
Duration(1, 1)
Return none when more than one multiplier is likely:
abjad> staff = Staff(notetools.make_notes([0, 2, 4, 5], [(3, 16), (7, 32)]))
abjad> f(staff)
\new Staff {
c'8.
d'8..
e'8.
f'8..
}
abjad> componenttools.get_likely_multiplier_of_components(staff[:]) is None
True
Return fraction or none.