start #

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('#playbutton').addEventListener('click', async () => {
	await Tone.start()
	console.log('audio ready')
})
start ( ) => Promise<void >