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:
- stop the transport
- get the current time of the transport
- schedule an event for this time
- 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.