Skip to content

Tap Marks: tap keys while a song plays to mark its moments - #24

Open
BPMData wants to merge 1 commit into
mainfrom
claude/project-thread-kd0q3c
Open

BPMData wants to merge 1 commit into
mainfrom
claude/project-thread-kd0q3c

Conversation

@BPMData

@BPMData BPMData commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Before: there was no way to mark the important moments in a song by ear. A music video's effects had to be described in words ("a snowflake splash on every big beat") and guessed from the audio.

After: tapmarks/tapmarks.html opens a song, and you tap keys while it plays. Each key gets its own row, its own label and notes (e.g. "reserve the really aggressive splash and shake effect for this key"), and the marks save as a .tapmarks.json a music video or Claude can read. Double-click it (works offline), or install it as an app from the Pages copy once this is merged.

What it does:

  • Enter plays/pauses; letters, digits and Space drop marks; holding a key records how long.
  • Timing fix (on/off switch): each tap snaps onto the clear hit in the music within ±100 ms (adjustable), and stays put when there isn't one. The original press is always kept and shown (faint tick and line); the clear hits are shown under the waveform. A "my taps land late by" setting and the median lateness readout cover systematic delay.
  • Arrows/Home and clicking the waveform to seek; pick, drag, nudge (, .), delete (Delete or right-click); Backspace takes back the last mark; Ctrl+Z / Ctrl+Shift+Z.
  • Save/Load/Copy JSON, plus per-song autosave in the browser.

How: one self-contained HTML file (Web Audio for decoding and playback; spectral-flux onsets placed to ~0.5 ms on the amplitude envelope; taps stamped from the key event through getOutputTimestamp()). manifest.webmanifest + sw.js + icons make it installable when served over https. tapmarks/CLAUDE.md documents the JSON for later Claude sessions; root STATUS, README, index.html (new Tools card) and the CLAUDE.md map are updated, and tapmarks/ joins the design-stage restricted list.

Tested in headless Chrome 131 with tapmarks/tests/qa.js: 22 of 22 checks pass on a generated click track (clicks found exactly, taps 30–90 ms off snap exactly, live key presses while playing snap onto the clicks, holds, undo, drag, switch off, export/import, reopen-restore). A 4-minute stereo track analyses in about 2 s. Not tested: real speakers, a real keyboard, real songs, and installing from Pages.


Generated by Claude Code

New tapmarks/ tool (Bryan's spec, Dec 2): one offline HTML app, installable from Pages.
Open an MP3/WAV, press Enter, tap letters/digits/Space; one row per key with a label,
notes and colour. Timing fix snaps each tap onto a clear hit within a reach (raw press
kept, switchable, 'late by' setting). Pause/seek, pick/drag/nudge/delete, Backspace takes
back the last mark, undo/redo, holds, JSON save/load/copy, per-song autosave.
tests/qa.js: 22 checks on a generated click track (headless Chrome). Docs: tapmarks/
CLAUDE.md (JSON format), README, STATUS; root STATUS, README, index.html, CLAUDE.md map;
tapmarks/ added to the design-stage restricted list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants