def p_measure__PIPE__FRACTION__component_list__PIPE(self, p): """ measure : PIPE FRACTION component_list PIPE """ measure = core.Container() for x in p[3]: measure.append(x) leaf = inspect(measure).leaf(0) time_signature = indicators.TimeSignature(p[2].pair) attach(time_signature, leaf) p[0] = measure
def time(self, number_list, fraction): r""" Handles LilyPond ``\time`` command. """ n, d = fraction.numerator, fraction.denominator return abjad_indicators.TimeSignature((n, d))