def __init__(self, score_template): from experimental.tools import musicexpressiontools Specification.__init__(self, score_template) self._postrhythm_set_expressions = \ musicexpressiontools.ExpressionInventory() self._multiple_context_set_expressions = \ timespantools.TimespanInventory() self._next_lexical_rank = 0 self._region_expressions_by_attribute = \ musicexpressiontools.AttributeDictionary() self._segment_specifications = \ musicexpressiontools.SegmentSpecificationInventory() self._segment_specification_class = \ musicexpressiontools.SegmentSpecification self._single_context_time_signature_set_expressions = \ timespantools.TimespanInventory() self._voice_data_structures_by_voice = \ musicexpressiontools.VoiceDictionary(score_template())
def __init__(self, score_template, segment_name): assert isinstance(segment_name, str), segment_name Specification.__init__(self, score_template) self._segment_name = segment_name self._time_signatures = []