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

208
Views
Tone.js: Tone.start no es una función

Estoy luchando para simplemente hacer que Tone.js funcione. Al principio me di cuenta de que necesitaba activar el contexto de audio web con un clic de botón. Sin embargo, ahora me encuentro con este problema: Tone.start is not a function .

Mi código es el más simple y corto posible que pude obtener:

índice.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>

Aplicación.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(); }

Esto se basa en la documentación oficial , en "Audio de inicio". También como referencia, estoy ejecutando esto en 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!