本文整理汇总了Python中MMA.pat.PC类的典型用法代码示例。如果您正苦于以下问题:Python PC类的具体用法?Python PC怎么用?Python PC使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PC类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: restoreGroove
def restoreGroove(self, gname):
""" Restore special/local/variables for groove. """
self._capoFretNo = self.grooves[gname]['CAPO']
self._tuning = self.grooves[gname]['TUNING'][:]
self.strumCenter = self.grooves[gname]['PSTRUM']
PC.restoreGroove(self, gname)
示例2: saveGroove
def saveGroove(self, gname):
""" Save special/local variables for groove. """
PC.saveGroove(self, gname) # create storage. Do this 1st.
self.grooves[gname]['CAPO'] = self._capoFretNo
self.grooves[gname]['TUNING'] = self._tuning[:]
self.grooves[gname]['PSTRUM'] = self.strumCenter
示例3: saveGroove
def saveGroove(self, gname):
""" Save special/local variables for groove. """
PC.saveGroove(self, gname) # create storage. Do this 1st.
self.grooves[gname]['FOLLOWCHORD'] = self.followChord
self.grooves[gname]['FOLLOWKEY'] = self.followKey
self.grooves[gname]['ROOT'] = self.rootChord
示例4: restoreGroove
def restoreGroove(self, gname):
""" Restore special/local/variables for groove. """
self.followChord = self.grooves[gname]['FOLLOWCHORD']
self.followKey = self.grooves[gname]['FOLLOWKEY']
self.rootChord = self.grooves[gname]['ROOT']
PC.restoreGroove(self, gname)
示例5: clearSequence
def clearSequence(self):
""" Set some initial values. Called from init and clear seq. """
PC.clearSequence(self)
self._capoFretNo = 0
if self.channel != 0: # not sure if this is nesc. But safer!
self.grooveFinish(0)
示例6: clearSequence
def clearSequence(self):
""" Set some initial values. Called from init and clear seq. """
PC.clearSequence(self)
self.voicing = Voicing()
# .direction was set in PC.clear.. we're changing to our default
self.direction = seqBump(['UP'])
示例7: __init__
def __init__(self, nm):
PC.__init__(self, nm)
# We have vibrating strings (a string in python refers to text not a guitar string)
self._vibrating = []
self._tuning = []
self.strumCenter = 0 # default to use 'start'
self._capoFretNo = 0 # The number that the capo is on (0 for open strings)
self.setPlectrumTuning(['e-', 'a-', 'd', 'g', 'b', 'e+'])
示例8: __init__
def __init__(self, ln):
""" init for drum track. """
self.toneList = [38]
PC.__init__(self, ln) # This order is important!
self.setChannel('10')
if not gbl.mtrks[self.channel].trackname:
gbl.mtrks[self.channel].addTrkName(0, 'Drum')
示例9: setSeqSize
def setSeqSize(self):
""" Expand existing pattern list. """
self.toneList = seqBump(self.toneList)
PC.setSeqSize(self)
示例10: restoreGroove
def restoreGroove(self, gname):
""" Restore special/local/variables for groove. """
self.voicing = self.grooves[gname]['VMODE']
PC.restoreGroove(self, gname)
示例11: saveGroove
def saveGroove(self, gname):
""" Save special/local variables for groove. """
PC.saveGroove(self, gname) # create storage. Do this 1st.
self.grooves[gname]['VMODE'] = copy.deepcopy(self.voicing)
示例12: __init__
def __init__(self, ln):
self.voicing = Voicing()
PC.__init__(self, ln)
示例13: forceSaveGroove
def forceSaveGroove(self, gname):
PC.saveGroove(self, gname)
示例14: forceRestoreGroove
def forceRestoreGroove(self, gname):
PC.restoreGroove(self, gname)
示例15: saveGroove
def saveGroove(self, gname):
""" Save special/local variables for groove. """
PC.saveGroove(self, gname) # create storage. Do this 1st.