Commodore 64 SID Chiptune Synthesizer & Music Lab Visualizer (MOS 6581 / 8580)
Zero-dependency 3-voice Web Audio API Commodore 64 synthesizer modeling both the MOS 6581 (12V NMOS) and MOS 8580 (9V HMOS-II) Sound Interface Devices. Features Triangle ($10), Sawtooth ($20), variable 1%–99% Pulse Width ($40) with PWM LFO, and 23-bit LFSR 8-bit Noise ($80), per-voice/global ADSR envelopes, a resonant LP/BP/HP multimode filter, a 50Hz PAL / 60Hz NTSC fast arpeggiator, a 16-step sequencer, playable QWERTY/piano keys, URL-hash patch sharing, and real-time Music Lab oscilloscope & 64-bar FFT spectrum visualization.
STA $D400 6502 ASM & POKE 54272Complete Diagnostic Flowchart: Commodore 64 Blank / Black Screen Fault Isolation (Commodore 64 (ASSY 326298 / 250407 / 250425 / 250466 / 250469))
Core Capabilities & Coverage
- 3 Independent SID Voices ($D400–$D414) with Triangle, Sawtooth, variable 1%–99% Pulse Width ($000–$FFF) + PWM LFO sweep, and pitched 23-bit LFSR 8-Bit Noise.
- Authentic 4-Bit ADSR Envelope Generators (2ms–8s Attack, 6ms–24s Decay/Release, 0%–100% Sustain) with per-voice or globally linked controls and a live SVG curve preview.
- Switchable MOS 6581 (12V VDD, 470pF caps, warm nonlinear drive) and MOS 8580 (9V VDD, 22nF caps, crisp high-Q) Multimode State-Variable Filter (Low-Pass, Band-Pass, High-Pass) with individual Voice 1–3 routing toggles.
- Classic 50Hz PAL / 60Hz NTSC Fast-Arpeggio Engine, 16-Step C64 Tracker Pattern Sequencer, 8 one-click chiptune presets, 2-octave playable QWERTY/touch piano, URL-hash patch sharing (#preset=... / #patch=...), and live $D400–$D418 6502 Assembly / BASIC V2 code export.
Step-by-Step Workbench Workflow
-
1
Selecting Waveforms & Adjusting Pulse Width (1% to 99%)
For each of the 3 SID voices (Voice 1 $D400–$D406, Voice 2 $D407–$D40D, Voice 3 $D40E–$D414), click TRI ($10), SAW ($20), PUL ($40), or NOI ($80). When Pulse is active, drag the Pulse Width / Duty Cycle slider between 1% (thin nasal reed) and 50% (hollow square) up to 99%, and increase PWM LFO Sweep Depth for lush Rob Hubbard / Martin Galway modulation.
-
2
Shaping Sound with ADSR Envelopes & the 6581/8580 Multimode Filter
Adjust the 4-bit Attack, Decay, Sustain, and Release sliders on each voice (or check "Link ADSR Globally Across Voices 1–3"). Toggle Voice 1, 2, or 3 into the $D417 Multimode Filter, combine Low-Pass ($10), Band-Pass ($20), and High-Pass ($40) modes, and sweep the 11-bit Cutoff Frequency (30 Hz–12 kHz) and 4-bit Resonance (Q). Switch between MOS 6581 and MOS 8580 to compare 12V vs. 9V filter character.
-
3
Using the 50Hz/60Hz Arpeggiator, 16-Step Sequencer & QWERTY Keyboard Shortcuts
Pick an Arpeggio Chord Table (Major 0-4-7, Minor 0-3-7, Sus4 0-5-7, Octave 0-12-24, Dom7, or Custom CSV semitones) and set the raster tick rate to 50 Hz PAL (20ms) or 60 Hz NTSC (16.7ms). Click Play Pattern on the 16-Step Sequencer to loop a chiptune riff, or play live using the on-screen 2-octave piano and your computer's QWERTY keys (Z–M for lower octave, Q–I for upper octave).
-
4
Saving/Sharing Custom Patches, Playing .SID Files & Editing PSID/RSID Headers
Click any of the 8 built-in synth presets or click "Share Patch URL" to encode your complete synth state into a bookmarkable #patch=... link. To play existing C64 .SID files, open the companion .SID File Player & Header Editor (/bench-tools/sid-player) to drop PSID/RSID files, solo/mute individual voices, override $D415–$D418 filters live, edit Title/Author/Released/Clock headers, and download patched .SID or 16-bit .WAV files.
To recreate classic C64 lead sounds on a single voice while keeping Voices 2 and 3 free for bass and percussion, set Voice 1 to Pulse (38% duty cycle) + 30% PWM LFO, enable the 50Hz PAL Major or Minor Arpeggiator, and route Voice 1 + Voice 2 through the Low-Pass filter while leaving Voice 3 (Triangle sub-bass) unfiltered!
MOS 6581 (+12V VDD, 470pF) vs. MOS 8580 (+9V VDD, 22nF) Hardware Swap Warning: Never plug a 9V MOS 8580 / 6582 SID directly into an unmodified 12V longboard C64 (ASSY 250407/250425) or SX-64 socket—the +12V rail on Pin 28 will overheat and destroy the 8580 analog output stage! Always check C1/C2 filter capacitor values (Pins 1–4) when servicing SID sockets.