/** 젬블로 소리: 보석 블록 "딸깍". Short and soft; the site volume is applied by feedback.ts. */ import { noise, tone } from '../../lib/feedback'; export const gmSound = { /** A block set down: a glassy click with a little shimmer. */ place: () => { noise(28, 0.12, 0, 'bandpass', 3400, 2.2); tone(1760, 70, 'triangle', 0.07, 4); tone(2640, 90, 'sine', 0.035, 24); }, /** A spot where the block can't go (small and low). */ refuse: () => tone(190, 120, 'triangle', 0.08, 0, { slideTo: 140 }), /** A colour has nowhere left to go: a short falling pair. */ out: () => { tone(523, 110, 'triangle', 0.06); tone(392, 160, 'triangle', 0.06, 110); }, /** All 18 blocks of a colour placed: a quick sparkle. */ allPlaced: () => [1319, 1568, 1976, 2637].forEach((f, i) => tone(f, 110, 'sine', 0.05, 60 + i * 55)), /** Rotating / flipping the block in hand. */ turn: () => tone(1100, 30, 'triangle', 0.05), /** Moves taken back (무르기). */ undo: () => tone(700, 160, 'sine', 0.06, 0, { slideTo: 420 }), };