From 6b5e29a2e225f286a47f393249e9ca682d4b93d6 Mon Sep 17 00:00:00 2001 From: EJClaw Date: Wed, 14 Oct 2026 10:07:33 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B1=84=ED=8C=85=20=EC=86=8C=EB=A6=AC?= =?UTF-8?q?=EB=A5=BC=20"=ED=95=9C=20=EB=B2=88=EB=A7=8C=20=EB=BD=81"?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C:=20=EB=AC=BC=EB=B0=A9=EC=9A=B8=20=EB=91=90?= =?UTF-8?q?=20=EA=B0=9C=20"=EB=BD=80=EB=A1=9D"=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EC=B2=AB=20=EB=AC=BC=EB=B0=A9=EC=9A=B8=20=ED=95=98=EB=82=98?= =?UTF-8?q?=EB=A7=8C(380=E2=86=921150Hz=EB=A1=9C=20=EB=B9=A0=EB=A5=B4?= =?UTF-8?q?=EA=B2=8C=20=EC=98=AC=EB=9D=BC=EA=B0=80=EB=8A=94=20=EC=82=AC?= =?UTF-8?q?=EC=9D=B8,=200.08=EC=B4=88).=20=EA=B2=8C=EC=9E=84=20pop(700?= =?UTF-8?q?=E2=86=921400Hz)=EB=B3=B4=EB=8B=A4=20=EB=82=AE=EA=B2=8C=20?= =?UTF-8?q?=EC=8B=9C=EC=9E=91=ED=95=98=EA=B3=A0=20=EC=A7=A7=EA=B3=A0=20?= =?UTF-8?q?=EC=9E=91=EC=95=84=EC=84=9C=20=EA=B5=AC=EB=B6=84=EB=90=A8.=20?= =?UTF-8?q?=ED=81=AC=EA=B8=B0(=EA=B2=8C=EC=9E=84=20=EC=86=8C=EB=A6=AC?= =?UTF-8?q?=EC=9D=98=2090%)=C2=B7=EC=86=8C=EB=A6=AC=20=ED=81=AC=EA=B8=B0?= =?UTF-8?q?=20=EC=84=A4=EC=A0=95=C2=B7=EB=AA=B0=EB=A6=BC=20=ED=95=9C=20?= =?UTF-8?q?=EB=B2=88=C2=B7=EC=A7=80=EB=82=9C=20=EC=B1=84=ED=8C=85=20?= =?UTF-8?q?=EC=A1=B0=EC=9A=A9=ED=9E=88=EB=8A=94=20=EA=B7=B8=EB=8C=80?= =?UTF-8?q?=EB=A1=9C.=20feedback.test.ts=EC=99=80=20chat.e2e.ts=20?= =?UTF-8?q?=EB=A7=9E=EC=B6=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- apps/web/src/lib/feedback.test.ts | 6 +++--- apps/web/src/lib/feedback.ts | 10 +++++----- e2e/chat.e2e.ts | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/web/src/lib/feedback.test.ts b/apps/web/src/lib/feedback.test.ts index 5daec48..80bdd4b 100644 --- a/apps/web/src/lib/feedback.test.ts +++ b/apps/web/src/lib/feedback.test.ts @@ -80,9 +80,9 @@ test('chat sound is 10% under the game sounds', () => { for (const n of notes) byStart.set(n.start, (byStart.get(n.start) ?? 0) + n.peak); const loudest = Math.max(...byStart.values()); expect(loudest).toBeCloseTo(game * 0.9, 6); - // Two bubbles ("뽀록"), each gliding up from a low start. - expect(notes.map((n) => n.freq)).toEqual([380, 520]); - expect(notes.map((n) => n.to)).toEqual([1150, 1500]); + // One bubble ("뽁") gliding up from a low start. + expect(notes.map((n) => n.freq)).toEqual([380]); + expect(notes.map((n) => n.to)).toEqual([1150]); }); test('chat sound follows the volume setting and is silent when sound is off', async () => { diff --git a/apps/web/src/lib/feedback.ts b/apps/web/src/lib/feedback.ts index 0e0b04b..db90b7b 100644 --- a/apps/web/src/lib/feedback.ts +++ b/apps/web/src/lib/feedback.ts @@ -195,16 +195,16 @@ export const CHAT_LEVEL = GAME_LEVEL * 0.9; let lastChatAt = -Infinity; /** - * Chat "뽀록": two water-drop bubbles like a messenger, each a sine gliding up fast (about 0.15 s in all). - * Kept apart from the UI/game sounds, which are steady notes (click, good, myTurn …), so it is not mistaken for one. - * The louder bubble peaks at CHAT_LEVEL. Lines arriving in a burst share one sound. + * Chat "뽁": one water-drop bubble like a messenger, a sine gliding up fast from low (about 0.08 s). + * Kept apart from the UI/game sounds, which are steady notes (click, good, myTurn …), so it is not mistaken for one; + * it also starts lower and is shorter and softer than the game "pop" (700→1400 Hz). + * It peaks at CHAT_LEVEL. Lines arriving in a burst share one sound. */ export function chatSound(): void { const now = performance.now(); if (now - lastChatAt < 80) return; lastChatAt = now; - tone(380, 70, 'sine', CHAT_LEVEL, 0, { attack: 2, slideTo: 1150 }); - tone(520, 80, 'sine', CHAT_LEVEL * 0.7, 75, { attack: 2, slideTo: 1500 }); + tone(380, 80, 'sine', CHAT_LEVEL, 0, { attack: 2, slideTo: 1150 }); } /** Plays the chat sound whenever `lastKey` (the newest live chat line) changes after the first render. */ diff --git a/e2e/chat.e2e.ts b/e2e/chat.e2e.ts index 7ae7920..fde628a 100644 --- a/e2e/chat.e2e.ts +++ b/e2e/chat.e2e.ts @@ -242,8 +242,8 @@ try { if (await a.locator('.room-bar').getByRole('button', { name: /^채팅/ }).count()) throw new Error('chat button still on the wide bar'); }); - await step('채팅 소리: 새 줄마다 "뽀록"(보낸 사람도), 다시 들어올 때 받는 지난 줄은 조용히', async () => { - // Count the chat sound's first bubble (starts at 380 Hz) as it is scheduled. + await step('채팅 소리: 새 줄마다 "뽁"(보낸 사람도), 다시 들어올 때 받는 지난 줄은 조용히', async () => { + // Count the chat sound's bubble (starts at 380 Hz) as it is scheduled. const rec = () => { const w = window as unknown as { __chatBeeps: number }; w.__chatBeeps = 0;