Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

notepat: tiny click on Shift press/release

Audible feedback for the harp short-pluck modifier. Quick sine blip
(25ms, ~10% volume) — 1320 Hz on press, 880 Hz on release — so the
mode change is felt without distracting from active notes. Guarded
against repeats so a held Shift doesn't auto-rerepeat the click.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+12 -3
+12 -3
fedac/native/pieces/notepat.mjs
··· 2054 2054 function act({ event: e, sound, wifi, system }) { 2055 2055 soundAPI = sound; 2056 2056 systemAPI = system; 2057 - // Track shift state before any other handling 2058 - if (e.is("keyboard:down") && e.key?.toLowerCase() === "shift") shiftHeld = true; 2059 - if (e.is("keyboard:up") && e.key?.toLowerCase() === "shift") shiftHeld = false; 2057 + // Track shift state before any other handling. Tiny audible click on 2058 + // press/release so the mode change is felt — high blip going in, low 2059 + // blip coming out, both quiet enough to layer under any active note. 2060 + if (e.is("keyboard:down") && e.key?.toLowerCase() === "shift" && !shiftHeld) { 2061 + shiftHeld = true; 2062 + sound?.synth?.({ type: "sine", tone: 1320, duration: 0.025, 2063 + volume: 0.10, attack: 0.001, decay: 0.022, pan: 0 }); 2064 + } else if (e.is("keyboard:up") && e.key?.toLowerCase() === "shift" && shiftHeld) { 2065 + shiftHeld = false; 2066 + sound?.synth?.({ type: "sine", tone: 880, duration: 0.025, 2067 + volume: 0.10, attack: 0.001, decay: 0.022, pan: 0 }); 2068 + } 2060 2069 2061 2070 // WiFi password input mode — fullscreen, capture all keyboard 2062 2071 if (wifiPasswordMode && e.is("keyboard:down")) {