WikiWayne
Local AIWikiBenchGamesPrompt LabGrok BotAI ToolsTech NewsAboutBlogContact

As an Amazon Associate I earn from qualifying purchases. This site contains affiliate links.

WikiWayne

Independent notes on local AI, real hardware, Grok, and the games that come out of that stack.

Categories

  • Local AI Hub
  • Local AI Glossary
  • Local AI
  • AI Tools
  • Tech News

Quick Links

  • About Wayne
  • Games
  • Grok Bot
  • Contact
  • Links
  • ADHD MaxxxingSponsored
  • WikiBench
  • Methodology
  • Editorial Standards
  • Disclosures
  • Privacy Policy
  • Sitemap

Follow on X

Hardware, local models, Grok, and what I actually ship.

Follow @wikiwayne
WikiWayne© 2026
PrivacyWikiBenchMethodologyEditorialDisclosuresTermsSitemap
Home/Prompt Lab/Vinyl Deck

Vinyl Deck

PL-182MediumPage layouts & UIHTML/CSS

Timed interface animation that matches the audio state, in a layout that works on a phone.

Vinyl Deck
Download fileMade for ChatGPT, Claude, Gemini, Grok and other AI tools

How to run

  1. Download the file or copy the prompt.
  2. Upload or paste it into any AI chat or coding tool, and send.
  3. Save the HTML it gives you as a file and open it in Chrome.
  4. Open it with ?test=1 and look in the browser console for the TEST lines.

What it tests

Timed interface animation that matches the audio state, in a layout that works on a phone.

The checks

Show the 5 checks
  1. At t = 0: stats() is all zeros; trackIndex() is 0, position() is 0, armAngle() is 4 (within 0.1) and recordRpm() is 0; layout().deck height is at least 90% of the window height; at 1280x720 the record diameter is at least 55% of the window height (at 390x844, at least 80% of the window width); the three buttons are each at least 56 px wide and tall; document.documentElement.scrollWidth does not exceed window.innerWidth; every button and the scrubber lie inside the window.
  2. After attract(false) and play(): at advance(0.6) armAngle() is 14 (within 0.5) and recordRpm() is 25 (within 1); at advance(1.2) more (t = 1.8) armAngle() is 24.35 (within 0.3), recordRpm() is 33.3 (within 0.2) and position() is 0.6 (within 0.05); at advance(8.7) more (t = 10.5) turns is exactly 5, recordAngle() / 360 is between 5.59 and 5.63, position() is 9.3 (within 0.1) and armAngle() is 29.4 (within 0.3).
  3. After attract(false), play() and advance(2.0): a real drag on the scrubber (pointerdown at 20% of its width, pointermove to 51%, pointerup) gives seeks 1 and position() 12.24 (within 0.1), and the thumb center is within 3 px of scrubber.x + 0.51 x scrubber.w; reading notes right after the release, advance(2.0) adds exactly 6 notes (track 1 melody at 12.5, 13.0, 13.5, 14.0 and bass at 13.0, 14.0).
  4. After attract(false), play() and advance(2.0): reading notes just before next(), next() gives trackIndex() 1, trackChanges 1 and position() within 0.05 of 0; advance(6.25) then adds exactly 17 notes (track 2 melody at 0 to 6.0 s = 11, bass at 0 to 6.0 s = 6) and armAngle() is 27.6 (within 0.4); seek(0.99) then advance(0.4) gives position() of 24.0 (within 0.05), trackIndex() 1 and trackChanges 1; advance(0.5) more gives trackIndex() 2, trackChanges 2 and position() 0.16 (within 0.06).
  5. On a fresh load with the demo running: at t = 0.9 plays is 0, recordRpm() is 0 and armAngle() is 4 (within 0.1); at t = 1.3 plays is 1 and recordRpm() is between 8 and 17; at t = 10.4 seeks is 1 and position() is 18.4 (within 0.1); at t = 16.3 trackIndex() is 0, position() is 24.0 (within 0.05) and trackChanges is 0; at t = 17.0 trackIndex() is 1, trackChanges is 1 and position() is 0.5 (within 0.06); at t = 22.5 trackIndex() is 2 and trackChanges is 2; at t = 27.7 recordRpm() is 0, armAngle() is 4 (within 0.2), plays is still 1, turns equals floor(recordAngle() / 360), and the run has zero console errors.

Runs by model

No runs posted yet. Be the first: post yours and tag @wikiwayne.

Show the full prompt
VINYL DECK: Spinning Record, Swinging Tonearm, Scrubber and Code-Made Tracks
HOOK OBJECT: window.__deck

Build "VINYL DECK": a responsive music-player page (HTML and CSS for the layout, Web Audio for the music, no libraries) shaped like a walnut record deck. A black vinyl record spins on a platter, a tonearm swings down onto it and creeps inward as the track plays, and a scrubber, three transport buttons and a track list control it all. The three tracks are original loops made entirely in code. It is fun to keep watching because the arm, the record and the little level lights all follow the music.

LOOK
- Style: warm retro hi-fi, walnut wood deck, brushed-metal tonearm, matte black vinyl with fine grooves made from CSS gradients. Palette: wood #5A3A25 to #7A5236, panel #1E1712, text #F2E6D0, accents amber #F4B942, sea #5FA8D3, violet #C77DFF, vinyl #121212, metal #C9C9C9.
- One walnut container (layout().deck) holds everything and fills the window minus an 8 px margin. Landscape layout (window 900 px wide or more): the platter area takes the left 62% of the width and the control panel the right 38%. The record is a circle with diameter 62% of the window height (446 px at 1280x720), the center label is 28% of the record diameter and shows a generated art label (a different color for each track: amber, sea, violet, with the track number in big type). Portrait layout (under 900 px wide): the platter area on top with the record at 86% of the window width, the control panel below it. The page never scrolls: document width and height stay within the window.
- Control panel, top to bottom: track title and artist (made-up artist "The Code Cats"), the scrubber (a 44 px tall hit area with a 8 px track, amber fill and a round 22 px thumb) with "m:ss / m:ss" times, three round buttons (previous, play/pause, next) each 56 px or larger, a track list of 3 rows each at least 56 px tall with the active row highlighted, a row of 12 small level lights, and the counter line. Tracks: 1 "Paper Lanterns", 2 "Slow Tide", 3 "Night Bus".
- Tonearm: a pivot at the top-right of the platter area, a metal arm with a headshell, resting on a small rest post at 4 degrees when stopped.
- Level lights: 12 small LEDs; each note played flashes one LED bright amber that fades in 150 ms: a melody note lights the LED numbered by its scale index (0 to 9), a bass root note lights LED 10 and a bass fifth lights LED 11, so all 12 can light.
- FIRST FRAME (t = 0, no input): stopped, track 1 selected, the record still on the platter with its label, the tonearm resting at 4 degrees, scrubber at 0:00 / 0:24, all level lights dark, the deck filling at least 90% of the screen height.

MOTION / PLAY
- Controls: tap play/pause or press Space; previous / next or the left and right arrow keys; tap a track row to jump to it; tap or drag the scrubber to seek. Everything works with touch.
- Platter speed is 33 1/3 rpm = 200 degrees per second. Pressing play from stopped or paused: the platter spins up linearly from 0 to full speed in 0.8 s (it turns 80 degrees while doing so), and the tonearm swings linearly from 4 degrees to the groove angle in 1.2 s; the track position starts counting only when the needle lands (at 1.2 s). Pressing pause: the arm lifts back to 4 degrees linearly over 1.0 s and the platter spins down linearly to 0 over 1.5 s; the track position stops at once and the music stops at once.
- Groove angle: arm angle = 24 + 14 x (position / 24) degrees, so the arm creeps from 24 to 38 degrees over a 24 s track. After a seek the arm eases to the new angle over 0.3 s instead of jumping.
- Tracks are all 24 s long and made in code: Track 1 "Paper Lanterns" 120 bpm (beat 0.5 s): a music-box melody note every beat (48 notes at 0, 0.5 ... 23.5 s) plus a bass note every 2 beats (24 notes at 0, 1.0 ... 23.0 s), 72 notes in all. Track 2 "Slow Tide" 100 bpm (beat 0.6 s): a soft triangle-wave melody every beat (40 notes at 0, 0.6 ... 23.4 s) plus a bass note every 2 beats (20 notes at 0, 1.2 ... 22.8 s), 60 notes. Track 3 "Night Bus" 150 bpm (beat 0.4 s): a plucked square-wave melody every beat (60 notes) plus a saw bass every 2 beats (30 notes at 0, 0.8 ... 23.2 s), 90 notes. Melody pitches come from a seeded random walk (seed 360 plus the track index, steps of -2 to +2) over a 10-note scale spanning two octaves: track 1 C major pentatonic from C4, track 2 A minor pentatonic from A3, track 3 D dorian (first 10 notes) from D4. Bass alternates the scale's root and fifth, one octave down.
- A note triggers when the playback position reaches or passes its time. When playback starts at position p (a play, a seek or a track start), a note exactly at p triggers and notes before p do not. Notes are counted whether or not sound is on.
- Seeking: the scrubber thumb shows position / 24. While the thumb is held, playback and notes are on hold; on release the position jumps to the thumb and playback continues if it was playing. Seeking when paused only moves the position.
- Changing track (previous, next, tapping a row, or the track ending): position resets to 0, the label art swaps, the arm sweeps to 24 degrees linearly over 0.5 s, and if the deck was playing it keeps playing from 0 at once. Previous from track 1 goes to track 3 and next from track 3 goes to track 1. When a track reaches 24.0 s the position holds at 24.0 for 0.5 s (arm at 38 degrees, platter still turning, no notes), then the next track starts.
- The whole deck can be tilted: setCameraOrbit(azimuthDeg, elevationDeg, scale) applies CSS 3D (perspective 1400 px) rotateY(azimuth) rotateX(-elevation) scale(scale) to the deck, default (0, 0, 1). The first frame uses the default.
- The hook also exposes play(), pause(), next(), prev(), seek(fraction) (same code path as releasing the scrubber at that fraction, 0 to 1), attract(on) (false turns the demo off), position() (seconds into the track), trackIndex() (0 to 2), armAngle() (degrees), recordRpm() (current rpm), recordAngle() (cumulative platter degrees since load), and layout() returning { deck, record, scrubber, thumb, buttons: { prev, play, next } } where each is { x, y, w, h } in CSS px. Hook calls are not user input and do not pause the demo.
- ATTRACT MODE: with no input, a hands-free demo starts on load and loops every 28 s: hold 1.0 s; at 1.0 s press play; the needle lands at 2.2 s and track 1 plays; at 10.0 s the demo drags the scrubber to 75% (position 18.0; the thumb slides there over 0.3 s, the position jumps at once); track 1 ends at 16.0 s; the track-change gap ends at 16.5 s and track 2 starts; at 22.0 s the demo presses next, so track 3 starts; at 26.0 s the demo presses pause (arm up by 27.0 s, platter stopped by 27.5 s); hold until 28.0 s, then everything cuts back to the t = 0 state (1.0 + 1.2 + 7.8 + 6.0 + 0.5 + 5.5 + 4.0 + 2.0 = 28 s). Any input takes over; the demo resumes after 8 s with no input. Counters keep their values across the cut.

SOUND
- The tracks themselves are the sound: each melody and bass note is a short synthesized voice (music-box sine with a quiet octave overtone and a 0.6 s decay for track 1; triangle through a 1.2 kHz low-pass with a 0.9 s decay for track 2; square pluck through a 2 kHz low-pass with a 0.25 s decay for track 3; bass voices a sine, a longer sine and a low-passed saw).
- A faint vinyl crackle (short noise ticks at gain 0.02) while the platter turns, fading with its speed.
- Needle landing → a soft low thump (60 Hz, 80 ms). Arm lifting → a smaller thump (50 Hz, 50 ms).
- Button and track-row taps → a short click (1 kHz, 20 ms).
- With no AudioContext (before the first tap, and in ?test=1) nothing is played, but the notes are still counted.

COUNTERS
stats() returns { fps, plays, seeks, trackChanges, turns, notes }.
- plays: +1 each time playback is started from stopped or paused (button, key, hook or demo). Never on load.
- seeks: +1 each time the scrubber is released (tap, drag or hook seek).
- trackChanges: +1 each time the track changes (previous, next, row tap, or the track ending).
- turns: +1 each time the platter's cumulative angle passes a multiple of 360 degrees, spin-up and spin-down included.
- notes: +1 each time the synth scheduler triggers a melody or bass note.
- On screen: all five in the counter line at the bottom of the control panel, readable in a paused frame and never over the record.

CHECKS for ?test=1
With ?test=1, run an accelerated self-test that measures real positions and real events (not self-set flags) and logs "TEST n PASS" or "TEST n FAIL: reason" to the console and to window.__testResults:
Each check starts from a fresh load; advance() steps in 1/60 s increments.
1. At t = 0: stats() is all zeros; trackIndex() is 0, position() is 0, armAngle() is 4 (within 0.1) and recordRpm() is 0; layout().deck height is at least 90% of the window height; at 1280x720 the record diameter is at least 55% of the window height (at 390x844, at least 80% of the window width); the three buttons are each at least 56 px wide and tall; document.documentElement.scrollWidth does not exceed window.innerWidth; every button and the scrubber lie inside the window.
2. After attract(false) and play(): at advance(0.6) armAngle() is 14 (within 0.5) and recordRpm() is 25 (within 1); at advance(1.2) more (t = 1.8) armAngle() is 24.35 (within 0.3), recordRpm() is 33.3 (within 0.2) and position() is 0.6 (within 0.05); at advance(8.7) more (t = 10.5) turns is exactly 5, recordAngle() / 360 is between 5.59 and 5.63, position() is 9.3 (within 0.1) and armAngle() is 29.4 (within 0.3).
3. After attract(false), play() and advance(2.0): a real drag on the scrubber (pointerdown at 20% of its width, pointermove to 51%, pointerup) gives seeks 1 and position() 12.24 (within 0.1), and the thumb center is within 3 px of scrubber.x + 0.51 x scrubber.w; reading notes right after the release, advance(2.0) adds exactly 6 notes (track 1 melody at 12.5, 13.0, 13.5, 14.0 and bass at 13.0, 14.0).
4. After attract(false), play() and advance(2.0): reading notes just before next(), next() gives trackIndex() 1, trackChanges 1 and position() within 0.05 of 0; advance(6.25) then adds exactly 17 notes (track 2 melody at 0 to 6.0 s = 11, bass at 0 to 6.0 s = 6) and armAngle() is 27.6 (within 0.4); seek(0.99) then advance(0.4) gives position() of 24.0 (within 0.05), trackIndex() 1 and trackChanges 1; advance(0.5) more gives trackIndex() 2, trackChanges 2 and position() 0.16 (within 0.06).
5. On a fresh load with the demo running: at t = 0.9 plays is 0, recordRpm() is 0 and armAngle() is 4 (within 0.1); at t = 1.3 plays is 1 and recordRpm() is between 8 and 17; at t = 10.4 seeks is 1 and position() is 18.4 (within 0.1); at t = 16.3 trackIndex() is 0, position() is 24.0 (within 0.05) and trackChanges is 0; at t = 17.0 trackIndex() is 1, trackChanges is 1 and position() is 0.5 (within 0.06); at t = 22.5 trackIndex() is 2 and trackChanges is 2; at t = 27.7 recordRpm() is 0, armAngle() is 4 (within 0.2), plays is still 1, turns equals floor(recordAngle() / 360), and the run has zero console errors.

KEEP IT SHORT
- Keep the whole file under about 1,500 lines (soft target) so you can write it in one pass and finish well inside 15 minutes.
- Save lines with helpers, loops and instancing, not by dropping features. Everything above must really work: no placeholders, no TODOs.

BUILD RULES (all required):
- Deliver ONE self-contained HTML file: inline CSS and JS, no build step, no local assets. Libraries only from a CDN. If you use Three.js, use exactly this import map: {"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}}
- It must open straight from disk in desktop Chrome and on an iPhone (Safari), fill the full screen, handle resize and touch, and stay smooth (target 60 fps).
- It must look stunning in the very FIRST frame: no black screen, no loading wait, no tiny subject. The main subject fills at least 50% of the screen height.
- SOUND (required): all sound is made in code with Web Audio (no audio files). Show a small "🔊 TAP FOR SOUND" chip; on the first tap create ONE AudioContext, route everything through a master gain of 0.6 into a DynamicsCompressor, and hide the chip. Also expose enableAudio() on the hook object named at the top.
- Expose the hook object named at the top with: setCameraOrbit(azimuthDeg, elevationDeg, distance) (or an equivalent camera setter), advance(seconds) that steps the simulation exactly that much for still captures, enableAudio(), and stats() returning {fps, ...the counters named above}. Use a fixed random seed of 360 so every run is the same.
- Every on-screen counter must count a real event you can see happen. No fake numbers.
- No text overlapping the subject; any label must be readable in a paused frame.
- No brand logos, no real people, no copyrighted characters, brand names or logos.

FAILURE MODES TO AVOID
- A record that spins at the wrong speed, jerks, or keeps spinning at full speed after pause with no spin-down.
- A tonearm that jumps instead of swinging, floats off the record, or does not creep inward as the track plays.
- A scrubber you cannot drag on a phone, a thumb that does not match the position, or a seek that replays old notes.
- Notes that double up after a seek or a track change, or a track that never ends.
- Music that only works after a tap, with notes not counted before it (the counters and checks must work without any sound).
- A layout that scrolls, overflows sideways on a phone, or has buttons smaller than 56 px.
- Counters that tick on a timer, or turns that do not match what the record visibly did.
- Text over the record, or a record label too small to read.
- The same variable declared twice, or methods called on objects that don't exist yet.

SELF-TEST LOOP
- If you can run code: build the file, open it, read the console, run ?test=1, and take screenshots at 3 s, 10 s and 30 s at 1280x720 and 390x844. Look at the screenshots and fix what looks wrong. Fix and retest until all 5 checks pass with zero console errors. Mark anything you could not run as UNMEASURED; never invent results.
- If you are chat-only: go through this prompt line by line, check your code against each line, and fix anything that would fail. Then write one corrected, complete file.
- Final answer: ONE complete HTML file in ONE code block, then the 5 checks marked PASS, FAIL or UNMEASURED. No snippets, no "rest unchanged".

Built one? Post it on X and tag @wikiwaynePost on X

More Medium prompts

Floating Islands Biplane

MediumLandscapes & nature
PL-0844 runs

Electric Roadster

MediumMachines
PL-0744 runs

Football Field

MediumCreatures & characters
PL-0734 runs

More Page layouts & UI prompts

Glass Weather

EasyPage layouts & UI
PL-0634 runs

Synth Cockpit

HardPage layouts & UI
PL-0694 runs
Folio Harbor Studio

Folio Harbor Studio

HardPage layouts & UI
PL-107No runs yet