Skip to content
Snippets Groups Projects
Commit 82465ff1 authored by rorist's avatar rorist
Browse files

Add loop length

parent 10f081f2
Branches
No related tags found
No related merge requests found
...@@ -99,13 +99,20 @@ class EndlessSequencer(Application): ...@@ -99,13 +99,20 @@ class EndlessSequencer(Application):
ctx.text(self.sample_names[self.current_sample]) ctx.text(self.sample_names[self.current_sample])
# BPM # BPM
ctx.move_to(0, 60) ctx.text_align = ctx.LEFT
ctx.move_to(-90, 55)
ctx.rgb(*colours.WHITE) ctx.rgb(*colours.WHITE)
ctx.font_size = 24 ctx.font_size = 18
ctx.text("BPM: {}".format(self.bpm)) ctx.text("BPM: {}".format(self.bpm))
ctx.move_to(0, 80) ctx.move_to(-80, 75)
ctx.font_size = 14 ctx.font_size = 12
ctx.text("left btn to adjust") ctx.text("left btn")
# Length
ctx.move_to(30, 60)
ctx.rgb(*colours.BLUE)
ctx.font_size = 48
ctx.text("{}".format(len(self.notes)))
ctx.restore() ctx.restore()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment