Resources
Blog Docs Source Status
Social
Discord IRC Bluesky X/Twitter
Contact
team@tangled.org security@tangled.org
Legal
Terms of Service Privacy Policy

Sign in Join now
hackermusic 2000.nyc /
Star Starred Star 0
Something went wrong. Try again.
Fork 0
Eye filled Watch Watching Watch
Star Starred Star 0
Something went wrong. Try again.
Fork 0
Eye filled Watch Watching Watch
Overview Overview Issues Issues Pulls Pulls Pipelines Pipelines
hackermusic /scripts /neural-beat /shell.nix
159 B 4 lines
Nix
at main

Download Open raw file
2000.nyc
The bar keeps time with a neural beat tracker now, and the tempo is the number the grid actually keeps. Beat This! (Foscarin, Schluter & Widmer, ISMIR 2024) ships as small0 — 2M params, 11 MB of MIT weights exported once to ONNX by scripts/neural-beat/ and never needing python again — inference in a dedicated module worker over onnxruntime-web (webgpu where the browser offers it, wasm everywhere else), the log-mel frontend and keep_first chunking ported in pure TS and pinned to the authors' own torch outputs as goldens (the goldens being how torchaudio's *reflect* center-padding got found, where a port that guessed zeros was 0.79 log-units wrong on every track's first beat). The Ellis DP stays as the fallback it always was: every track the network abstains on, and every browser that will not run its wasm, is answered by the dynamic program exactly as before, and the search can never tell the two apart. The worker answers samples-in-grid-out or null and never rejects; two failures retire it for the session; a track the network has not finished thinking about in 45 s falls back mid-question. The reported tempo became the median inter-beat interval rather than the mean, because a mean cannot tell 'the track is slower' from 'the model lost two beats in the bridge' — music felt at 137 was reporting at 131, and the test pins both numbers; the grid is then trimmed to that tempo (greedy, 0.6x-the-median, with a refusal clause for music that has no shared tempo to trim toward), so the number and the pulse cannot disagree the way 163 BPM with picked eighths made them. Beats snap onto the onset envelope's loudest rise within 60 ms before the grid is built, so boundaries land on the sound rather than on the model's rounded guess at it. The pulse itself lost its second clock: what was a CSS animation corrected toward the audio at 4 Hz corrected its seam instead, free-running every time a correction missed, and is now one rAF pass that turns the playhead (peekLivePosition, the AudioContext itself, not the 4 Hz sample) into --pb-phase on the span with the flash as pure CSS arithmetic — pause freezes it because the position does, a seek moves it because the position does, drift is not representable. The tempo sits tiny (8px, reserved line, no grow-on-analysis) above the title rather than beside it, fades in when the analysis lands, and breathes around its baseline. 829 tests, ort-vs-torch parity at 2.7e-5 max logit error, and the shipped model verified end-to-end through the real worker in a real browser at exactly 120.00 on a 120 click track. 2mo ago
cff06049