A drum-and-bass step sequencer: a look-ahead scheduler, swing, pitched bass steps and a visual that reads the app's own sound output.

A drum-and-bass step sequencer: a look-ahead scheduler, swing, pitched bass steps and a visual that reads the app's own sound output.
7 models tried this prompt on a first try; 2 passed. Showing 4.
Objects fell through the floor.
Objects fell through the floor.
PL-071 "Neon Beat Lab": build a playable music toy, a drum-and-bass step sequencer with an animated visual, in a single HTML file using Web Audio and Canvas 2D or Three.js (from a CDN). Style: neon synthwave, background #120024, accents #ff2bd6 and #2bf0ff. - 4 tracks: kick, snare, hi-hat and bass. All sounds are synthesized live with Web Audio oscillators and noise. No audio files. - 16-step grid per track, with each cell at least 36x36 px and a 4px gap. Active cells are lit; the current step column glows. - Timing uses a lookahead scheduler (AudioContext.currentTime plus setTimeout or setInterval), NOT setInterval alone, so the beat stays tight even when the tab is busy. - BPM slider from 60 to 180 (default 120). Swing slider from 0 to 60%. - The bass track has a pitch per step: click a lit bass cell to cycle through C2, D#2, F2, G2 and A#2. - Behind the grid there's a visualizer that reads the app's own music output through an AnalyserNode: a synthwave sun and grid floor pulse with the kick, plus a live frequency bar strip. - Preloaded with a seeded default pattern (seed 71) so pressing Play makes music right away. A Play/Stop button is required: audio starts only after a user tap, which iPhone needs. - Buttons: "Clear", "Randomize" (seeded, reproducible: pressing it twice after a reload gives the same 2 patterns), and "Show pattern" (opens a small panel showing the current pattern as JSON text; "Hide" closes it). - This is a self-contained music toy: it only plays sounds it generates itself. It uses no microphone, camera, storage, or network. - Top panel: "BPM: N", "Step: N/16" (matches the glowing column), "Loops: N" (goes up by 1 only when step 16 wraps to step 1). PASS/FAIL CRITERIA 1. Pressing Play makes music within 1 second, on desktop and on iPhone. 2. The beat stays steady for 2 minutes with no audible drift, and the step glow stays in sync with the sound. 3. BPM and swing change live without stopping playback. 4. Bass cells cycle through the 5 notes and sound at those pitches. 5. The visualizer visibly reacts to the kick, and the frequency bars move with the audio. 6. "Step" and "Loops" counts always match what's on screen and what you hear. 7. Randomize is reproducible after a reload, and Show pattern displays valid JSON matching the grid. 8. Zero console errors. RULES FOR EVERY BUILD - Output ONE self-contained file named index.html: inline CSS and JS, any library only from a public CDN, no other files, no build step. Add <link rel="icon" href="data:,"> so there is no favicon 404. - It must open straight from disk in desktop Chrome and on an iPhone in Safari, fill the screen, and resize cleanly with no scrollbars. - Zero console errors or warnings on load and while interacting. - Animation runs on requestAnimationFrame and stays smooth (about 60fps on a laptop). WORK LOOP (do this yourself before answering) 1. Build the file. 2. If you can run code, open it in a browser, read the console, take screenshots at 3 s and 6 s, and test the interactions. If you can't run code, mentally trace the code against the checklist line by line. 3. Mark every checklist item PASS or FAIL. Mark PASS only when it is visibly true on screen, not just present in the code. 4. Fix every FAIL and recheck. Repeat until all items pass. 5. Final answer: the complete index.html in ONE code block, output once, then the checklist with PASS/FAIL. Nothing else.
Built one? Post it on X and tag @wikiwaynePost on X