Skip to content
Snippets Groups Projects
Commit 0e622965 authored by moon2's avatar moon2 :speech_balloon:
Browse files

gay drums: 2x gay

retroactively changing the worms 2x fps commit message
to "smoother worming", missed an opportunity there
parent aba92e0c
Branches
Tags release-1 v1.0
1 merge request!237gay drums: 2x gay
Pipeline #7407 passed
...@@ -294,7 +294,7 @@ class GayDrums(Application): ...@@ -294,7 +294,7 @@ class GayDrums(Application):
def draw_bpm(self, ctx: Context, data: None) -> None: def draw_bpm(self, ctx: Context, data: None) -> None:
ctx.text_align = ctx.MIDDLE ctx.text_align = ctx.MIDDLE
ctx.move_to(0, 0) ctx.move_to(0, 0)
self.ctx_draw_centered_rect(ctx, 0, -60, 200, 24, (0, 0, 0)) self.ctx_draw_centered_rect(ctx, 0, -60, 200, 26, (0, 0, 0))
bpm = self.seq.signals.bpm.value bpm = self.seq.signals.bpm.value
ctx.font = ctx.get_font_name(1) ctx.font = ctx.get_font_name(1)
ctx.font_size = 20 ctx.font_size = 20
...@@ -373,7 +373,7 @@ class GayDrums(Application): ...@@ -373,7 +373,7 @@ class GayDrums(Application):
for rendee in self._render_list_2: for rendee in self._render_list_2:
fun, param = rendee fun, param = rendee
fun(ctx, param) fun(ctx, param)
self._render_list_2 = self._render_list_1.copy() # self._render_list_2 = self._render_list_1.copy()
self._render_list_1 = [] self._render_list_1 = []
size = 4 size = 4
...@@ -496,7 +496,6 @@ class GayDrums(Application): ...@@ -496,7 +496,6 @@ class GayDrums(Application):
if ct.petals[0].pressed and not (self.ct_prev.petals[0].pressed): if ct.petals[0].pressed and not (self.ct_prev.petals[0].pressed):
if self.stopped: if self.stopped:
self.seq.signals.bpm = self.bpm self.seq.signals.bpm = self.bpm
self.seq.signals.sync_in = 0
self._render_list_1 += [(self.draw_bpm, None)] self._render_list_1 += [(self.draw_bpm, None)]
self.blm.background_mute_override = True self.blm.background_mute_override = True
self.stopped = False self.stopped = False
...@@ -540,7 +539,7 @@ class GayDrums(Application): ...@@ -540,7 +539,7 @@ class GayDrums(Application):
if ct.petals[0].pressed: if ct.petals[0].pressed:
if self.tap_tempo_press_counter > 500: if self.tap_tempo_press_counter > 500:
self.seq.signals.bpm = 0 self.seq.signals.bpm = 0
self.seq.signals.sync_in = 1 self.seq.signals.sync_in.start()
self._render_list_1 += [(self.draw_bpm, None)] self._render_list_1 += [(self.draw_bpm, None)]
self.stopped = True self.stopped = True
self.blm.background_mute_override = False self.blm.background_mute_override = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment