Ejemplo n.º 1
0
    def render_notes(self):
        self.delete_with_tag('note')
        self.plan_beams()

        for col, row, duration in each_score_bar_coord(self.score_bar):
            self.render_note(col, row, duration)

        self.render_stems()
        for item in self.items_with_tag('noteshadow'):
            item.setZValue(-1)
        for item in self.items_with_tag('beatline'):
            item.setZValue(-2)
Ejemplo n.º 2
0
def score_bar_to_goo(score_bar):
    for col, row, duration in each_score_bar_coord(score_bar):
        for goo_note in note_to_goo(score_bar, row, duration, col):
            yield goo_note