From 2fdcfd129deda48166b68c49f8a9a817501cff3c Mon Sep 17 00:00:00 2001 From: rorist <rorist@0xcafe.ch> Date: Wed, 23 Aug 2023 09:43:59 +0200 Subject: [PATCH] rst is yellow, longer delay in rec --- __init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 26884f3..d9ad69b 100755 --- a/__init__.py +++ b/__init__.py @@ -165,10 +165,10 @@ class EndlessSequencer(Application): print(' seq {}'.format(self.sample_names[sample_id])) self.notes.append(sample_id) self.play_sample(sample_id) - time.sleep(0.1) + time.sleep(0.15) if ct.petals[1].pressed: self.notes.append(self.SILENCE) - time.sleep(0.1) + time.sleep(0.15) # Light petal for i in range(10): @@ -193,10 +193,12 @@ class EndlessSequencer(Application): #colour = (randrange(200), randrange(200), randrange(200)) for led in leds_range: # Action boutons - if i in [0, 9]: + if i == 0: leds.set_rgb(led, 200, 0, 0) elif i == 1: leds.set_rgb(led, 0, 0, 200) + elif i == 9: + leds.set_rgb(led, 255, 255, 0) else: leds.set_rgb(led, 0, 200, 0) #leds.set_rgb(led, colour[0], colour[1], colour[2]) -- GitLab