コード例 #1
0
ファイル: SilentQEvent.py プロジェクト: DnMllr/abjad
 def __init__(self, offset=0, attachments=None, index=None):
     QEvent.__init__(self, offset=offset, index=index)
     if attachments is None:
         attachments = ()
     else:
         attachments = tuple(attachments)
     self._attachments = attachments
コード例 #2
0
 def __init__(self, offset=0, pitches=None, attachments=None, index=None):
     QEvent.__init__(self, offset=offset, index=index)
     pitches = pitches or []
     pitches = tuple([pitchtools.NamedPitch(x) for x in pitches])
     if attachments is None:
         attachments = ()
     else:
         attachments = tuple(attachments)
     self._pitches = pitches
     self._attachments = attachments
コード例 #3
0
 def __init__(self, offset=0):
     QEvent.__init__(self, offset=offset)