コード例 #1
0
ファイル: Context.py プロジェクト: Alwnikrotikz/abjad
 def __init__(self, music=None, context_name='Context', name=None):
     Container.__init__(self, music=music)
     self.context_name = context_name
     self._engraver_consists = []
     self._engraver_removals = []
     self._name = None
     self.name = name
     self.is_nonsemantic = False
コード例 #2
0
ファイル: Context.py プロジェクト: Alwnikrotikz/abjad
 def _initialize_keyword_values(self, **kwargs):
     if 'context_name' in kwargs:
         self.context_name = kwargs['context_name']
         del(kwargs['context_name'])
     if 'name' in kwargs:
         self.name = kwargs['name']
         del(kwargs['name'])
     Container._initialize_keyword_values(self, **kwargs)
コード例 #3
0
ファイル: Context.py プロジェクト: Alwnikrotikz/abjad
 def _copy_with_marks_but_without_children_or_spanners(self):
     new = Container._copy_with_marks_but_without_children_or_spanners(self)
     new._engraver_consists = copy.copy(self.engraver_consists)
     new._engraver_removals = copy.copy(self.engraver_removals)
     new.name = copy.copy(self.name)
     new.is_nonsemantic = copy.copy(self.is_nonsemantic)
     return new
     return new
コード例 #4
0
 def __init__(self, target_duration, music=None, **kwargs):
     Container.__init__(self, music=music, **kwargs)
     target_duration = durationtools.Duration(target_duration)
     assert 0 < target_duration
     self._target_duration = target_duration
コード例 #5
0
ファイル: Cluster.py プロジェクト: Alwnikrotikz/abjad
 def __init__(self, music=None, **kwargs):
     Container.__init__(self, music)
     self.is_simultaneous = False
     self._initialize_keyword_values(**kwargs)
コード例 #6
0
ファイル: GraceContainer.py プロジェクト: Alwnikrotikz/abjad
 def __init__(self, music=None, kind="grace", **kwargs):
     # self._carrier is a reference to the leaf carrying grace music
     self._carrier = None
     Container.__init__(self, music)
     self.kind = kind
     self._initialize_keyword_values(**kwargs)
コード例 #7
0
ファイル: GraceContainer.py プロジェクト: Alwnikrotikz/abjad
 def _copy_with_marks_but_without_children_or_spanners(self):
     new = Container._copy_with_marks_but_without_children_or_spanners(self)
     new.kind = self.kind
     return new