Most browsers will not play any audio until a user clicks something (like a play button). Invoke this method on a click or keypress event handler to start the audio context. More about the Autoplay policy here
document.querySelector("button").addEventListener("click", async () => { await Tone.start(); console.log("context started");}); Copy
document.querySelector("button").addEventListener("click", async () => { await Tone.start(); console.log("context started");});
Most browsers will not play any audio until a user clicks something (like a play button). Invoke this method on a click or keypress event handler to start the audio context. More about the Autoplay policy here