Repository navigation
MusicGen v2.2.0
MusicGen v2.2.0 — AudioWorklets, microtuning, groove editor
Live demo: https://drsamonline.github.io/musicgen/ · Studio: https://drsamonline.github.io/musicgen/app/
The last big synthesis gap
Two real DSP processors, both running on the audio thread:
granular-voice— overlapping Hann-windowed grains with pitch scatter derived from a hash of the note, so it stays deterministic across exports.physical-voice— a fractional-delay waveguide with one-pole damping and a seeded excitation burst.
Both are per-track nodes loaded with addModule, and both fall back to native nodes if anything fails — the app never depends on a worklet. A third worklet, clock-tick, lets the scheduler run off the audio thread instead of setInterval, which is the difference between steady tempo and wobble when the main thread is busy.
Composer
Microtuning (just intonation as cents per pitch class), a 16-step groove editor for kick/snare/hat, polymeter (three against four), automation envelopes drawn from the tension curve, instrument variants (three flavours per tech), drum depth (metallic hats, layered claps, woodier rim), noise beds for ambient and cinematic songs, and per-track FX (delay division and drive, with gain compensation so drive adds colour rather than level).
Bass leaps are now validated in every style, not just jazz.
App
A settings dialog, live recording to WebM via MediaRecorder, a protocol handler (web+musicgen://), a spectral tilt report and a generated CHANGELOG.
Numbers
116 automated tests (32 unit + 84 browser). Master gain was recalibrated after the new drive/EQ stages: every style now renders within 2 LUFS of its target with true peaks below −1 dBTP. axe-core clean in dark, light and desktop; determinism lint and budget check green; CI green on 073d058.
COMPOSER_VERSION is now 3 — the golden seeds were updated deliberately, and old share links will say so.
Install
unzip musicgen-v2.2.0.zip && cd musicgen-v2.2.0/app
python3 -m http.server 8080MIT licensed. Music you make with it is yours.