コード例 #1
0
    def __init__(self, ln):
        """ We need special init here incase this is converted to drumType.
            If we don't have a toneList, we're screwed.
        """

        self.toneList = [self.drumTone]
        PC.__init__(self, ln)   # This order is important!
コード例 #2
0
    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')
コード例 #3
0
ファイル: patPlectrum.py プロジェクト: hugonxc/mma_pip
    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._lastOff = []
        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+'])
        self.fretNoise = None
        self.lastChord = None
        self._chordShapes = {}
コード例 #4
0
ファイル: patChord.py プロジェクト: hugonxc/mma_pip
 def __init__(self, ln):
     self.voicing = Voicing()
     PC.__init__(self, ln)
コード例 #5
0
ファイル: patScale.py プロジェクト: hugonxc/mma_pip
 def __init__(self, ln):
     
     PC.__init__(self, ln)