Ignore continuous haps (those without a whole)

This commit is contained in:
alex 2022-04-15 15:04:16 +01:00
parent 1f1b20041c
commit b674014377

View File

@ -39,7 +39,7 @@ function useCycle(props) {
// schedule events for next cycle // schedule events for next cycle
events events
?.filter((event) => event.part.begin.equals(event.whole.begin)) ?.filter((event) => event.part.begin.equals(event.whole?.begin))
.forEach((event) => { .forEach((event) => {
Tone.getTransport().schedule((time) => { Tone.getTransport().schedule((time) => {
onEvent(time, event, Tone.getContext().currentTime); onEvent(time, event, Tone.getContext().currentTime);