From b6740143774cbf194395e8f44deca686f790ab68 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 15 Apr 2022 15:04:16 +0100 Subject: [PATCH] Ignore continuous haps (those without a whole) --- repl/src/useCycle.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repl/src/useCycle.mjs b/repl/src/useCycle.mjs index 908193f9..2e6cad42 100644 --- a/repl/src/useCycle.mjs +++ b/repl/src/useCycle.mjs @@ -39,7 +39,7 @@ function useCycle(props) { // schedule events for next cycle events - ?.filter((event) => event.part.begin.equals(event.whole.begin)) + ?.filter((event) => event.part.begin.equals(event.whole?.begin)) .forEach((event) => { Tone.getTransport().schedule((time) => { onEvent(time, event, Tone.getContext().currentTime);