示例#1
0
 def pasbiis(self):
     p = cs.Score()
     i = cs.Score()
     a = cs.Score()
     b = cs.Score()
     s = cs.Score()
     return [p, a, s, b, i, i, s]
    def __init__(self):
        self.list = []

        #Fours
        instObj = cs.Drums()
        instObj.setHihat(
            [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
            True)
        instObj.setSnare(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        instObj.setKick(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        self.list.append(instObj)

        #Eights
        instObj = cs.Drums()
        instObj.setHihat(
            [-2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1],
            True)
        instObj.setSnare(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setKick(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        self.list.append(instObj)

        #Sixteens
        instObj = cs.Drums()
        instObj.setHihat([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                         True)
        instObj.setSnare([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                         True)
        instObj.setKick([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], True)
        self.list.append(instObj)
示例#3
0
 def paasibbis(self):
     p = cs.Score()
     i = cs.Score()
     a = cs.Score()
     b = cs.Score()
     s = cs.Score()
     return [p, a, a, s, i, b, b, i, s]
示例#4
0
    def onBeat(self,
               melody,
               beat=4,
               temperature={
                   'fx1': 0.0005,
                   'fx2': 0.0005,
                   'fx3': 0.0005,
                   'fx4': 0.0005
               },
               tryN={
                   'fx1': 1,
                   'fx2': 1,
                   'fx3': 1,
                   'fx4': 1
               }):
        effectsObj = cs.Effects()

        frame = int(beat * self._notePerBar_n / 4)
        frame_n = int(len(melody) / frame)
        score = [1, 0, 1, 0] * frame_n
        frame_mod = [0] * (len(melody) - len(score))
        score.extend(frame_mod)

        effectsObj.setPt1(
            self._accentRandom(score, 1, temperature['fx1'], tryN['fx1']))
        effectsObj.setPt2(
            self._accentRandom(score, 1, temperature['fx2'], tryN['fx2']))
        effectsObj.setPt3(
            self._accentRandom(score, 1, temperature['fx3'], tryN['fx3']))
        effectsObj.setPt4(
            self._accentRandom(score, 1, temperature['fx4'], tryN['fx4']))

        return effectsObj
示例#5
0
 def accentRandom(self,
                  melody,
                  hihat,
                  snare,
                  kick,
                  barsPerOneSection=4,
                  temperature={
                      'melody': 0.0005,
                      'hihat': 0.0005,
                      'snare': 0.0005,
                      'kick': 0.0005
                  },
                  tryN={
                      'melody': 1,
                      'hihat': 1,
                      'snare': 1,
                      'kick': 1
                  }):
     effectsObj = cs.Effects()
     effectsObj.setPt1(
         self._accentRandom(melody, barsPerOneSection,
                            temperature['melody'], tryN['melody']))
     effectsObj.setPt2(
         self._accentRandom(hihat, barsPerOneSection, temperature['hihat'],
                            tryN['hihat']))
     effectsObj.setPt3(
         self._accentRandom(snare, barsPerOneSection, temperature['snare'],
                            tryN['snare']))
     effectsObj.setPt4(
         self._accentRandom(kick, barsPerOneSection, temperature['kick'],
                            tryN['kick']))
     return effectsObj
示例#6
0
    def load(self, dir):
        name = os.path.dirname(os.path.abspath(__name__))
        joined_path = os.path.join(name, dir)
        data_path = os.path.normpath(joined_path)

        score_json = json.load(open(data_path, 'r'))

        form = score_json['form']
        formObj = self.sctObj.create(form['name'])
        for i, scoreObj in enumerate(sorted(set(formObj), key = formObj.index)):
            self._chordProgressionObj.create(scoreObj, score_json[form['args'][i]]['ChordProgression']['name'], **score_json[form['args'][i]]['ChordProgression']['args'])
            self._chordProgressionObj.update(scoreObj, score_json[form['args'][i]]['ChordProgressionChild']['name'])
            self._melodyObj.create(scoreObj, score_json[form['args'][i]]['Melody']['name'], score_json[form['args'][i]]['Melody']['range'],  **score_json[form['args'][i]]['Melody']['args'])
            self._melody2Obj.create(scoreObj, score_json[form['args'][i]]['Melody2']['name'], score_json[form['args'][i]]['Melody2']['range'],  **score_json[form['args'][i]]['Melody2']['args'])
            self._drumObj.create(scoreObj, score_json[form['args'][i]]['Drums']['name'])
            self._bassObj.create(scoreObj, score_json[form['args'][i]]['Bass']['name'], score_json[form['args'][i]]['Bass']['range'])
            self._VoiceProgressionObj.create(scoreObj, score_json[form['args'][i]]['VoiceProgression']['name'], score_json[form['args'][i]]['VoiceProgression']['range'], **score_json[form['args'][i]]['VoiceProgression']['args'])
            self._VoiceProgression2Obj.create2(scoreObj, score_json[form['args'][i]]['VoiceProgression2']['name'], score_json[form['args'][i]]['VoiceProgression2']['range'], **score_json[form['args'][i]]['VoiceProgression2']['args'])
            self._effectsObj.create(scoreObj, score_json[form['args'][i]]['Effects']['name'], **score_json[form['args'][i]]['Effects']['args'] )


        masterScoreObj = cs.Score()
        mix = score_json['mix']
        mixList = self.mixObj.create(formObj, mix['name'])
        for j, scoreObj in enumerate(formObj):
            masterScoreObj.addScoreObj(scoreObj, mixList[j])

        return masterScoreObj
示例#7
0
    def fourBeat(self, chordProg):
        drumObj = cs.Drums()

        idx = -1  #8
        hihatScore = np.tile(self._patterns[idx].hihat, len(chordProg))
        snareScore = np.tile(self._patterns[idx].snare, len(chordProg))
        kickScore = np.tile(self._patterns[idx].kick, len(chordProg))

        drumObj.setHihat(hihatScore)
        drumObj.setSnare(snareScore)
        drumObj.setKick(kickScore)
        return drumObj
示例#8
0
    def eightBeat(self, chordProg):
        drumObj = cs.Drums()

        idx = np.random.randint(0, 3, 1)[0]
        hihatScore = np.tile(self._patterns[idx].hihat, len(chordProg))
        snareScore = np.tile(self._patterns[idx].snare, len(chordProg))
        kickScore = np.tile(self._patterns[idx].kick, len(chordProg))

        drumObj.setHihat(hihatScore)
        drumObj.setSnare(snareScore)
        drumObj.setKick(kickScore)
        return drumObj
示例#9
0
    def breaka(self, chordProg):
        drumObj = cs.Drums()

        score = [
            -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
        ]
        hihatScore = np.tile(score, len(chordProg))
        snareScore = np.tile(score, len(chordProg))
        kickScore = np.tile(score, len(chordProg))

        drumObj.setHihat(hihatScore)
        drumObj.setSnare(snareScore)
        drumObj.setKick(kickScore)
        return drumObj
示例#10
0
    def snareRoll(self, chordProg):
        """
        実質的には self._notePerBar_n = 16 が前提になっている。
        """

        drumObj = cs.Drums()

        silent_length = len(chordProg) * self._notePerBar_n
        silent = np.full(silent_length, -2)
        snare = np.tile(self._fills[0].snare, len(chordProg))

        snare[-4 * self._notePerBar_n:-2 * self._notePerBar_n] = np.tile(
            self._fills[1].snare, 2)
        snare[-2 * self._notePerBar_n:len(snare)] = np.tile(
            self._fills[2].snare, 2)

        drumObj.setHihat(snare)
        drumObj.setSnare(snare)
        drumObj.setKick(snare)
        return drumObj
示例#11
0
    def fill(self, keyProg):
        """
        1 barしか考えてない
        """

        fill_other = [
            0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
        ]
        fill = [0, -1, 0, -1, 0, -1, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0]

        effectsObj = cs.Effects()

        score = np.tile(fill_other, len(keyProg))
        score[-self._notePerBar_n:len(score)] = np.array(fill)

        effectsObj.setPt1(score)
        effectsObj.setPt2(score)
        effectsObj.setPt3(score)
        effectsObj.setPt4(score)

        return effectsObj
示例#12
0
    def onBeat_manual(self, keyProg):

        wholeNotes = [
            0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
        ]
        fourBeats = [
            0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1
        ]
        a16Beats = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

        effectsObj = cs.Effects()

        score = np.tile(wholeNotes, len(keyProg))
        score[-4 * self._notePerBar_n:-2 * self._notePerBar_n] = np.tile(
            fourBeats, 2)
        score[-2 * self._notePerBar_n:len(score)] = np.tile(a16Beats, 2)

        effectsObj.setPt1(score)
        effectsObj.setPt2(score)
        effectsObj.setPt3(score)
        effectsObj.setPt4(score)

        return effectsObj
示例#13
0
 def a(self):
     a = cs.Score()
     return [a]
示例#14
0
        snareScore = np.tile(self._patterns[idx].snare, len(chordProg))
        kickScore = np.tile(self._patterns[idx].kick, len(chordProg))

        drumObj.setHihat(hihatScore)
        drumObj.setSnare(snareScore)
        drumObj.setKick(kickScore)
        return drumObj

    def breaka(self, chordProg):
        drumObj = cs.Drums()

        score = [
            -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1
        ]
        hihatScore = np.tile(score, len(chordProg))
        snareScore = np.tile(score, len(chordProg))
        kickScore = np.tile(score, len(chordProg))

        drumObj.setHihat(hihatScore)
        drumObj.setSnare(snareScore)
        drumObj.setKick(kickScore)
        return drumObj


if __name__ == '__main__':
    scoreObj = cs.Score()
    scoreObj.setChordProg([[1, 2], [3, 4], [4, 5]])
    dp = Drums()
    drum = dp.create(dp.random, scoreObj)
    print(scoreObj.drumObj.snare)
示例#15
0
 def piaabbi(self):
     p = cs.Score()
     i = cs.Score()
     a = cs.Score()
     b = cs.Score()
     return [p, i, a, a, b, b, i]
示例#16
0
 def paaibbi(self):
     p = cs.Score()
     i = cs.Score()
     a = cs.Score()
     b = cs.Score()
     return [p, a, a, i, b, b, i]
示例#17
0
    def __init__(self):
        self.list = []

        #Rock Beat
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        #Funk Beat
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                         True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        #Dance Beat
        instObj = cs.Drums()
        instObj.setHihat(
            [-1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                         True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [-1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1], True)
        instObj.setSnare(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        instObj.setKick(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        self.list.append(instObj)

        #Punk beat
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1], True)
        instObj.setSnare(
            [-1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1], True)
        instObj.setKick(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1], True)
        instObj.setSnare(
            [-1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1], True)
        instObj.setKick(
            [0, -1, -1, -1, 0, 0, -1, -1, 0, -1, -1, -1, 0, 0, -1, -1], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1], True)
        instObj.setSnare(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        instObj.setKick(
            [-1, -1, -0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1, 0, -1, 1, -1], True)
        instObj.setSnare(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        instObj.setKick(
            [-1, -1, -0, -1, -1, -1, 0, -1, -1, -1, 0, 0, -1, -1, 0, -1], True)
        self.list.append(instObj)
        """
        #打ち込み系は下の参照
        https://www.youtube.com/watch?v=tm2BgO1VaRY
        https://docs.google.com/spreadsheets/d/19_3BxUMy3uy1Gb0V8Wc-TcG7q16Amfn6e8QVw4-HuD0/edit#gid=0
        """

        #Breakbeats
        #8step
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, 0, -1, -1, -1, -1, 0, -1, -1, 0], True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, -1, -1, 0, -1, 0, -1, -1, -1, -1, -1], True)
        self.list.append(instObj)

        #16step
        instObj = cs.Drums()
        instObj.setHihat([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
                         True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, 0, -1, 0, -1, 0, 0, -1, -1, 0], True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, 0, -1, -1], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, 0, 0, -1, -1, -1, -1, -1, 0, -1], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, 0, 0, -1, 0, -1, -1, -1, -1, -1], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, -1, -1, 0], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, 0, -1, -1, 0, -1, 0, -1, -1, -1, -1, -1, -1, -1], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, 0, -1, -1, 0, 0, -1, -1, -1, -1, -1], True)
        self.list.append(instObj)

        #32step
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, -1, 0, 0], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, -1, -1, 0, -1, 0, 0, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, 0, -1, 0, -1, -1, 0, -1, -1, -1], True)
        instObj.setKick(
            [0, -1, -1, 0, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, -1, 0, -1, 0, 0, 0, -1, -1, -1, 0], True)
        self.list.append(instObj)

        #64step
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -0, -1, 0, -1, -1, 0, -1, -1, 0], True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, 0, -1, -1, -1, -1], True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -0, -1, 0, -1, -1, -1, -1, 0, -1],
            True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, 0, -1, -1, 0, -1, -1, -0, -1, 0, -1, -1, -1, -1, 0, -1], True)
        instObj.setKick(
            [-1, -1, 0, 0, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, 0, -1, -1, 0, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, 0], True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, 0], True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1],
            True)
        self.list.append(instObj)

        #Rock
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, 0, -1, -1, -1, 0, -1, 0, -1, 0, -1, -1, -1, 0, -1], True)
        self.list.append(instObj)

        #Techno
        instObj = cs.Drums()
        instObj.setHihat(
            [-1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, 0, -1], True)
        self.list.append(instObj)

        #HipHop
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1, 0, -1], True)
        instObj.setSnare(
            [-1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, 0, -1, -1, -1],
            True)
        instObj.setKick(
            [0, -1, -1, -1, -1, -1, -1, 0, -1, -1, 0, -1, -1, 0, -1, 0], True)
        self.list.append(instObj)

        #Yotsu-uchi
        instObj = cs.Drums()
        instObj.setHihat(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        instObj.setSnare(
            [-1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1], True)
        instObj.setKick(
            [0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1, 0, -1, -1, -1], True)
        self.list.append(instObj)
示例#18
0
 def ab(self):
     a = cs.Score()
     b = cs.Score()
     return [a, b]
示例#19
0
 def aaba(self):
     a = cs.Score()
     b = cs.Score()
     return [a, a, b, a]
示例#20
0
 def iaabi(self):
     i = cs.Score()
     a = cs.Score()
     b = cs.Score()
     return [i, a, a, b, i]