Ears for coding agents: let AI hear, review and make sound. CPU-only, open source.
bank: plain float from compare_fp; docs/SFX.md cost table from one-process timings
Leonxlnxc97e61571954
diff --git a/docs/SFX.md b/docs/SFX.mdindex 1c7ada0..e5cd82d 100644--- a/docs/SFX.md+++ b/docs/SFX.md@@ -286,11 +286,16 @@ elsewhere (load it with `EARSHOT_BANK`).Measured on the development laptop (AMD Ryzen 7 260, 2 threads, while other jobs kept the CPU near 100 %):-| step | time |+| step (one process) | time ||---|---|-| `import earshot.forge.bank` + load the bank | ~3 s cold |-| first render in a fresh process | 10-45 s (numba compiles the filter kernels once per install, imports) |-| warm render + audit, median over the 186 finals | 0.5 s (UI sounds 0.05-0.3 s, whooshes 0.5-1.5 s, impacts and plucks 2-6 s) |+| `import earshot.forge.bank` + load the bank | 1.3 s (3 s on a cold disk) |+| first render in the process (recipe import, numba kernels from their cache) | 10 s (25-45 s the first time after an install, while numba compiles) |+| the same render again, warm | 54 ms |+| warm render / render + audit: UI sounds (click, tap, pop-in, key, ding) | 40-65 ms / 80-160 ms |+| warm render / render + audit: whooshes, swipes, bells, sub drops | 0.1-0.45 s / 0.25-0.8 s |+| warm render / render + audit: pluck (3 s), impact (4.8 s) | 1.0-1.1 s / 1.4-2.2 s |+| a targeted whoosh (dur + apex: up to 3 renders + audit) | 1.9 s |+| render + audit, median over all 186 sounds (a cold process per batch) | 0.5 s || `kit render`, whole preset, fresh process | calm 73 s (57 takes), crisp 61 s (59), minimal 25 s (58) || `kit render`, everything cached | 3-5 s (the process start; 0.1-0.6 s inside it) |diff --git a/earshot/forge/bank.py b/earshot/forge/bank.pyindex b079cf1..3da61ca 100644--- a/earshot/forge/bank.py+++ b/earshot/forge/bank.py@@ -384,7 +384,7 @@ def compare_fp(meta, y, sr=SR, floor=-40.0):k = min(len(ref), len(fp))d = [abs(a - b) for a, b in zip(ref[:k], fp[:k]) if a > floor]return {'len_diff': int(round((t['dur_s'] - meta['dur_s']) * sr)),- 'peak_diff_ms': round(1000 * (t['peak_s'] - meta['peak_s']), 2),+ 'peak_diff_ms': round(float(1000 * (t['peak_s'] - meta['peak_s'])), 2),'env_db': round(max(d), 2) if d else 0.0}