Game Palette: Sound triggers demo

This browser does not support HTML5 canvas; it is required to use the Game Palette library

Space starts the music and S stops it. F switches between normal and fast playback.

The music is two sounds: a four-second introduction, and an eight-second theme that loops. A trigger at the end of the introduction, added with addTrigger, starts the theme. More triggers, one on every drum beat, flash the lights in time with the music: orange for the bass drum and blue for the snare. Played fast, with playbackRate, the beats come sooner, and so do the triggers, since a trigger's time is a place in the recording.

See Sound triggers in the manual.

All demos