Idea · Oct 5, 2026
Build Your Own Multitrack Audio Editor
Students build a browser-based, non-destructive multitrack audio editor: waveform rendering, clip edit lists, undo/redo, a mixer with gain and pan, and WAV export.
What it would do
Inspired by Audionaut, an open-source cross-platform multitrack editor that hit the Hacker News front page, this multi-week assignment uses audio as a vehicle for core data structures and systems ideas. Milestone 1 decodes files with the Web Audio API and draws zoomable waveforms using precomputed min/max peak pyramids (a lesson in multi-resolution summaries). Milestone 2 adds non-destructive editing: each track is an edit list of clips pointing into immutable buffers, the audio analog of a piece table, so cut, split, trim and move never copy samples. Milestone 3 implements undo/redo with the command pattern and a playhead scheduler that stays sample-accurate across clip boundaries. Milestone 4 adds a mixer (gain, pan, mute, solo, simple fades) and offline rendering to a WAV file the students encode by hand from the RIFF header up. A grading harness feeds scripted edit sequences and compares rendered output against reference renders sample by sample, so correctness is objective.
Key features
- Peak-pyramid waveform rendering that stays smooth from full song to single samples
- Edit-list clips over immutable buffers (a piece table for audio) with split, trim and move
- Command-pattern undo/redo and a sample-accurate playback scheduler
- Mixer with gain, pan, mute/solo and crossfades, plus offline render to hand-encoded WAV
- Autograder that replays edit scripts and diffs rendered samples against a reference