12 GENERATING SOUNDS

Now it’s time for something completely different! In this next project, you’ll create a song using JavaScript and the Web Audio API. You’ll also learn some general tips about sound synthesis and how electronic music is made.

This chapter will introduce the Web Audio API and Tone.js, a JavaScript library built on top of it. This will be your first taste of the wide world of third-party JavaScript libraries, which are collections of prewritten code that you can harness to simplify complex tasks. Tone.js raises the level of abstraction compared with the Web Audio API, allowing you to think about and implement musical concepts ...

Get JavaScript Crash Course now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.