fix duration

This commit is contained in:
Felix Roos 2022-02-07 18:40:37 +01:00
parent 45ff4444b3
commit d1befc29cb

View File

@ -53,7 +53,7 @@ function useCycle(props: UseCycleProps) {
Tone.Transport.schedule((time) => {
const toneEvent = {
time: event.part.begin.valueOf(),
duration: event.part.end.valueOf() - event.part.begin.valueOf(),
duration: event.whole.end.valueOf() - event.whole.begin.valueOf(),
value: event.value,
};
onEvent(time, toneEvent);