コード例 #1
0
 def __init__(
     self,
     depths=None,
     ):
     if depths is not None:
         depths = depths or ()
         assert mathtools.all_are_nonnegative_integers(depths), repr(depths)
     self._depths = depths
コード例 #2
0
 def __init__(
     self,
     depths=None,
 ):
     if depths is not None:
         depths = depths or ()
         assert mathtools.all_are_nonnegative_integers(depths), repr(depths)
     self._depths = depths
コード例 #3
0
ファイル: StemTremoloHandler.py プロジェクト: DnMllr/abjad
 def __init__(self, hash_mark_counts=None, pattern=None):
     if hash_mark_counts is not None:
         hash_mark_counts = tuple(hash_mark_counts)
         assert mathtools.all_are_nonnegative_integers(hash_mark_counts)
     self._hash_mark_counts = hash_mark_counts
     if pattern is not None:
         prototype = (patterntools.Pattern, patterntools.CompoundPattern)
         assert isinstance(pattern, prototype), repr(pattern)
     self._pattern = pattern
コード例 #4
0
 def __init__(self, hash_mark_counts=None, pattern=None):
     if hash_mark_counts is not None:
         hash_mark_counts = tuple(hash_mark_counts)
         assert mathtools.all_are_nonnegative_integers(hash_mark_counts)
     self._hash_mark_counts = hash_mark_counts
     if pattern is not None:
         prototype = (patterntools.Pattern, patterntools.CompoundPattern)
         assert isinstance(pattern, prototype), repr(pattern)
     self._pattern = pattern
コード例 #5
0
 def __init__(self, hash_mark_counts=None):
     if hash_mark_counts is not None:
         hash_mark_counts = tuple(hash_mark_counts)
         assert mathtools.all_are_nonnegative_integers(hash_mark_counts)
     self._hash_mark_counts = hash_mark_counts