This commit is contained in:
Felix Roos 2022-02-07 18:41:04 +01:00
parent d1befc29cb
commit cf7a158944

View File

@ -29,7 +29,7 @@ function useCycle(props) {
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);