Exemplo n.º 1
0
 def __init__(self, *args, **kwargs):
     from abjad.tools import quantizationtools
     self._beatspan = durationtools.Duration(kwargs.get('beatspan', (1, 4)))
     search_tree = kwargs.get('search_tree',
                              quantizationtools.UnweightedSearchTree())
     assert isinstance(search_tree, quantizationtools.SearchTree)
     self._search_tree = search_tree
     tempo = kwargs.get('tempo', ((1, 4), 60))
     if isinstance(tempo, tuple):
         tempo = indicatortools.Tempo(*tempo)
     self._tempo = tempo
     QSchema.__init__(self, *args, **kwargs)
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     from abjad.tools import quantizationtools
     self._beatspan = durationtools.Duration(
         kwargs.get('beatspan',
             (1, 4)))
     search_tree = kwargs.get('search_tree',
         quantizationtools.UnweightedSearchTree())
     assert isinstance(search_tree, quantizationtools.SearchTree)
     self._search_tree = search_tree
     self._tempo = indicatortools.Tempo(
         kwargs.get('tempo',
             ((1, 4), 60)))
     QSchema.__init__(self, *args, **kwargs)
Exemplo n.º 3
0
 def __init__(self, *arguments, **keywords):
     import abjad
     from abjad.tools import quantizationtools
     self._beatspan = abjad.Duration(keywords.get('beatspan', (1, 4)))
     search_tree = keywords.get('search_tree',
         quantizationtools.UnweightedSearchTree())
     assert isinstance(search_tree, quantizationtools.SearchTree)
     self._search_tree = search_tree
     tempo = keywords.get('tempo', ((1, 4), 60))
     if isinstance(tempo, tuple):
         tempo = indicatortools.MetronomeMark(*tempo)
     self._tempo = tempo
     QSchema.__init__(self, *arguments, **keywords)
Exemplo n.º 4
0
 def __init__(self, *arguments, **keywords):
     from abjad.tools import quantizationtools
     search_tree = keywords.get('search_tree',
                                quantizationtools.UnweightedSearchTree())
     assert isinstance(search_tree, quantizationtools.SearchTree)
     self._search_tree = search_tree
     tempo = keywords.get('tempo', ((1, 4), 60))
     if isinstance(tempo, tuple):
         tempo = indicatortools.MetronomeMark(*tempo)
     self._tempo = tempo
     self._time_signature = indicatortools.TimeSignature(
         keywords.get('time_signature', (4, 4)))
     self._use_full_measure = bool(keywords.get('use_full_measure'))
     QSchema.__init__(self, *arguments, **keywords)
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     from abjad.tools import quantizationtools
     search_tree = kwargs.get(
         'search_tree', quantizationtools.UnweightedSearchTree())
     assert isinstance(search_tree, quantizationtools.SearchTree)
     self._search_tree = search_tree
     self._tempo = indicatortools.Tempo(
         kwargs.get('tempo',
             ((1, 4), 60)))
     self._time_signature = indicatortools.TimeSignature(
         kwargs.get('time_signature',
             (4, 4)))
     self._use_full_measure = bool(kwargs.get('use_full_measure'))
     QSchema.__init__(self, *args, **kwargs)