fix: 例外が投げられて描画されない環境が存在するので対処

This commit is contained in:
Nebel 2020-12-29 18:33:10 +09:00
parent d3b462fa53
commit 57e9adf317

View file

@ -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 });