You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
On the ToneEvent page in the docs, there is example code, but this code does not actually cause a sound to play when run. One has to look elsewhere to learn that Tone.getTransport().start() must be called. The line Tone.getTransport().start(); should be included on the doc page for ToneEvent.
Expected behavior
I would expect to be able to play a sound if I copy paste example code from a tutorial page into my local environment.
What I've tried
I tried a lot to get ToneEvent to work. Finally, I stumbled across the answer about how to get ToneEvent to work when looking at Scheduling in the other part of the tutorial: https://tonejs.github.io/#scheduling
Describe the bug
On the ToneEvent page in the docs, there is example code, but this code does not actually cause a sound to play when run. One has to look elsewhere to learn that Tone.getTransport().start() must be called. The line Tone.getTransport().start(); should be included on the doc page for ToneEvent.
To Reproduce
Visit https://tonejs.github.io/docs/15.0.4/classes/ToneEvent.html and copy paste then run the example code. Nothing will happen. The users must read a lot of other docs to learn why this code does not produce any sound.
Expected behavior
I would expect to be able to play a sound if I copy paste example code from a tutorial page into my local environment.
What I've tried
I tried a lot to get ToneEvent to work. Finally, I stumbled across the answer about how to get ToneEvent to work when looking at Scheduling in the other part of the tutorial: https://tonejs.github.io/#scheduling
Additional context
Link to relevant documentation: https://tonejs.github.io/docs/15.0.4/classes/ToneEvent.html
The text was updated successfully, but these errors were encountered: