From 57e9adf317603576c0d2377a5d1802483188089f Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 29 Dec 2020 18:33:10 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BE=8B=E5=A4=96=E3=81=8C=E6=8A=95?= =?UTF-8?q?=E3=81=92=E3=82=89=E3=82=8C=E3=81=A6=E6=8F=8F=E7=94=BB=E3=81=95?= =?UTF-8?q?=E3=82=8C=E3=81=AA=E3=81=84=E7=92=B0=E5=A2=83=E3=81=8C=E5=AD=98?= =?UTF-8?q?=E5=9C=A8=E3=81=99=E3=82=8B=E3=81=AE=E3=81=A7=E5=AF=BE=E5=87=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 4ff9f0d..620cb30 100644 --- a/src/main.ts +++ b/src/main.ts @@ -40,7 +40,11 @@ function drawRect() { const [intersect] = raycaster.intersectObjects(panels); if (!intersect) return; - synth.triggerAttackRelease("C4", "16n"); + try { + // FIXME: Error: Start time must be strictly greater than previous start time. + synth.triggerAttackRelease("C4", "16n"); + } catch {} + const color = pallet[randomInt(pallet.length - 1)]; const geometry = new PlaneGeometry(1, 1); const material = new MeshBasicMaterial({ color });