mirror of
https://github.com/eliasstepanik/strudel.git
synced 2026-01-11 21:58:37 +00:00
fix duration
This commit is contained in:
parent
45ff4444b3
commit
d1befc29cb
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user