当前位置: 首页>>代码示例>>Python>>正文


Python pat.PC类代码示例

本文整理汇总了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)
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:7,代码来源:patPlectrum.py

示例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
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:7,代码来源:patPlectrum.py

示例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
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:7,代码来源:patSolo.py

示例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)
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:7,代码来源:patSolo.py

示例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)
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:7,代码来源:patPlectrum.py

示例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'])
开发者ID:mortaromarcello,项目名称:mma,代码行数:7,代码来源:patChord.py

示例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+'])
开发者ID:Nodd,项目名称:MobileMMA,代码行数:9,代码来源:patPlectrum.py

示例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')
开发者ID:Nodd,项目名称:MobileMMA,代码行数:10,代码来源:patDrum.py

示例9: setSeqSize

    def setSeqSize(self):
        """ Expand existing pattern list. """

        self.toneList = seqBump(self.toneList)
        PC.setSeqSize(self)
开发者ID:Nodd,项目名称:MobileMMA,代码行数:5,代码来源:patDrum.py

示例10: restoreGroove

    def restoreGroove(self, gname):
        """ Restore special/local/variables for groove. """

        self.voicing = self.grooves[gname]['VMODE']
        PC.restoreGroove(self, gname)
开发者ID:mortaromarcello,项目名称:mma,代码行数:5,代码来源:patChord.py

示例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)
开发者ID:mortaromarcello,项目名称:mma,代码行数:5,代码来源:patChord.py

示例12: __init__

 def __init__(self, ln):
     self.voicing = Voicing()
     PC.__init__(self, ln)
开发者ID:mortaromarcello,项目名称:mma,代码行数:3,代码来源:patChord.py

示例13: forceSaveGroove

 def forceSaveGroove(self, gname):
     PC.saveGroove(self, gname)
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:2,代码来源:patSolo.py

示例14: forceRestoreGroove

 def forceRestoreGroove(self, gname):
     PC.restoreGroove(self, gname)
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:2,代码来源:patSolo.py

示例15: saveGroove

    def saveGroove(self, gname):
        """ Save special/local variables for groove. """

        PC.saveGroove(self, gname)  # create storage. Do this 1st.
开发者ID:anthonyfok,项目名称:mma-debian-packaging,代码行数:4,代码来源:patScale.py


注:本文中的MMA.pat.PC类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。