Inspiration
How to Build a Fictional 1970s Analogue Synthesiser in the Browser Using Claude 3.5 Sonnet and Web Audio API
Step back to 1974. Learn how to prompt Claude to generate a fully interactive, retro-styled synthesiser using Web Audio API and gorgeous SVG UI controls.
Updated 10/29/2026
Why the Analogue Aesthetic Rules the Browser
There is something deeply satisfying about the tactile click of an old toggle switch, the heavy resistance of a solid-state dial, and the warm, slightly unstable drift of a physical oscillator. Modern web interfaces are often flat, sterile, and aggressively optimised for speed over soul. But we are here to build toys, not spreadsheets.
Using Claude 3.5 Sonnet, you can build a fully functional, fictional 1970s analogue synthesiser directly in your browser. By pairing Claude's stellar code generation with the native Web Audio API and some clever SVG layout tricks, you can create a nostalgic, interactive musical instrument complete with wood-paneled side cheeks, glowing VU meters, and dial controls that actually modify your sound. Let us dig into what makes this instrument tick.
Which AI should I use for this?
Tickd is independent and not affiliated with any AI company.
The Stack: Web Audio API meets SVG
To make a web app look and feel like an authentic piece of hardware, you need to step away from standard HTML form elements. No one wants to slide a browser-default <input type="range"> to control a vintage filter sweep.
We will be prompting Claude to build a single-file prototype using: - HTML5 Web Audio API: For real-time, low-latency audio synthesis using native oscillators, gain nodes, and biquad filters. - Inline SVG: To render realistic, rotatable dial knobs, retro toggle switches, and brushed-metal faceplate panels. - Vanilla JavaScript: To bind mouse and touch drag events directly to the Web Audio node parameters.
Using Claude to orchestrate this setup is highly effective because the model understands the mathematical mapping of linear slider inputs to logarithmic frequency responses. This means your filter sweeps will sound satisfyingly musical rather than jarring.
The Master Prompt for Claude
To get a polished, functional result on your first run, your prompt needs to be highly specific about the layout, the visual aesthetic, and the audio signal routing. Copy and adapt the following prompt into Claude:
`text
Create a single-file, responsive HTML5 application containing an interactive, fictional 1970s analogue synthesiser. Use vanilla JavaScript and the Web Audio API.
Visual requirements: 1. A retro, skeuomorphic faceplate design with dark brushed-metal or cream-coloured background and walnut wood end-panels. 2. Three main sections clearly labelled: OSCILLATOR, FILTER, and ENVELOPE (ADSR). 3. Custom interactive SVG dials for Coarse Pitch, Fine Tune, Filter Cutoff, Filter Resonance, Attack, Decay, Sustain, and Release. 4. Vintage toggle switches for Waveform Select (Sine, Triangle, Sawtooth, Square) and a glowing orange power switch. 5. A virtual 13-key piano keyboard (C to C) at the bottom. Active keys should depress visually.
Audio engine requirements: 1. Create an AudioContext that resumes on user interaction (to bypass browser autoplay blocks). 2. Implement a monophonic synthesiser voice. Playing a key triggers an OscillatorNode routed through a BiquadFilterNode (lowpass) and a GainNode for volume shaping. 3. Implement a complete ADSR envelope generator that modulates the gain node on keydown and keyup events. 4. Map the SVG dials to adjust the respective Web Audio node variables. Cutoff should range from 40Hz to 12000Hz using a logarithmic scale. 5. Dials must be turnable using vertical drag gestures with the mouse or touch.
All CSS, JS, and HTML must be self-contained in a single, well-structured file.
`
This prompt forces Claude to focus on the skeuomorphic design details while ensuring the math behind the Audio API maps correctly to the visual controls.
Understanding the Code Architecture
When Claude outputs your code, you will notice a few core architectural patterns that make this project work beautifully.
First is the Audio Node Graph. Claude will instantiate a simple but highly effective signal chain:
`javascript
// Oscillator -> Lowpass Filter -> Gain (ADSR) -> Destination
const osc = audioCtx.createOscillator();
const filter = audioCtx.createBiquadFilter();
const amp = audioCtx.createGain();
osc.connect(filter);
filter.connect(amp);
amp.connect(audioCtx.destination);
`
Second is the Logarithmic Mapping for the filter. If you map a standard knob (0 to 100) linearly to a frequency scale (20Hz to 20,000Hz), almost all the useful action will be squeezed into the last tiny fraction of the knob’s rotation. To make it feel like real hardware, Claude uses exponential scaling:
`javascript
// Mapping a 0-1 control to logarithmic frequency
function valueToFrequency(val) {
const minFreq = 40;
const maxFreq = 12000;
return minFreq * Math.pow(maxFreq / minFreq, val);
}
`
Third is the SVG Knob Interaction. Claude handles this by attaching pointer listeners to the SVG groups. As the user drags upward, the script calculates the delta, updates an internal variable, and applies a CSS transform: rotate(...) style to the visual knob pointer, completing the hardware illusion.
Adding Fictional Details and Polish
Once you have the base app running, you can prompt Claude to add those extra touches that elevate it from a tech demo to an art piece: - Oscillator Drift: Add a tiny, random low-frequency LFO to the pitch parameter to simulate the unstable temperature of vintage transistors. This gives the sound a lush, organic quality. - Saturator/Distortion Node: Add a WaveShaperNode into the signal path that can be toggled on with a "Warmth" or "Overdrive" switch. - Authentic Typography: Use clean, slightly distressed sans-serif fonts resembling classic label-maker tape or screen-printed faceplate text.
If Claude gets stuck on handling browser-specific audio quirks—such as audio popping or stuttering—refer to our Claude troubleshooting hub to fine-tune your asset delivery.
Testing and Exporting Your Creation
To run your new browser toy, copy the code generated by Claude, save it as an .html file, and open it in any modern browser. Ensure your speakers are turned down slightly before hitting that retro power switch; analogue emulation can get delightfully loud and crunchy when you crank up the filter resonance!
If you want to design more visual layouts and mockups for physical hardware front panels, you can combine this synthesiser workflow with generative vector tools like Figma Weave to export crisp, production-ready console designs.
Keep going
Build something with the prompt generator, decode the jargon in the glossary, or compare the tools on our platform deep-dives.