mdn / webaudio-examples

Code examples that accompany the MDN Web Docs pages relating to Web Audio.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
Creative Commons Zero v1.0 Universal
1.29k stars 433 forks source link

Update audio-basics to modern JS #64

Closed teoli2003 closed 2 years ago

teoli2003 commented 2 years ago

This is part of our project to update code to a more modern JS syntax.

This PR updates the audio-basics example:

In addition:

Tested on Firefox, Safari, and Chrome (macOS) via a local server.