23  Building a Step Sequencer

Music applications, like sequencers and drum machines, allow users to record, edit, and play back sounds as a collection of organized note arrangements. Due to the nature of the Web Audio API and its relationship to the DOM, music sequencing applications are a challenge to create. In this chapter, you will learn why this is so and how to meet the challenge by building a basic drum pattern step sequencer.

Images  The Problem

The Web Audio API lets you schedule events immediately or in the future. A problem with this approach is that once an event is scheduled, it cannot be unscheduled. So for example, the following code ...

Get JavaScript for Sound Artists 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.