Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

209
Views
Tone.js: Tone.start is not a function

I'm struggling to simply get Tone.js to work at all. At first I realized I needed to activate the web audio context on a button click. However, now I'm running into this issue: Tone.start is not a function.

My code is the simplest, shortest possible I could get it:

index.html:

<!DOCTYPE html>
<html>
    <head>
        <title>Tone.js</title>
        <meta charset="utf-8" />

        <script type="module" src="app.js"></script>
    </head>
    <body>
        <button>Start</button>
    </body>
</html>

App.js:


import * as Tone from './node_modules/tone/build/Tone.js'

window.onload = function() {

    document.getElementsByTagName('button')[0].addEventListener('click', startTone);
}

async function startTone() {
    await Tone.start();

}

This is based on the official documentation, under "Starting Audio". Also for reference I'm running this in Chrome.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!