---
title: "Keysound Explained: 3D Mechanical Keyboard Acoustics for macOS"
description: "Inside Keysound (keysound-one.vercel.app): how a 3D Three.js keyboard shares exact Web Audio DSP math with a notarized macOS menu-bar app, plus its real limits."
pubDate: "2026-12-01"
lang: "en"
slug: "keysound-explained"
url: "https://hoangyell.com/keysound-explained/"
author: "HoangYell"
translation_vi: "https://hoangyell.com/vi/keysound-explained/"
categories: ["Developer Tools"]
tags: ["keysound", "macos", "web-audio", "threejs", "developer-tools"]
heroImage: "https://raw.githubusercontent.com/HoangGeek/store/main/webp/ai-keysound-explained-hero.webp"
---

Working on a MacBook in a quiet cafe or late at night leaves your fingers trapped on a flat scissor-switch deck that sounds like tapping wet cardboard. You watch mechanical keyboard sound tests on YouTube, buy a switch tester, or install bloated desktop soundboard apps that beg for logins and drain battery in Electron.

[**Keysound**](https://keysound-one.vercel.app/) (built by Vietnamese engineer Hoàng Viên, [`h-vien/keysound-page`](https://github.com/h-vien/keysound-page)) takes a sharp shortcut. The moment you open the URL, a sunlit 3D mechanical keyboard sits on a linen desk mat ready to type on. Every switch, case material, and keycap theme you click in the browser runs the exact same acoustic math as the native **macOS 13+** menu-bar app (`Keysound.dmg`), without accounts, Electron wrappers, or tracking pixels.

Before recommending it to anyone with a MacBook, I audited the entire public frontend repository (`audio.js`, `catalog.js`, `scene.js`, `layouts.js`, `DESIGN.md`, and `.github/workflows/release.yml`) and ran the live Vercel showcase in headless Chrome. The Three.js port and Web Audio filter chain are remarkably crisp, yet the split between real switch recordings and synthetic EQ shifts, macOS Input Monitoring friction, and the closed-source app boundary are worth laying out clearly.

## TL;DR

> **Fast Breakdown:**
> - **What is Keysound?** A cozy 3D web keyboard builder paired with a native, notarized macOS menu-bar app that mirrors real mechanical switch recordings and part-by-part acoustic modifiers across every app you type in.
> - **Why Engineers Care**: Zero framework bloat on the web (vanilla ES modules + vendored `three.module.js`), shared **DSP (digital signal processing)** parameters between browser and Swift app, strict **Secure Input (macOS password field protection)** silence, and zero telemetry.
> - **The Unspoken Catch**: Not every switch-keycap combination is natively recorded (missing materials fall back to pitch and EQ shifts), the macOS app core (`h-vien/keysound`) is private source with a one-time `US$4.99` unlock for full parts, and global key listening requires granting macOS `Input Monitoring`.
> - **Source & Live Demo**: [keysound-one.vercel.app](https://keysound-one.vercel.app/) · [h-vien/keysound-page](https://github.com/h-vien/keysound-page) · Sound packs MIT / CC0 1.0 / CC BY 4.0 · App `v0.1.2` (`26.4 MB` DMG).

***

## Mental Model: One Acoustic Recipe, Two Runtimes

Most product landing pages show a static screenshot or an auto-playing MP4 video and ask you to trust that the desktop app feels good. Keysound flips that contract: the browser page *is* a lightweight port of the Mac app's Swift SceneKit renderer (`KeyboardScene.swift`, `KeycapArtwork.swift`) and CoreAudio filter pipeline.

Think of Keysound like a modular guitar pedalboard sitting behind real studio samples. Instead of storing 3,600 separate audio recordings for every combination of 15 switches, 2 keycap plastics, 6 cases, 5 foam mods, and 4 lube levels, Keysound loads one compressed **audio sprite (single `.m4a` file sliced by millisecond timestamps)** per switch pack and pushes it through four chained acoustic modifiers in real time.

```markdy
scene duration=20 layout=TB width=760 height=1040
theme: light=doodle dark=nebula

user Typist "Key Code + Up/Down (No Text)"
gateway Guard "macOS Secure Input Check"
service Pack "Keysound v2 Sprite (.m4a + JSON)"
service DSP "Pitch + Shelf + LowPass + Dampen"
service Out "24-Voice AudioOut / 3D Press"

beat capture "1. Capture Hardware Strike":
  show $nodes stagger=50ms
  Typist -> Guard "KeyDown / KeyUp code"
  Guard -> Pack "Pass if non-password field"
  glow Guard color=#22c55e

beat sculpt "2. Slice & Stack Modifiers":
  Pack -> DSP "Slice [startMs, endMs]"
  DSP -> DSP "Case + Foam + Lube + Stab"
  glow DSP color=#3b82f6

beat play "3. Jitter & Output":
  DSP -> Out "+/-3% pitch, +/-2dB gain"
  Out -> Typist "Zero-account local audio"
  glow Out color=#f59e0b

player:
  playback:
    loop true
  controls:
    speed true
    speeds "0.25"
    interact true
    fullscreen true
    gif true
    theme true
  interaction:
    zoom true
    pan true
    click_to_play true
    double_click_to_reset true
    keyboard false
  chrome:
    badge true
    progress none
```

***

## The Friction: Why Typing Sound Apps Usually Feel Fake

Developers rarely abandon keyboard sound apps because the concept is silly. They uninstall them within twenty minutes for two concrete reasons: robotic machine-gun repetition and suspicious background permissions.

![Image](https://raw.githubusercontent.com/HoangGeek/store/main/webp/ai-keysound-explained-gallery-01.webp)

First, naive soundboards fire the exact same `.wav` file at identical pitch and volume on every keystroke. When you type at 100 WPM, your ear immediately detects the unnatural looping artifact, and Space or Enter sound identical to an alpha key even though real **stabilizers (metal support wires under wide keys)** make wide keys thud noticeably deeper.

Second, capturing keystrokes globally across macOS requires **Input Monitoring (system-wide keyboard event permission)**. Handing that permission to an unsigned binary or an app packed with analytics SDKs creates real risk, because a careless or malicious listener reads every password, API key, and private message you type.

Keysound addresses both pain points directly in its architecture:

- **Per-key down/up slices + micro-randomization**: Each Keysound v2 pack defines distinct `[down, up]` millisecond windows per physical key code (`KeyA`, `Space`, `Enter`) inside `config.json`. On playback, `audio.js` injects a subtle `±3%` pitch variance and `±2 dB` gain swing on every strike so rapid typing feels organic rather than mechanical.
- **Key-code-only inspection + Secure Input respect**: The Mac app inspects raw key codes and up/down state without translating characters or logging buffers. When macOS activates **Secure Input (OS lock triggered by password inputs and `sudo` prompts)**, Keysound pauses audio automatically until focus returns to a normal field.

***

## Under the Hood: Inspecting `audio.js` and the 3D Port

Opening `h-vien/keysound-page` reveals a refreshing engineering choice: zero React, zero Tailwind build step, zero bundler config. The entire web showcase runs from plain ES modules (`main.js`, `catalog.js`, `audio.js`, `layouts.js`, `scene.js`) plus a vendored copy of `three.module.js`, deployed straight to GitHub Pages.

Inside `audio.js`, `soundParams(build, code, native)` composes the acoustic stack deterministically before touching Web Audio nodes. Here is how the DSP ratios shape each keypress:

```javascript
// From h-vien/keysound-page/audio.js: stabilizer + sculpt pitch math
const stab = { space: 0.88, enter: 0.93, backspace: 0.94, shift: 0.94, tab: 0.97, caps: 0.97 };
if (stab[group(code)]) {
  p = add(p, { ...emptyParams(), pitch: stab[group(code)] });
}

const s = build.sculpt;
p = add(p, {
  ...emptyParams(),
  pitch: 2 ** ((s.pitch * 2) / 12),
  highShelfDb: s.brightness * 6,
  lowShelfDb: s.depth * 6,
  gainDb: s.gain * 6,
});
```

Notice what happens right after `soundParams()` returns. Web Audio builds a live 4-node graph per voice (`AudioBufferSourceNode` -> `250 Hz` `lowshelf` -> `3500 Hz` `highshelf` -> `lowpass` with `Q = 0.707` -> exponential `GainNode` decay), while enforcing a hard `MAX_VOICES = 24` cap so fast typing never saturates the audio thread.

You can verify the exact pack slicing format and case/foam parameters locally from any terminal without cloning the whole Mac app:

```bash
# Inspect Keysound v2 sprite slicing and release metadata
curl -sL https://raw.githubusercontent.com/h-vien/keysound-page/main/packs/cherrymx-black-pbt/config.json | jq '{id, author, audio_file, sample_space: .definitions.Space.timing, sample_keyA: .definitions.KeyA.timing}'

# Check the signed/notarized DMG release size and tag
curl -sL https://api.github.com/repos/h-vien/keysound-page/releases/latest | jq '{tag: .tag_name, asset: .assets[0].name, bytes: .assets[0].size}'
```

Look closely at the release pipeline (`.github/workflows/release.yml`) too. When the private `h-vien/keysound` repo pushes a version tag (`v0.2.0+3`), it dispatches a build event to the public `keysound-page` repo, which compiles on `macos-latest`, signs with an Apple Developer ID certificate, runs `xcrun notarytool` + `xcrun stapler` on **both** `Keysound.app` and `Keysound.dmg`, and publishes the release asset cleanly without leaking private commit messages into public CI logs.

***

## The Rough Edges: Synthetic Fallbacks, Locked Repo, and Web Limits

Every clean indie tool carries deliberate trade-offs. Auditing the source files surfaces four practical details worth knowing before you download.

![Image](https://raw.githubusercontent.com/HoangGeek/store/main/webp/ai-keysound-explained-gallery-02.webp)

### 1. Synthetic Material Fallbacks (`native: false`)

Check `catalog.js` carefully. While packs like `Cherry MX Black`, `Cherry MX Brown`, and `Cherry MX Blue` carry native recordings for both `PBT` and `ABS` keycaps, switches such as `Cherry MX Red` (`pbt: native: false`) and `Topre Purple` (`abs: native: false`) reuse one base recording and apply a synthetic EQ + pitch offset (`0.96x` pitch / `-2.5 dB` high-shelf for PBT, `1.04x` pitch / `+2.5 dB` high-shelf for ABS). Similarly, changing cases (`Wood`, `Aluminum`, `Plastic`, `Acrylic`, `Brass`, `Polycarbonate`) or adding foam/lube applies parametric filters rather than loading separate acoustic chamber recordings. It sounds surprisingly convincing for `Wood` vs `Aluminum`, yet purists hunting raw studio microphone captures of a brass-plate gasket mount will hear the DSP fingerprint.

### 2. Web Tray Scope vs. Full macOS App

On `keysound-one.vercel.app`, the dock intentionally caps you to **6 hero switches**, **4 cases**, and **5 keycap themes** on a fixed `65%` layout with `Full foam` and `Medium` (`lube: 2`) baked in. All **15 switches** (including `KiiBOOM Matcha Latte`, `LEOBOG Reaper`, `NuPhy Raspberry`, `Silent Pink`, and `Classic Rubber Dome`), 5 layouts (`60%` through `Full`), `.keebpack` build sharing, custom Keysound v2 pack import, per-app mute, and the floating keystroke overlay live strictly inside the Mac app.

### 3. Closed-Source App Core + One-Time `$4.99` Unlock

The landing page, Three.js scene, DSP coefficients, and MIT/CC0/CC BY 4.0 sound packs are open on GitHub (`h-vien/keysound-page`), whereas the native Swift macOS app (`h-vien/keysound`) is closed source. Keysound ships free to download and run, with a one-time **`US$4.99`** purchase (via Polar) to unlock the full catalog of switches, keycaps, cases, and mods. Because the Mac binary is closed source, privacy-conscious users must rely on Apple notarization and network inspection (`lsof` / Little Snitch) rather than auditing the Swift `CGEvent` tap directly.

### 4. macOS Input Monitoring and Unmapped Keys

On first launch, macOS prompts you to enable `Input Monitoring` in **System Settings -> Privacy & Security**; without it, global keystrokes stay silent outside the app window. Also note from `audio.js`: if a key code is missing from a pack's `definitions` map, playback silently falls back to `KeyA` rather than failing, which prevents dead keys on international layouts at the cost of slight tonal uniformity on exotic function keys.

***

## Decision Matrix: Keysound vs. Alternatives

| Criterion | Keysound (`h-vien`) | Mechvibes / Keyslam | Real Custom Mechanical Board |
|---|---|---|---|
| **Core Experience** | 3D Three.js builder + native Swift menu-bar app | Electron/Tauri or macOS soundboard presets | True physical switch actuation + acoustic chamber |
| **Acoustic Realism** | Real `.m4a` key slices + live case/foam/stab DSP | Static key samples (varies by pack) | 100% authentic tactile and acoustic feedback |
| **Browser Trial** | Full interactive 3D keyboard at `keysound-one.vercel.app` | Usually download-first or 2D previews | Requires physical switch tester or meetup |
| **OS Overhead** | Native macOS Swift (`26.4 MB` DMG, macOS 13+) | Higher if Electron-based; varies by app | Zero CPU, zero OS permissions |
| **Privacy & Pricing** | Offline-first, Secure Input aware; free tier + `$4.99` once | Open-source/free or paid depending on fork | `$80–$400+` hardware cost; zero software risk |
| **Cross-Platform** | macOS 13+ only (web demo runs anywhere) | Windows / macOS / Linux (Mechvibes) | Plugs into any OS over USB/Bluetooth |

***

## Final Take

Keysound is a masterclass in focused indie craft: instead of shipping another bloated Electron wrapper with a subscription paywall, it puts the exact 3D desk and acoustic engine right in your browser first, respects macOS Secure Input, and charges a fair `$4.99` once if you want the full switch rack.

### Hands-On Challenge (15-Minute Test)

1. Open [keysound-one.vercel.app](https://keysound-one.vercel.app/) and switch from `MX Black` on `Wood` to `EG Oreo` on `Aluminum`, then test `Space` versus `KeyJ` to hear the `0.88x` stabilizer pitch drop.
2. Open DevTools (`Network` tab), switch packs once, and inspect the single `.m4a` + `config.json` payload size compared to multi-megabyte Electron sound apps.
3. Optional macOS check: download `Keysound.dmg`, verify its Apple notarization staple locally with `spctl --assess --type open --context context:primary-signature -vv /Volumes/Keysound/Keysound.app`, and confirm it goes silent inside any password input.

***

## Frequently Asked Questions (FAQ)

**Does Keysound log what I type or send data to a server?**

Keysound runs locally offline and inspects only raw key codes and key-down/key-up states rather than character strings. It also honors macOS Secure Input so password fields stay muted, and connects online only when activating or deactivating a paid license.

**Why does Keysound need macOS Input Monitoring permission?**

macOS isolates keyboard events per application by default. Any menu-bar utility that plays audio while you type inside Xcode, VS Code, or a terminal needs **Input Monitoring** under Privacy & Security to observe global keystroke timing.

**Can I use my own Keysound v2 sound packs without paying?**

Yes, Keysound supports importing Keysound v2 sound packs (`config.json` + audio file) and sharing custom builds as `.keebpack` files, while the one-time `US$4.99` unlock opens all built-in switches, keycap sets, cases, and acoustic mods.

**Does Keysound work on Windows or Linux?**

The interactive 3D keyboard showcase at `keysound-one.vercel.app` works in any modern desktop browser via WebGL and Web Audio, but the system-wide menu-bar app (`Keysound.dmg`) targets **macOS 13 or later** exclusively.
