Beispiel #1
0
 def create_score(self):
     instr, notes= self.score.notes_per_instrument.iteritems().next()
     patterns= get_patterns(notes, self.pat_sizes, 
                             self.margins, self.pat_f, 
                             self.key)
     res= Score(self.score.divisions, 
                notes_per_instrument={instr:new_notes})
     return res
Beispiel #2
0
def get_score_patterns(score, pat_sizes, margins, pat_f, key):
        instr, notes= score.notes_per_instrument.iteritems().next()
        return get_patterns(notes, pat_sizes, margins, pat_f, key)