Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda