Commodore 64 SID Chiptune Synthesizer & Music Lab Visualizer (MOS 6581 / 8580)
Zero-dependency 3-voice Web Audio API MOS 6581 & 8580 SID synthesizer with variable pulse width (1%–99%), ADSR envelopes, multimode resonant filter, 50Hz/60Hz arpeggiator, 16-step sequencer, and real-time Music Lab FFT & oscilloscope visualizer
Active Silicon Model
MOS 6581R4 (12V VDD)
Φ2 Clock & Frame IRQ
PAL 985.248 kHz (50 Hz)
Voice 1–3 Waveforms
V1: PUL · V2: SAW · V3: TRI
Multimode Filter ($D415–$D417)
LP · $380 (2150 Hz)
Master Vol ($D418)
$0F (85% Gain)
$0D
Voice 1 $D400–$D406
42% ($6B8)
28%
+0 oct
+0 ct
$1
$6
$B
$5
Voice 2 $D407–$D40D
50% ($800)
15%
+0 oct
+7 ct
$1
$5
$A
$5
Voice 3 $D40E–$D414
50% ($800)
0%
-1 oct
-4 ct
$0
$7
$C
$4
SID Multimode Filter & Envelope Curve ($D415–$D418)
C1/C2: 470 pF (6581)
2150 Hz ($380)
6 / 15 ($60 · Q=4.8)
20%
50Hz PAL / 60Hz NTSC Fast-Arpeggio Engine
TICK: 50 Hz (20 ms)Classic Commodore 64 chiptunes simulate polyphonic chords on a single SID channel by cycling semitone offsets every VIC-II raster frame (50 Hz PAL or 60 Hz NTSC).
Major (0, 4, 7)
50 Hz PAL
CSV Steps
12 cents @ 5.5 Hz
16-Step C64 Tracker Pattern Sequencer
STEP: 01 / 16Playable 2-Octave SID Keyboard (Mouse, Touch & QWERTY)
Lower Octave:Z S X D C V G B H N J M · Upper Octave: Q 2 W 3 E R 5 T 6 Y 7 U I
Base: C3–C5
Live MOS 6581/8580 Register Map ($D400–$D418) & 6502 / BASIC Export
54272–54296 Decimal
📖 How to Use the SID Synth & Music Lab Visualizer (Quick Workbench Guide) Click to Expand / Collapse ↓
- Selecting Waveforms & Adjusting Pulse Width: Each of the 3 independent SID voices (
$D400–$D414) offers four classic waveforms: Triangle ($10) for warm flute/sub-bass tones, Sawtooth ($20) for brassy leads, Pulse ($40) with a live 1% to 99% Duty Cycle slider (12-bit$000–$FFF) and PWM LFO Sweep for thick Rob Hubbard / Martin Galway timbres, and 8-Bit LFSR Noise ($80) for pitched C64 drums, snares, and explosion SFX. - Shaping Sound with ADSR Envelopes & the 6581/8580 Multimode Filter: Adjust the 4-bit Attack, Decay, Sustain, and Release sliders per voice (or enable Link ADSR Globally) while watching the live SVG envelope curve. Route any combination of Voice 1, 2, or 3 through the multimode
BiquadFilterNode(Low-Pass, Band-Pass, High-Pass) and sweep the 11-bit Cutoff Frequency and 4-bit Resonance (Q). Toggle between MOS 6581 (warm 12V saturation) and MOS 8580 (crisp 9V high-Q curve). - Using the 50Hz/60Hz Arpeggiator, 16-Step Sequencer & QWERTY Keyboard: Select a chord table (Major, Minor, Sus4, Octave, Dom7, or Custom CSV semitones) and choose 50 Hz PAL or 60 Hz NTSC frame tick rates to hear authentic C64 fast-arpeggios. Click Play Pattern on the 16-Step Sequencer or play live using the 2-octave on-screen piano and your computer's QWERTY keys (
Z–MandQ–I). - Saving & Sharing Custom Patches via URL (
#preset=.../#patch=...): Click any of the 8 built-in chiptune presets or click Share Patch URL to encode all 3 voices, ADSR settings, filter routing, arpeggio table, and 16-step pattern into a bookmarkable URL hash. For the full chapter manual, see the How-To & Bench Tools User Guide (/how-to) →
Hardware & SID Architecture — Inside the MOS 6581 & 8580 Sound Interface Device
Designed by Bob Yannes (who later co-founded Ensoniq) in 1981, the MOS 6581 and MOS 8580 SID chips transformed home computer audio from primitive 1-bit beepers into a true subtractive synthesizer on a single 28-pin DIP hybrid NMOS/HMOS-II die:
- 24-Bit Phase Accumulating Oscillators & Variable Pulse Width (
$D400–$D414): Each of the three voices uses a 16-bit frequency register clocked by the Commodore 64's Φ2 system clock (985.248 kHzon PAL or1.022727 MHzon NTSC). The upper 12 bits of the phase accumulator are compared against a 12-bit Pulse Width register ($000–$FFF) to generate a variable duty cycle from 1% to 99%, while a 23-bit Linear Feedback Shift Register (LFSR) generates pitched digital noise for drums and arcade sound effects. - MOS 6581 (12V NMOS) vs. MOS 8580 (9V HMOS-II) Filter & Pin 1–4 Capacitors: On longboard C64s (ASSY 250407 / 250425) and the SX-64 Executive Portable, the 6581 SID runs its analog filter and output buffer from +12 V DC on Pin 28 (
VDD) with 470 pF polystyrene/ceramic filter capacitors across Pins 1–2 (CAP1A/B) and Pins 3–4 (CAP2A/B). On shortboard C64Cs (ASSY 250469) and the C128DCR, the 8580 SID uses +9 V DC on Pin 28 and 22 nF filter capacitors (which you can decode in our Resistor & Capacitor Calculator). Never drop an 8580 into an unmodified 12V 6581 socket without a 9V regulator adapter! - Probing Pin 27 (
AUDIO OUT) & 8-Pin DIN A/V Routing: The SID's single mixed output leaves Pin 27 riding on a ~6 V DC bias (6581) or ~4.5 V DC bias (8580), passes through a 1–10 µF AC coupling capacitor and an NPN emitter-follower buffer, and exits on Pin 3 (Audio Out) of the C64 8-Pin DIN A/V Connector. If your C64 boots with video but has dead or distorted sound, follow our Hardware Diagnostic Flowchart and compare Pin 27 in the Signal & Trace Visualizer. - Workbench & Sister Repair Services: Servicing vintage audio gear, RF/IR handsets, or mainboard recaps? Check our Repair & Bench Notes and Off the Bench Transmission Logs, or visit Smiggy's sister properties — Remote Fixer (remotefixer.co.uk) for UK no-fix-no-fee remote control repairs and Remote Shop (remoteshop.co.uk) for replacement clone handsets.
Comments (0)
No comments yet. Be the first to share your thoughts on this tool!
Leave a Comment