From 828d7bb5164818e047d2d82eff77732440464654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Fri, 10 Dec 2021 14:46:45 +0100 Subject: [PATCH] fixing intervals --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c069aef..e0d7ef0 100644 --- a/main.py +++ b/main.py @@ -26,7 +26,7 @@ async def to_chroma_case(data): colored_pixels = notePixels[data["key"].lower()] for pixelId in colored_pixels: pixels[pixelId] = data["color"] - await asyncio.sleep((data['duration'] / 1000) - 5) + await asyncio.sleep((data['duration'] - 5) / 1000) for pixelId in colored_pixels: pixels[pixelId] = 0