fix duration
This commit is contained in:
parent
45ff4444b3
commit
d1befc29cb
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue