/oberon-8
prompt.txt
01Create a fully functional, professionally architected polyphonic audio synthesizer and look-ahead step sequencer in a single HTML file. No external dependencies.
02Requirements:
03Playable with a computer keyboard (Z-M row = lower octave, Q-I row = upper octave, with standard black key spacing) and a clickable visual keybed.
04The UI must be a meticulous, photorealistic hardware console. Modules must be purposefully housed, spatially logical, and visually distinct (chassis, screws, paneling, bezels). Do not use standard web forms.
05True analog-modeled polyphony (at least 8 simultaneous voices) with intelligent oldest-note voice stealing.
06At least 3 waveform types: sine, square, sawtooth (selectable via hardware-style switches).
07Voltage Controlled Amplifier (VCA) and Voltage Controlled Filter (VCF) driven by an ADSR envelope.
08ADSR controls must be vertical sliders. Filter Cutoff, Resonance, and Envelope Modulation amount must be rotary knobs.
09DSP Effects: Custom-generated Plate Reverb (using a synthesized impulse response) and a Delay line (adjustable time, feedback, and mix).
10Octave shift controls.
11Visual displays: A CRT-style green phosphor oscilloscope showing real-time waveforms, and a segmented LED VU meter reacting accurately to output levels.
12All knobs and sliders must be fully interactive (click and vertical drag to adjust).
13Award-winning DSP engineering: Flawless gain staging, a master bus limiter to entirely prevent clipping, and asymptotic/exponential envelope curves to prevent zero-crossing audio clicks.
14Built-in Sequencer: Implement a sample-accurate, look-ahead step sequencer. It must bypass JavaScript main-thread timing jitter to ensure mathematically perfect playback. The sequence engine must be robust enough to handle massive arrays of note data without performance drops.
15Musical Composition: You must compose and program three distinct, full-length musical arrangements into the sequencer. Triggering a track must automatically update the synth's UI parameters (preset) to match the genre.
16Crucial Track Requirements: Each track must be a full, uniquely evolving song that lasts at least 30 seconds from start to finish. You are strictly forbidden from just looping a 4-bar or 8-bar pattern. Each song must feature clear structural progression (e.g., intro, rising action, climax/chorus, melodic variations, or bridges), must not feel repetitive, and must feel like a complete musical thought. The tracks must be:
17A Disco arrangement (requiring tight ADSR decay, snappy filter envelopes, syncopated basslines, and evolving chord progressions).
18A Video Game / Arcade Boss arrangement (requiring pure square waves, zero-release gate times, high-speed precision arpeggios, and intense melodic switch-ups).
19A genre of your choosing (e.g., Synthwave) that heavily demonstrates massive polyphony, deep delay lines, analog-modeled filter sweeps, and an atmospheric, cinematic progression.