Viewing a saved revision (read-only)
8bb419011817498c848c71610d098de9
Tone.js - Rock drum sounds + Reverb
This example demonstrates how to create a rock drum beat with reverb using the Tone.js audio library. It plays a sequence of kick, snare, and hi-hat sounds through reverb and filter effects. The drum pattern data is defined as strings representing eighth-note sequences. The interface shows a Play button that triggers the audio and displays "Playing" text. The code uses Tone.Sequence, Tone.Reverb, Tone.Filter, Tone.NoiseSynth, Tone.Synth, and Tone.MembraneSynth to construct the beat.
AI-generated descriptionThis example is based on the book "JavaScript Crash Course: A Hands-On, Project-Based Introduction to Programming" by Nick Morgan, No Starch Press, 2024.
Visit also my repo https://github.com/ax-va/JavaScript-Crash-Course-Morgan-2024.