mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
HIS REPORT, 2026-09-11: "The sound cues when claude needs me are off. Im getting multiple offbeat sound cues." Then, on the diagnosis: "a) proceed, let xscapes do the sound b) try the dropplet". === WHY THERE WERE TWO, AND IT WAS NEVER AN OVERRIDE === xscapes does not override Claude's notifications and never did -- they stack. Three of his hooks fired TWO commands each: his own `afplay Funk.aiff` AND the xscapes hook, which makes the scape play its own cue from a different process a few milliseconds later. One permission prompt, two timbres, not synchronised. ⭐ AND HIS OWN HOOKS DOUBLED UP BEFORE XSCAPES TOUCHED ANYTHING. Counted in ~/.claude/hook-debug.log, 14,792 firings since May: 324 bursts of 2+ sounds within three seconds (2.3%), worst burst TWENTY-ONE. Commonest pairs are PermissionRequest twice (83) and Notification + PermissionRequest (56) -- Notification also fires as a 60 s idle nag after Stop, which this repo already had measured at ~43%. ⇒ His settings.json now has the three afplay clauses removed and xscapes owns the sound alone. The echo into hook-debug.log was KEPT deliberately: it is his measurement log and it is what proved this. ⚠ The xscapes side was the well-behaved one all along -- Knocker edge-detects on the bubble text, so a repeating nag rings once. Nothing here changes it. === THE CUE IS OURS NOW === It played Glass.aiff and Submarine.aiff, which are macOS's. They are fine and they are NOT IDENTIFIABLE: every Mac user has heard Glass for twenty years, and a sound that belongs to the OS cannot belong to the product. He asked for "a fun sound that users can identify w xscapes", so it has to ship with xscapes. Four families were synthesised and auditioned (notes/s28-sound/make.py, stdlib only); he picked the DROPLET. A pitch glide into a decaying body -- the glide is what the ear hears as a droplet rather than a beep. 260 ms ask, 340 ms done. The shape difference is the point and it is borrowed from the balloons: ask GLIDES DOWN FROM HIGHER and done settles LOWER AND SLOWER, the same way Bubble and DoneBubble differ in stroke rather than colour -- "shape carries the done/needs_input distinction wherever colour cannot". Every attack is ramped; a click is what makes a repeated sound hateful. Embedded with go:embed, because a single static binary is a locked decision and a cue the user has to install is not a cue. Materialised once under Home() (~/.config/xscapes/sounds), NOT /tmp -- a reboot destroyed nine trace files there and cost a whole occurrence. Three rungs, each with its reason in the code: the droplet, then the system sounds it played before, then the bell. XSCAPES_SILENT still wins over all of it. Measured: +50,304 bytes on the binary, 6,587,986 -> 6,638,290, or +0.76%. Verified by running it: `xscapes notify ask` reports "player: afplay (xscapes droplet)" and both cues appear under Home() on first use. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FpWuRRqmoTMo6ayCkx9yYZ