Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot schedule player instances in transport (React) #1278

Open
botoxparty opened this issue Sep 18, 2024 · 2 comments
Open

Cannot schedule player instances in transport (React) #1278

botoxparty opened this issue Sep 18, 2024 · 2 comments

Comments

@botoxparty
Copy link

Hey,

I'm not sure why I can't get this to work, have spent hours on this and can't seem to get it to work correctly.

I'm creating a DAW and trying to get the basics of the transport setup. It is just not playing anything.

Here's a link to the codesandbox with a minimal example

@botoxparty
Copy link
Author

So i have updated the example, it seems that the Transport is somehow linked to the time the page is loaded, and adds this amount of time to the scheduling.

e.g.

Page loads.

10 seconds later the user presses "Start"

The Transport schedule everything +10 seconds.

@cordial
Copy link

cordial commented Sep 27, 2024

Tone.js requires a user interaction to start and the transport time will start at this point (which is different to the audio context time, which will start on page load).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants