Skip to content

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

@v-o-y-a-g-e-r00

Description

@v-o-y-a-g-e-r00

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions