mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-27 23:38:49 -04:00
fix duration
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user