8000 feat(arrange): screen-blend mel overlay on Polaroid + FilmStrip Frame by johannboehme · Pull Request #42 · johannboehme/tk-1 · GitHub
[go: up one dir, main page]

Skip to content

feat(arrange): screen-blend mel overlay on Polaroid + FilmStrip Frame 8000 - #42

Merged
johannboehme merged 1 commit into
mainfrom
claude/intelligent-matsumoto-83bae7
May 9, 2026
Merged

johannboehme merged 1 commit into
mainfrom
claude/intelligent-matsumoto-83bae7

Conversation

@johannboehme
Copy link
Copy Markdown
Owner

Summary

  • Each chunk's OP-1 amber phosphor mel-spectrogram screen-blends onto the video still in both the Polaroid (contact-sheet pool) and FilmStrip Frame (arranged strip). Audio identity now reads at a glance next to the video — wine-floor LUT keeps the photograph visible through quiet bins, loud peaks light it up like a darkroom double exposure.
  • Duration-aware aggregation handles 10 s clips and 6 min clips at the same pixel width: max-pool preserves percussive peaks instead of smearing them, p95 normalise keeps exposure consistent. At long durations the spec naturally shifts from "you see the beats" to "you see the song structure" (intro · verse · chorus · break · chorus · outro reads as bright/dark blocks).
  • PHOSPHOR_LUT extracted from PlayerCockpit into a shared chunk-mel-render module; Cockpit's MelDisplay now imports it (no behaviour change there).
  • Frame canvas resolution scales with the Frame's display width so length-proportional strip cells don't pixelate.

Test plan

  • pnpm test — 969 tests pass, 8 new tests for maxPoolTimeAxis + normalizeP95
  • tsc --noEmit clean (pre-existing WASM-pkg errors unrelated)
  • Open a job with chunks of varied lengths in arrange — confirm:
    • Mel fades in once worker delivers data (600 ms ease-out)
    • Quiet sections stay near-black so the photo reads through
    • Loud rhythmic sections show as amber bands over the still
    • Long chunks (>3 min) read as song-structure energy arcs in the strip
    • Cockpit MelDisplay still looks identical (LUT extraction is a no-op there)
    • Spectral hue stripe on the right edge stays on top of the overlay

🤖 Generated with Claude Code

Each chunk now glows its OP-1 amber phosphor mel-spectrogram on top of
the video still via mix-blend-mode: screen — the wine-floor LUT keeps
quiet bins near-black so the photograph reads through, while loud peaks
light it up like a darkroom double exposure. Audio identity reads at a
glance alongside the video frame, in both the contact-sheet pool and
the arranged film strip.

Duration-aware aggregation:
- maxPoolTimeAxis: per-bin peak per pixel column. Mean-pool would
  smooth percussive transients into a uniform smear at long durations;
  max-pool keeps the rhythmic / structural character visible from 10 s
  all the way to 6 min.
- normalizeP95: 95th-percentile non-trivial value maps to 255, so
  exposure stays consistent across short and long chunks.

Frame canvas resolution scales with the Frame's display width so
length-proportional strip cells stay crisp instead of blurring a fixed
column count across hundreds of pixels.

PHOSPHOR_LUT extracted from PlayerCockpit into the shared
chunk-mel-render module — Cockpit MelDisplay now imports it (no
behaviour change).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@johannboehme
johannboehme merged commit e6c86b3 into main May 9, 2026
1 check passed
@johannboehme
johannboehme deleted the claude/intelligent-matsumoto-83bae7 branch May 9, 2026 16:42
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.

1 participant

0