Refine chirp sound

This commit is contained in:
Idrees Hassan
2026-01-04 17:38:14 -05:00
parent 5a82ba858f
commit dd4184f642
7 changed files with 18 additions and 12 deletions

5
dist/web/birb.js vendored
View File

@@ -871,11 +871,12 @@
this.audioContext = new AudioContext();
}
const TIMES = [0, 0.06, 0.16];
const TIMES = [0, 0.06, 0.10, 0.16];
const FREQUENCIES = [2200,
3500 + Math.random() * 700,
2100 + Math.random() * 200,
1600 + Math.random() * 400];
const VOLUMES = [0.0001, 0.3, 0.0001];
const VOLUMES = [0.0001, 0.3, 0.3, 0.0001];
const oscillator = this.audioContext.createOscillator();
oscillator.type = "sine";