示例#1
0
    def __init__(self, beatspan=None, search_tree=None, tempo=None):
        from abjad.tools import quantizationtools

        QSchemaItem.__init__(self, search_tree=search_tree, tempo=tempo)
        if beatspan is not None:
            beatspan = durationtools.Duration(beatspan)
            assert 0 < beatspan
        self._beatspan = beatspan
示例#2
0
 def __init__(
     self,
     beatspan=None,
     search_tree=None,
     tempo=None,
     ):
     QSchemaItem.__init__(
         self,
         search_tree=search_tree,
         tempo=tempo,
         )
     if beatspan is not None:
         beatspan = durationtools.Duration(beatspan)
         assert 0 < beatspan
     self._beatspan = beatspan
 def __init__(self,
              search_tree=None,
              tempo=None,
              time_signature=None,
              use_full_measure=None):
     QSchemaItem.__init__(
         self,
         search_tree=search_tree,
         tempo=tempo,
     )
     if time_signature is not None:
         time_signature = indicatortools.TimeSignature(time_signature)
     self._time_signature = time_signature
     if use_full_measure is not None:
         use_full_measure = bool(use_full_measure)
     self._use_full_measure = use_full_measure
 def __init__(self, 
     search_tree=None, 
     tempo=None,
     time_signature=None,
     use_full_measure=None
     ):
     QSchemaItem.__init__(self,
         search_tree=search_tree,
         tempo=tempo,
         )
     if time_signature is not None:
         time_signature = contexttools.TimeSignatureMark(time_signature)
     self._time_signature = time_signature
     if use_full_measure is not None:
         use_full_measure = bool(use_full_measure)
     self._use_full_measure = use_full_measure