READER EDITION / ISSUE 001 / Revised 2026-11-15
Creative Agentic Computing
CodeFarmer / Issue 001
PROMPT-IN 003 / THE COMPLETE BRIEF

Give an idea
a pulse.

Complete brief / keep the acceptance checks
Build Pocket Sequencer in one self-contained HTML file named 003-pocket-sequencer.html. Use embedded CSS and JavaScript, system fonts and Web Audio synthesis. Make four note rows: C4, E4, G4 and C5, each with eight steps. Each step is an eighth note. Start with a simple eight-note demo pattern and tempo 110 BPM. Allow tempo from 40 to 240 BPM. Use toggle buttons with note/step labels, pressed states and a visible active mark. Add Play/Stop, Clear and Load melody. Create or resume audio only after the user presses Play. Use a short attack/release envelope and modest gain. Schedule ahead using the audio clock; update visual steps in time with playback. Stop scheduled notes, timers and highlights on Stop, page hiding or window blur. Show an informative error if audio cannot start. Let the pattern scroll horizontally on small screens while the page stays within the viewport. Support keyboard operation and visible focus. Explain that device volume affects listening. Add a JSON text notebook storing version=1, integer BPM and four arrays of eight booleans. Restore must validate the full shape and preserve the current pattern on invalid input. Test pattern toggling, tempo, Play/Stop, non-zero rendered audio from the production note generator, save/restore, invalid input and switching away. Test 390, 540 and 1000-pixel layouts. Report what was actually verified; distinguish synthesized output from a listening review.