@fayz-ai/admin 0.65.2 → 0.65.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/attention.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11740,21 +11740,21 @@ function playChime() {
|
|
|
11740
11740
|
if (!Ctx) return;
|
|
11741
11741
|
const ctx = new Ctx();
|
|
11742
11742
|
const now = ctx.currentTime;
|
|
11743
|
-
for (const [freq, delay] of [[880, 0], [1320, 0.09]]) {
|
|
11743
|
+
for (const [freq, delay] of [[880, 0], [1320, 0.09], [880, 0.42], [1320, 0.51]]) {
|
|
11744
11744
|
const osc = ctx.createOscillator();
|
|
11745
11745
|
const gain = ctx.createGain();
|
|
11746
11746
|
osc.type = "sine";
|
|
11747
11747
|
osc.frequency.value = freq;
|
|
11748
11748
|
gain.gain.setValueAtTime(1e-4, now + delay);
|
|
11749
|
-
gain.gain.exponentialRampToValueAtTime(0.
|
|
11750
|
-
gain.gain.exponentialRampToValueAtTime(1e-4, now + delay + 0.
|
|
11749
|
+
gain.gain.exponentialRampToValueAtTime(0.26, now + delay + 0.02);
|
|
11750
|
+
gain.gain.exponentialRampToValueAtTime(1e-4, now + delay + 0.34);
|
|
11751
11751
|
osc.connect(gain);
|
|
11752
11752
|
gain.connect(ctx.destination);
|
|
11753
11753
|
osc.start(now + delay);
|
|
11754
|
-
osc.stop(now + delay + 0.
|
|
11754
|
+
osc.stop(now + delay + 0.36);
|
|
11755
11755
|
}
|
|
11756
11756
|
setTimeout(() => void ctx.close().catch(() => {
|
|
11757
|
-
}),
|
|
11757
|
+
}), 1300);
|
|
11758
11758
|
} catch {
|
|
11759
11759
|
}
|
|
11760
11760
|
}
|