mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 04:07:23 +00:00
Refine chirp sound
This commit is contained in:
BIN
dist/extension.zip
vendored
BIN
dist/extension.zip
vendored
Binary file not shown.
5
dist/extension/birb.js
vendored
5
dist/extension/birb.js
vendored
@@ -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";
|
||||
|
||||
5
dist/obsidian/main.js
vendored
5
dist/obsidian/main.js
vendored
@@ -876,11 +876,12 @@ module.exports = class PocketBird extends Plugin {
|
||||
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";
|
||||
|
||||
5
dist/userscript/birb.user.js
vendored
5
dist/userscript/birb.user.js
vendored
@@ -885,11 +885,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";
|
||||
|
||||
5
dist/web/birb.embed.js
vendored
5
dist/web/birb.embed.js
vendored
@@ -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";
|
||||
|
||||
5
dist/web/birb.js
vendored
5
dist/web/birb.js
vendored
@@ -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";
|
||||
|
||||
@@ -12,11 +12,12 @@ export class Birdsong {
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user