Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/d/r/DrumBurp-HEAD/src/Data/Drum.py   DrumBurp(Download)
    def _guessNotation(abbr, head):
        for drumInfo in DefaultKits.DEFAULT_KIT:
            if drumInfo[0][1] == abbr:
                nHead, nLine, sDir = drumInfo[-3:]
                nEffect = "none"
    def guessHeadData(self):
        self._noteHeads = [self._head]
        midiNote = _guessMidiNote(self.abbr)
        for drumInfo in DefaultKits.DEFAULT_KIT:
            if drumInfo[0][1] == self.abbr:
def _guessMidiNote(abbr):
    for drumData, midiNote, x_, y_, z_ in DefaultKits.DEFAULT_KIT:
        if abbr == drumData[1]:
            return midiNote
    return DefaultKits.DEFAULT_NOTE