filter out event parts from draw
This commit is contained in:
parent
04d14dea90
commit
d5a928e6f7
2 changed files with 4 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ function useCycle(props: UseCycleProps) {
|
|||
.forEach((event) => {
|
||||
Tone.getTransport().schedule((time) => {
|
||||
const toneEvent = {
|
||||
time: event.part.begin.valueOf(),
|
||||
time: event.whole.begin.valueOf(),
|
||||
duration: event.whole.end.sub(event.whole.begin).valueOf(),
|
||||
value: event.value,
|
||||
context: event.context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue