lower the task-completion chime volume to a quarter
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -22,8 +22,8 @@ const playDing = () => {
|
|||||||
const gain = ctx.createGain();
|
const gain = ctx.createGain();
|
||||||
osc.type = 'sine';
|
osc.type = 'sine';
|
||||||
osc.frequency.setValueAtTime(freq, t + start);
|
osc.frequency.setValueAtTime(freq, t + start);
|
||||||
gain.gain.setValueAtTime(0.8, t + start);
|
gain.gain.setValueAtTime(0.2, t + start);
|
||||||
gain.gain.setValueAtTime(0.8, t + start + dur * 0.6);
|
gain.gain.setValueAtTime(0.2, t + start + dur * 0.6);
|
||||||
gain.gain.exponentialRampToValueAtTime(0.001, t + start + dur);
|
gain.gain.exponentialRampToValueAtTime(0.001, t + start + dur);
|
||||||
osc.connect(gain).connect(ctx.destination);
|
osc.connect(gain).connect(ctx.destination);
|
||||||
osc.start(t + start);
|
osc.start(t + start);
|
||||||
|
|||||||
Reference in New Issue
Block a user