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

Transport unable to fire events immediately at certain time values #1294

Open
V-o-y-a-g-e-r00 opened this issue Dec 1, 2024 · 0 comments
Open

Comments

@V-o-y-a-g-e-r00
Copy link

In browser Chrome 131.0.6778.86 x64:

const problemValue = 2.638;
 Tone.getTransport().seconds = problemValue;
    Tone.getTransport().schedule((time) => {
      this.testPlayer.start(time);
    }, problemValue);

The testPlayer will not be started
Not working also with 2.637999877929687

The problem is that we can't implement a typical scenario in code:

  1. stop the transport
  2. get the current time of the transport
  3. schedule an event for this time
  4. start the transport

Yes, you can add some delta to the launch time, but where is the guarantee that this delta will be enough?
For example, a delta of 0.0001 is sufficient for a value of 2.638, but a delta of 0.00001 is no longer sufficient.

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

1 participant