make the ping sound a lot more tolerable

remotes/1694359591236046747/main
maia arson crimew 2022-03-30 13:28:35 +02:00
parent 3d4ea0773d
commit 2197d2b757
1 changed files with 3 additions and 3 deletions

View File

@ -426,12 +426,12 @@ const beep = () => {
const gain = context.createGain(); const gain = context.createGain();
gain.connect(context.destination); gain.connect(context.destination);
gain.gain.value = 0.1; gain.gain.value = 0.15;
const oscillator = context.createOscillator(); const oscillator = context.createOscillator();
oscillator.connect(gain); oscillator.connect(gain);
oscillator.frequency.value = 520; oscillator.frequency.value = 400;
oscillator.type = "square"; oscillator.type = "sine";
oscillator.start(context.currentTime); oscillator.start(context.currentTime);
oscillator.stop(context.currentTime + 0.22); oscillator.stop(context.currentTime + 0.22);