@korial29/tiny-fps 1.8.0 → 1.9.0
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/cast-art-DbwsToaQ.js +1 -0
- package/dist/index.js +7 -7
- package/dist/landfall-CSZGx2iA.js +21 -0
- package/dist/types/client/armor/clip.d.ts +22 -0
- package/dist/types/client/armor/cooking.d.ts +14 -0
- package/dist/types/client/armor/details.d.ts +65 -0
- package/dist/types/client/armor/fit.d.ts +8 -0
- package/dist/types/client/armor/regions.d.ts +304 -0
- package/dist/types/client/armor/scratches.d.ts +4 -0
- package/dist/types/client/armor/shell.d.ts +46 -0
- package/dist/types/client/armor/types.d.ts +37 -0
- package/dist/types/client/armor/wear.d.ts +22 -0
- package/dist/types/client/armor.d.ts +9 -393
- package/dist/types/client/body/constants.d.ts +35 -0
- package/dist/types/client/body/create.d.ts +3 -0
- package/dist/types/client/body/fingers.d.ts +112 -0
- package/dist/types/client/body/glove.d.ts +27 -0
- package/dist/types/client/body/hands.d.ts +28 -0
- package/dist/types/client/body/hunter.d.ts +26 -0
- package/dist/types/client/body/motion.d.ts +42 -0
- package/dist/types/client/body/reach.d.ts +65 -0
- package/dist/types/client/body/types.d.ts +39 -0
- package/dist/types/client/body/wield.d.ts +30 -0
- package/dist/types/client/body.d.ts +10 -207
- package/dist/types/client/cast-art.d.ts +2 -0
- package/dist/types/client/gait/constants.d.ts +34 -0
- package/dist/types/client/gait/create.d.ts +3 -0
- package/dist/types/client/gait/fists.d.ts +55 -0
- package/dist/types/client/gait/maths.d.ts +38 -0
- package/dist/types/client/gait/moves.d.ts +129 -0
- package/dist/types/client/gait/types.d.ts +59 -0
- package/dist/types/client/gait.d.ts +6 -146
- package/dist/types/client/gun/ammo.d.ts +21 -0
- package/dist/types/client/gun/display.d.ts +32 -0
- package/dist/types/client/gun/held.d.ts +75 -0
- package/dist/types/client/gun/kinds.d.ts +12 -0
- package/dist/types/client/gun/loft.d.ts +16 -0
- package/dist/types/client/gun/paint.d.ts +30 -0
- package/dist/types/client/gun/railgun.d.ts +34 -0
- package/dist/types/client/gun/reload.d.ts +112 -0
- package/dist/types/client/gun/rifle.d.ts +54 -0
- package/dist/types/client/gun/sidearm.d.ts +32 -0
- package/dist/types/client/gun.d.ts +10 -308
- package/dist/types/client/hulk/cabin.d.ts +36 -0
- package/dist/types/client/hulk/common.d.ts +55 -0
- package/dist/types/client/hulk/debris.d.ts +16 -0
- package/dist/types/client/hulk/hull.d.ts +81 -0
- package/dist/types/client/hulk/inside.d.ts +5 -0
- package/dist/types/client/hulk/parts.d.ts +16 -0
- package/dist/types/client/hulk/types.d.ts +7 -0
- package/dist/types/client/hulk/wings.d.ts +4 -0
- package/dist/types/client/hulk.d.ts +8 -18
- package/dist/types/client/hunter/animation.d.ts +113 -0
- package/dist/types/client/hunter/constants.d.ts +53 -0
- package/dist/types/client/hunter/disc.d.ts +33 -0
- package/dist/types/client/hunter/harpoon.d.ts +68 -0
- package/dist/types/client/hunter/marine.d.ts +14 -0
- package/dist/types/client/hunter/model.d.ts +4 -0
- package/dist/types/client/hunter/rest.d.ts +7 -0
- package/dist/types/client/hunter.d.ts +7 -164
- package/dist/types/client/render/camera.d.ts +58 -0
- package/dist/types/client/render/constants.d.ts +63 -0
- package/dist/types/client/render/scene.d.ts +58 -0
- package/dist/types/client/render/shader.d.ts +62 -0
- package/dist/types/client/render/shots.d.ts +61 -0
- package/dist/types/client/render/types.d.ts +74 -0
- package/dist/types/client/render.d.ts +9 -277
- package/dist/types/client/sfx/air.d.ts +46 -0
- package/dist/types/client/sfx/anthem.d.ts +27 -0
- package/dist/types/client/sfx/layers.d.ts +6 -0
- package/dist/types/client/sfx/music.d.ts +96 -0
- package/dist/types/client/sfx/render.d.ts +10 -0
- package/dist/types/client/sfx/sounds.d.ts +180 -0
- package/dist/types/client/sfx/synth.d.ts +24 -0
- package/dist/types/client/sfx/voices.d.ts +59 -0
- package/dist/types/client/sfx.d.ts +8 -325
- package/dist/types/client/skin/head.d.ts +120 -0
- package/dist/types/client/skin/lofts.d.ts +145 -0
- package/dist/types/client/skin/pose.d.ts +102 -0
- package/dist/types/client/skin/shape.d.ts +2 -0
- package/dist/types/client/skin.d.ts +4 -179
- package/dist/types/client/soldier/animate.d.ts +12 -0
- package/dist/types/client/soldier/carry.d.ts +28 -0
- package/dist/types/client/soldier/common.d.ts +8 -0
- package/dist/types/client/soldier/draw.d.ts +12 -0
- package/dist/types/client/soldier/grasp.d.ts +28 -0
- package/dist/types/client/soldier/hunter.d.ts +38 -0
- package/dist/types/client/soldier/runner.d.ts +58 -0
- package/dist/types/client/soldier/stance.d.ts +20 -0
- package/dist/types/client/soldier/types.d.ts +107 -0
- package/dist/types/client/soldier.d.ts +9 -236
- package/dist/types/client/xeno/back.d.ts +113 -0
- package/dist/types/client/xeno/body.d.ts +63 -0
- package/dist/types/client/xeno/common.d.ts +28 -0
- package/dist/types/client/xeno/head.d.ts +109 -0
- package/dist/types/client/xeno/limbs.d.ts +62 -0
- package/dist/types/client/xeno/mouth.d.ts +23 -0
- package/dist/types/client/xeno/parts.d.ts +40 -0
- package/dist/types/client/xeno/tail.d.ts +107 -0
- package/dist/types/client/xeno.d.ts +8 -246
- package/package.json +1 -1
- package/dist/landfall-CXJnap8w.js +0 -21
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/** The ids of the sounds: an index into LAYERS. LOOPED lists the loops. */
|
|
2
|
+
export declare const SOUND: {
|
|
3
|
+
readonly STEP: 0;
|
|
4
|
+
/** The lighter tap of a step on a wall. */
|
|
5
|
+
readonly WALLSTEP: 1;
|
|
6
|
+
readonly JUMP: 2;
|
|
7
|
+
readonly DOUBLE: 3;
|
|
8
|
+
readonly DASH: 4;
|
|
9
|
+
readonly LAND: 5;
|
|
10
|
+
readonly GRAB: 6;
|
|
11
|
+
readonly SCUFF: 7;
|
|
12
|
+
readonly WIND: 8;
|
|
13
|
+
readonly SCRAPE: 9;
|
|
14
|
+
/** Capture the flag: a flag taken, dropped, returned home, and a capture. */
|
|
15
|
+
readonly TAKE: 10;
|
|
16
|
+
readonly DROP: 11;
|
|
17
|
+
readonly RETURN: 12;
|
|
18
|
+
readonly CAPTURE: 13;
|
|
19
|
+
/** A tackle: the impact, and the grunt of the one tackled. */
|
|
20
|
+
readonly TACKLE: 14;
|
|
21
|
+
readonly GRUNT: 15;
|
|
22
|
+
/** The gun: a shot, the shooter's hit sound, hurt, going down, taking the gun or a refill, a health pack, an empty click. */
|
|
23
|
+
readonly LASER: 16;
|
|
24
|
+
readonly HIT: 17;
|
|
25
|
+
readonly HURT: 18;
|
|
26
|
+
readonly DOWN: 19;
|
|
27
|
+
readonly GUN: 20;
|
|
28
|
+
readonly PACK: 21;
|
|
29
|
+
readonly DRY: 22;
|
|
30
|
+
/** The katana: the shing of drawing or sheathing it, the swish of a cut (played faster for a thrust, slower for a slash), the electric zap of a hit. */
|
|
31
|
+
readonly SHING: 23;
|
|
32
|
+
readonly SWISH: 24;
|
|
33
|
+
readonly ZAP: 25;
|
|
34
|
+
/** A plasma ball bursting on a wall or a body. */
|
|
35
|
+
readonly SPLASH: 26;
|
|
36
|
+
/** A charged shot, under the plain one: a long deep blast. */
|
|
37
|
+
readonly BLAST: 27;
|
|
38
|
+
/** A crackle of the rail gun's bolt, played again and again while it is held. */
|
|
39
|
+
readonly RAIL: 28;
|
|
40
|
+
/** The rail gun in hand: a soft electric hum, looped, louder while its bolt goes out. */
|
|
41
|
+
readonly HUM: 29;
|
|
42
|
+
/** The rail gun's bolt as its holder hears it: an electric buzz, looped, its pitch swung up and down by the player. */
|
|
43
|
+
readonly BUZZ: 30;
|
|
44
|
+
/**
|
|
45
|
+
* The swaps (gun.ts CUES): the gun's battery let go and sliding out, the new one clicked home;
|
|
46
|
+
* the rail gun's capsule jumping off, a turn of the screw on the new one; and a gun powering up.
|
|
47
|
+
*/
|
|
48
|
+
readonly EJECT: 31;
|
|
49
|
+
readonly CLICK: 32;
|
|
50
|
+
readonly POP: 33;
|
|
51
|
+
readonly SCREW: 34;
|
|
52
|
+
readonly BOOT: 35;
|
|
53
|
+
/** The laser rifle's shot: a punch in the bass and the middle, short enough for 20 a second. */
|
|
54
|
+
readonly LASE: 36;
|
|
55
|
+
/** The rail gun overheating: a burst of steam hissing out and a whistle falling under it. */
|
|
56
|
+
readonly HISS: 37;
|
|
57
|
+
/** The katana coming on: its button clicked, then its edge's current crackling and buzzing. */
|
|
58
|
+
readonly IGNITE: 38;
|
|
59
|
+
/** The plasma gun charging, held: a whine played higher as the charge grows (combat.ts), looped. */
|
|
60
|
+
readonly CHARGE: 39;
|
|
61
|
+
/** The rover's electric turbine, looped: played higher as it goes faster. */
|
|
62
|
+
readonly ENGINE: 40;
|
|
63
|
+
/** The rover's suspension taking a landing. */
|
|
64
|
+
readonly THUD: 41;
|
|
65
|
+
/** The rover's tyres sliding sideways over the dust, looped: louder as it drifts wider. */
|
|
66
|
+
readonly SKID: 42;
|
|
67
|
+
/** Breathing in a space helmet (the user, 2026-11-10), in then out: air drawn through the regulator, and let out with its valve's hiss. */
|
|
68
|
+
readonly INHALE: 43;
|
|
69
|
+
readonly EXHALE: 44;
|
|
70
|
+
/** An automatic door (doors.ts) sliding open: its seals let go with a hiss and its servo whirs up. */
|
|
71
|
+
readonly DOOR: 45;
|
|
72
|
+
/** And sliding shut: the servo whirs down and the panels meet with a thump. */
|
|
73
|
+
readonly SHUT: 46;
|
|
74
|
+
/** A vehicle's damage (wreck.ts): a shot on its hull, a crackle of its arcs, its explosion, its wreck falling apart. */
|
|
75
|
+
readonly HULL: 47;
|
|
76
|
+
readonly ARC: 48;
|
|
77
|
+
readonly WRECK: 49;
|
|
78
|
+
readonly CRUMBLE: 50;
|
|
79
|
+
/** A vehicle's laser bolt (the user, 2026-11-12: a blaster of the films): a bright zing diving fast, metallic. */
|
|
80
|
+
readonly BLASTER: 51;
|
|
81
|
+
/** The combat ship's engines, looped: a turbine's whine over a jet's roar, played higher and louder with the thrust. */
|
|
82
|
+
readonly JET: 52;
|
|
83
|
+
/** The ship crashing into a wall, the ground or another vehicle: a crunch of metal over a deep thump. */
|
|
84
|
+
readonly CRASH: 53;
|
|
85
|
+
/**
|
|
86
|
+
* A voice in pain (the user, 2026-11-13): a short "ugh" when hurt, a falling cry when put down.
|
|
87
|
+
* A saw and its 3rd and 5th harmonics sliding together (the vowel), over a breath.
|
|
88
|
+
*/
|
|
89
|
+
readonly PAIN: 54;
|
|
90
|
+
readonly DEATH: 55;
|
|
91
|
+
/**
|
|
92
|
+
* The pickups' own sounds (the user, 2026-11-14: one for each), PACK being the health's: an ammo
|
|
93
|
+
* pack's clack of a magazine and a blip up a fifth; an armour's rising hum under a ringing chord.
|
|
94
|
+
*/
|
|
95
|
+
readonly AMMO: 56;
|
|
96
|
+
readonly ARMOR: 57;
|
|
97
|
+
/** The orbital station's mission: the alarm of a strike armed, and the strike's lasers from the sky. */
|
|
98
|
+
readonly ALARM: 58;
|
|
99
|
+
readonly STRIKE: 59;
|
|
100
|
+
/**
|
|
101
|
+
* The xenomorph's own (the user, 2026-11-16: not a runner's): a hiss with a growl under it as it
|
|
102
|
+
* charges its tail, a shriek as it dashes, its claws' swipe and the whip of its tail, a screech of
|
|
103
|
+
* pain and a big roar going down, its footfall (claws, wet pad, weight) at each step, the sizzle of
|
|
104
|
+
* its acid blood, a roar after a kill, and the heavier footfall of a landing.
|
|
105
|
+
*/
|
|
106
|
+
readonly XENO_HISS: 60;
|
|
107
|
+
readonly SHRIEK: 61;
|
|
108
|
+
readonly CLAW: 62;
|
|
109
|
+
readonly STING: 63;
|
|
110
|
+
readonly XENO_PAIN: 64;
|
|
111
|
+
readonly XENO_DEATH: 65;
|
|
112
|
+
readonly CHITIN: 66;
|
|
113
|
+
readonly ACID: 67;
|
|
114
|
+
readonly ROAR: 68;
|
|
115
|
+
readonly XENO_LAND: 69;
|
|
116
|
+
/** A fist bursting a head (the fists' glory kill): a deep thump, bone cracking, a wet splatter. */
|
|
117
|
+
readonly SMASH: 70;
|
|
118
|
+
/**
|
|
119
|
+
* The death cries (scream(), the user 2026-11-17: a synth's, not the players' voices): DEATH his
|
|
120
|
+
* brief cry of pain and HER_DEATH hers, for a dreadful death (a limb cut off, a hard fall, a heavy
|
|
121
|
+
* hit); GROAN and HER_GROAN cut off in the throat, for the others. Hers are her own, not his
|
|
122
|
+
* played faster: that raised the vowel with the pitch into a cartoon's.
|
|
123
|
+
*/
|
|
124
|
+
readonly HER_DEATH: 71;
|
|
125
|
+
readonly GROAN: 72;
|
|
126
|
+
readonly HER_GROAN: 73;
|
|
127
|
+
/** A Hunter harpoon: a tight mechanical release, then a quick metallic flight zing. */
|
|
128
|
+
readonly HARPOON: 74;
|
|
129
|
+
/** Original Hunter voice: a pain rasp, a fatal throat shriek and the short radio click-call. */
|
|
130
|
+
readonly HUNTER_PAIN: 75;
|
|
131
|
+
readonly HUNTER_DEATH: 76;
|
|
132
|
+
readonly HUNTER_TAUNT: 77;
|
|
133
|
+
/** Original wrist-blade mechanisms: an upward deployment and a lower, locking retraction. */
|
|
134
|
+
readonly HUNTER_BLADE_DRAW: 78;
|
|
135
|
+
readonly HUNTER_BLADE_SHEATHE: 79;
|
|
136
|
+
/** The Hunter's paired blades: a rasping sweep and a bright metal impact. */
|
|
137
|
+
readonly HUNTER_BLADE_SWISH: 80;
|
|
138
|
+
readonly HUNTER_BLADE_HIT: 81;
|
|
139
|
+
/** A spinning disc launch, its return whistle, and the catch against the wrist bracer. */
|
|
140
|
+
readonly HUNTER_DISC_THROW: 82;
|
|
141
|
+
readonly HUNTER_DISC_RETURN: 83;
|
|
142
|
+
readonly HUNTER_DISC_CATCH: 84;
|
|
143
|
+
/** A rising three-step target lock and a heavy shoulder-mounted laser discharge. */
|
|
144
|
+
readonly HUNTER_LOCK: 85;
|
|
145
|
+
readonly HUNTER_LASER: 86;
|
|
146
|
+
/** The harpoon's next bolt racked in from behind: steel sliding along steel, then the lock home. */
|
|
147
|
+
readonly HARPOON_RELOAD: 87;
|
|
148
|
+
/**
|
|
149
|
+
* The Hunter's views (the user, 2026-11-23): the flash of a view switched with V, then, while a
|
|
150
|
+
* special one is on, a heart beating and a radio that barely holds its station, both looped.
|
|
151
|
+
*/
|
|
152
|
+
readonly HUNTER_FLASH: 88;
|
|
153
|
+
readonly HEARTBEAT: 89;
|
|
154
|
+
readonly STATIC: 90;
|
|
155
|
+
/**
|
|
156
|
+
* The shoulder cannon taking a foe in its sight, after the Predator's (the user, 2026-11-23; the
|
|
157
|
+
* first 5 s of "Predator Target lock and Plasma weapon sound FX", analysed): three dry clicks round
|
|
158
|
+
* 700 Hz 75 ms apart and a breath of noise, then HUNTER_SEEK, looped until the lock: a steady
|
|
159
|
+
* electronic hum at 1.5 kHz over a fainter 1.2 kHz, each buzzing at 65 Hz.
|
|
160
|
+
*/
|
|
161
|
+
readonly HUNTER_TRACK: 91;
|
|
162
|
+
readonly HUNTER_SEEK: 92;
|
|
163
|
+
/** A harpoon bolt striking (the user, 2026-11-24: a shock, not a laser's splash). */
|
|
164
|
+
readonly HARPOON_HIT: 93;
|
|
165
|
+
/**
|
|
166
|
+
* The harpoon unfolding as it comes to hand (HARPOON_DRAW, 1.1 s): a catch let go, the slide and
|
|
167
|
+
* the stock grinding out, a ratchet over them, and a heavy lock as they reach their stops.
|
|
168
|
+
*/
|
|
169
|
+
readonly HARPOON_OPEN: 94;
|
|
170
|
+
/**
|
|
171
|
+
* The Hunter's radio (the user, 2026-11-24: sounds and radio voices of his own): CLICKS his
|
|
172
|
+
* rattle, a trill of throat clicks over a low gurgle; GROWL a deep rolling roar.
|
|
173
|
+
*/
|
|
174
|
+
readonly HUNTER_CLICKS: 95;
|
|
175
|
+
readonly HUNTER_GROWL: 96;
|
|
176
|
+
/** A step in shallow water: a splash with spray and a bubble rising; also a body entering the water, lower. */
|
|
177
|
+
readonly WADE: 97;
|
|
178
|
+
/** A swimmer's stroke through the water, looped: a low wash with a rustle over it, louder with his speed. */
|
|
179
|
+
readonly SWIM: 98;
|
|
180
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One oscillator: wave (0 square, 1 saw, 2 sine, 3 noise held for one period), hz, slide in octaves
|
|
3
|
+
* per second, attack, sustain and decay in seconds, vibrato depth, low-pass (0..1, 1 is off),
|
|
4
|
+
* arpeggio time and frequency multiplier, volume; optionally the seconds it starts late.
|
|
5
|
+
*/
|
|
6
|
+
export type Voice = [
|
|
7
|
+
number,
|
|
8
|
+
number,
|
|
9
|
+
number,
|
|
10
|
+
number,
|
|
11
|
+
number,
|
|
12
|
+
number,
|
|
13
|
+
number,
|
|
14
|
+
number,
|
|
15
|
+
number,
|
|
16
|
+
number,
|
|
17
|
+
number,
|
|
18
|
+
number?
|
|
19
|
+
];
|
|
20
|
+
/** Sample rate of everything rendered here; audio.ts resamples through AudioBuffer if needed. */
|
|
21
|
+
export declare const RATE = 44100;
|
|
22
|
+
/** Noise in [-1, 1) from a seed: mulberry32. */
|
|
23
|
+
export declare const mulberry: (seed: number) => () => number;
|
|
24
|
+
export declare const synth: ([wave, hz, slide, a, s, d, vib, lp, jt, jm, vol]: Voice, seed: number, rate?: number) => Float32Array<ArrayBuffer>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A cry of a human voice, source-filter: the flow through the vocal folds (a Rosenberg pulse, not a
|
|
3
|
+
* saw: a saw buzzes like a synth) through four vowel formants, breath riding each opening, and no
|
|
4
|
+
* two periods alike in length or loudness. The death cries are short cries of pain (the user,
|
|
5
|
+
* 2026-11-17: "a brief cry of pain", the screams were long, loud and synthetic).
|
|
6
|
+
*/
|
|
7
|
+
export type Cry = {
|
|
8
|
+
/** Seconds. */
|
|
9
|
+
len: number;
|
|
10
|
+
/** The pitch (Hz) at the start, at `up` s, at `hold` s, and at the end, falling from `hold`. */
|
|
11
|
+
hz: [number, number, number, number];
|
|
12
|
+
up: number;
|
|
13
|
+
hold: number;
|
|
14
|
+
/** Vibrato: Hz and depth. */
|
|
15
|
+
vib: [number, number];
|
|
16
|
+
/** How much each period's loudness is off the last (shimmer). */
|
|
17
|
+
shim: number;
|
|
18
|
+
/** Every other period this much louder: the rasp of a torn throat. */
|
|
19
|
+
rasp: number;
|
|
20
|
+
/** Breath on each opening while held, and more of it as the voice gives out. */
|
|
21
|
+
breath: [number, number];
|
|
22
|
+
/** The formants: Hz at the start, at the end, bandwidth, gain. */
|
|
23
|
+
F: number[][];
|
|
24
|
+
/** Seconds where the voice stops dead, a breath let out after it; 0 fades it out over `fade` s. */
|
|
25
|
+
choke: number;
|
|
26
|
+
fade: number;
|
|
27
|
+
/** The peak of the samples. */
|
|
28
|
+
vol: number;
|
|
29
|
+
seed: number;
|
|
30
|
+
};
|
|
31
|
+
/** His: a short "AH!" thrown up to 330 Hz at once, falling to an "uh" and a breath. */
|
|
32
|
+
export declare const HIS: Cry;
|
|
33
|
+
/** Hers: the same cry at 560 Hz, a shorter throat, little rasp, more breath. Not his raised: his rasp under her pitch read as a man in falsetto. */
|
|
34
|
+
export declare const HERS: Cry;
|
|
35
|
+
/** His groan as a shot puts him down: a rising "hngh-uh" cut off in the throat, then the breath out. */
|
|
36
|
+
export declare const GROANED: Cry;
|
|
37
|
+
/** Hers: the same cut-off cry, her pitch and throat. */
|
|
38
|
+
export declare const MOANED: Cry;
|
|
39
|
+
/** The death cries by SOUND id. */
|
|
40
|
+
export declare const CRIES: Record<number, Cry>;
|
|
41
|
+
/** The flow through the folds over a period: opening over 40 %, shut over 16 %, closed the rest. */
|
|
42
|
+
export declare const flow: (p: number) => number;
|
|
43
|
+
/** Renders a Cry as mono samples at RATE, peaking at its `vol`. */
|
|
44
|
+
export declare const scream: (c?: Cry) => Float32Array;
|
|
45
|
+
/**
|
|
46
|
+
* A radio that barely holds its station, under the Hunter's special views (the user, 2026-11-23:
|
|
47
|
+
* close to the film's, subtle, and no high tone over and over but a deep, unsettling and slightly
|
|
48
|
+
* distorted one coming back slowly, then rarer and slower still): once a loop a low growl swells in
|
|
49
|
+
* and sinks away, overdriven,
|
|
50
|
+
* over a faint hiss that fades and drops out, a crackle now and then and a slow tuning whistle.
|
|
51
|
+
* 6.1 s, for a 6 s loop (seam): the swell's envelope repeats every 6 s, so the seam joins it.
|
|
52
|
+
*/
|
|
53
|
+
export declare const radio: () => Float32Array;
|
|
54
|
+
/**
|
|
55
|
+
* A sound made loopable: the last `x` samples are cross-faded into the first, the length drops by
|
|
56
|
+
* `x`, and the end joins the start. For a stationary sound (a loop's voice is held at full
|
|
57
|
+
* volume, nothing but noise), whose own ends are no longer heard.
|
|
58
|
+
*/
|
|
59
|
+
export declare const seam: (s: Float32Array, x?: number) => Float32Array;
|
|
@@ -1,325 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
number,
|
|
10
|
-
number,
|
|
11
|
-
number,
|
|
12
|
-
number,
|
|
13
|
-
number,
|
|
14
|
-
number,
|
|
15
|
-
number,
|
|
16
|
-
number,
|
|
17
|
-
number,
|
|
18
|
-
number?
|
|
19
|
-
];
|
|
20
|
-
/** Sample rate of everything rendered here; audio.ts resamples through AudioBuffer if needed. */
|
|
21
|
-
export declare const RATE = 44100;
|
|
22
|
-
/** The ids of the sounds: an index into LAYERS. LOOPED lists the loops. */
|
|
23
|
-
export declare const SOUND: {
|
|
24
|
-
readonly STEP: 0;
|
|
25
|
-
/** The lighter tap of a step on a wall. */
|
|
26
|
-
readonly WALLSTEP: 1;
|
|
27
|
-
readonly JUMP: 2;
|
|
28
|
-
readonly DOUBLE: 3;
|
|
29
|
-
readonly DASH: 4;
|
|
30
|
-
readonly LAND: 5;
|
|
31
|
-
readonly GRAB: 6;
|
|
32
|
-
readonly SCUFF: 7;
|
|
33
|
-
readonly WIND: 8;
|
|
34
|
-
readonly SCRAPE: 9;
|
|
35
|
-
/** Capture the flag: a flag taken, dropped, returned home, and a capture. */
|
|
36
|
-
readonly TAKE: 10;
|
|
37
|
-
readonly DROP: 11;
|
|
38
|
-
readonly RETURN: 12;
|
|
39
|
-
readonly CAPTURE: 13;
|
|
40
|
-
/** A tackle: the impact, and the grunt of the one tackled. */
|
|
41
|
-
readonly TACKLE: 14;
|
|
42
|
-
readonly GRUNT: 15;
|
|
43
|
-
/** The gun: a shot, the shooter's hit sound, hurt, going down, taking the gun or a refill, a health pack, an empty click. */
|
|
44
|
-
readonly LASER: 16;
|
|
45
|
-
readonly HIT: 17;
|
|
46
|
-
readonly HURT: 18;
|
|
47
|
-
readonly DOWN: 19;
|
|
48
|
-
readonly GUN: 20;
|
|
49
|
-
readonly PACK: 21;
|
|
50
|
-
readonly DRY: 22;
|
|
51
|
-
/** The katana: the shing of drawing or sheathing it, the swish of a cut (played faster for a thrust, slower for a slash), the electric zap of a hit. */
|
|
52
|
-
readonly SHING: 23;
|
|
53
|
-
readonly SWISH: 24;
|
|
54
|
-
readonly ZAP: 25;
|
|
55
|
-
/** A plasma ball bursting on a wall or a body. */
|
|
56
|
-
readonly SPLASH: 26;
|
|
57
|
-
/** A charged shot, under the plain one: a long deep blast. */
|
|
58
|
-
readonly BLAST: 27;
|
|
59
|
-
/** A crackle of the rail gun's bolt, played again and again while it is held. */
|
|
60
|
-
readonly RAIL: 28;
|
|
61
|
-
/** The rail gun in hand: a soft electric hum, looped, louder while its bolt goes out. */
|
|
62
|
-
readonly HUM: 29;
|
|
63
|
-
/** The rail gun's bolt as its holder hears it: an electric buzz, looped, its pitch swung up and down by the player. */
|
|
64
|
-
readonly BUZZ: 30;
|
|
65
|
-
/**
|
|
66
|
-
* The swaps (gun.ts CUES): the gun's battery let go and sliding out, the new one clicked home;
|
|
67
|
-
* the rail gun's capsule jumping off, a turn of the screw on the new one; and a gun powering up.
|
|
68
|
-
*/
|
|
69
|
-
readonly EJECT: 31;
|
|
70
|
-
readonly CLICK: 32;
|
|
71
|
-
readonly POP: 33;
|
|
72
|
-
readonly SCREW: 34;
|
|
73
|
-
readonly BOOT: 35;
|
|
74
|
-
/** The laser rifle's shot: a punch in the bass and the middle, short enough for 20 a second. */
|
|
75
|
-
readonly LASE: 36;
|
|
76
|
-
/** The rail gun overheating: a burst of steam hissing out and a whistle falling under it. */
|
|
77
|
-
readonly HISS: 37;
|
|
78
|
-
/** The katana coming on: its button clicked, then its edge's current crackling and buzzing. */
|
|
79
|
-
readonly IGNITE: 38;
|
|
80
|
-
/** The plasma gun charging, held: a whine played higher as the charge grows (combat.ts), looped. */
|
|
81
|
-
readonly CHARGE: 39;
|
|
82
|
-
/** The rover's electric turbine, looped: played higher as it goes faster. */
|
|
83
|
-
readonly ENGINE: 40;
|
|
84
|
-
/** The rover's suspension taking a landing. */
|
|
85
|
-
readonly THUD: 41;
|
|
86
|
-
/** The rover's tyres sliding sideways over the dust, looped: louder as it drifts wider. */
|
|
87
|
-
readonly SKID: 42;
|
|
88
|
-
/** Breathing in a space helmet (the user, 2026-11-10), in then out: air drawn through the regulator, and let out with its valve's hiss. */
|
|
89
|
-
readonly INHALE: 43;
|
|
90
|
-
readonly EXHALE: 44;
|
|
91
|
-
/** An automatic door (doors.ts) sliding open: its seals let go with a hiss and its servo whirs up. */
|
|
92
|
-
readonly DOOR: 45;
|
|
93
|
-
/** And sliding shut: the servo whirs down and the panels meet with a thump. */
|
|
94
|
-
readonly SHUT: 46;
|
|
95
|
-
/** A vehicle's damage (wreck.ts): a shot on its hull, a crackle of its arcs, its explosion, its wreck falling apart. */
|
|
96
|
-
readonly HULL: 47;
|
|
97
|
-
readonly ARC: 48;
|
|
98
|
-
readonly WRECK: 49;
|
|
99
|
-
readonly CRUMBLE: 50;
|
|
100
|
-
/** A vehicle's laser bolt (the user, 2026-11-12: a blaster of the films): a bright zing diving fast, metallic. */
|
|
101
|
-
readonly BLASTER: 51;
|
|
102
|
-
/** The combat ship's engines, looped: a turbine's whine over a jet's roar, played higher and louder with the thrust. */
|
|
103
|
-
readonly JET: 52;
|
|
104
|
-
/** The ship crashing into a wall, the ground or another vehicle: a crunch of metal over a deep thump. */
|
|
105
|
-
readonly CRASH: 53;
|
|
106
|
-
/**
|
|
107
|
-
* A voice in pain (the user, 2026-11-13): a short "ugh" when hurt, a falling cry when put down.
|
|
108
|
-
* A saw and its 3rd and 5th harmonics sliding together (the vowel), over a breath.
|
|
109
|
-
*/
|
|
110
|
-
readonly PAIN: 54;
|
|
111
|
-
readonly DEATH: 55;
|
|
112
|
-
/**
|
|
113
|
-
* The pickups' own sounds (the user, 2026-11-14: one for each), PACK being the health's: an ammo
|
|
114
|
-
* pack's clack of a magazine and a blip up a fifth; an armour's rising hum under a ringing chord.
|
|
115
|
-
*/
|
|
116
|
-
readonly AMMO: 56;
|
|
117
|
-
readonly ARMOR: 57;
|
|
118
|
-
/** The orbital station's mission: the alarm of a strike armed, and the strike's lasers from the sky. */
|
|
119
|
-
readonly ALARM: 58;
|
|
120
|
-
readonly STRIKE: 59;
|
|
121
|
-
/**
|
|
122
|
-
* The xenomorph's own (the user, 2026-11-16: not a runner's): a hiss with a growl under it as it
|
|
123
|
-
* charges its tail, a shriek as it dashes, its claws' swipe and the whip of its tail, a screech of
|
|
124
|
-
* pain and a big roar going down, its footfall (claws, wet pad, weight) at each step, the sizzle of
|
|
125
|
-
* its acid blood, a roar after a kill, and the heavier footfall of a landing.
|
|
126
|
-
*/
|
|
127
|
-
readonly XENO_HISS: 60;
|
|
128
|
-
readonly SHRIEK: 61;
|
|
129
|
-
readonly CLAW: 62;
|
|
130
|
-
readonly STING: 63;
|
|
131
|
-
readonly XENO_PAIN: 64;
|
|
132
|
-
readonly XENO_DEATH: 65;
|
|
133
|
-
readonly CHITIN: 66;
|
|
134
|
-
readonly ACID: 67;
|
|
135
|
-
readonly ROAR: 68;
|
|
136
|
-
readonly XENO_LAND: 69;
|
|
137
|
-
/** A fist bursting a head (the fists' glory kill): a deep thump, bone cracking, a wet splatter. */
|
|
138
|
-
readonly SMASH: 70;
|
|
139
|
-
/**
|
|
140
|
-
* The death cries (scream(), the user 2026-11-17: a synth's, not the players' voices): DEATH his
|
|
141
|
-
* brief cry of pain and HER_DEATH hers, for a dreadful death (a limb cut off, a hard fall, a heavy
|
|
142
|
-
* hit); GROAN and HER_GROAN cut off in the throat, for the others. Hers are her own, not his
|
|
143
|
-
* played faster: that raised the vowel with the pitch into a cartoon's.
|
|
144
|
-
*/
|
|
145
|
-
readonly HER_DEATH: 71;
|
|
146
|
-
readonly GROAN: 72;
|
|
147
|
-
readonly HER_GROAN: 73;
|
|
148
|
-
/** A Hunter harpoon: a tight mechanical release, then a quick metallic flight zing. */
|
|
149
|
-
readonly HARPOON: 74;
|
|
150
|
-
/** Original Hunter voice: a pain rasp, a fatal throat shriek and the short radio click-call. */
|
|
151
|
-
readonly HUNTER_PAIN: 75;
|
|
152
|
-
readonly HUNTER_DEATH: 76;
|
|
153
|
-
readonly HUNTER_TAUNT: 77;
|
|
154
|
-
/** Original wrist-blade mechanisms: an upward deployment and a lower, locking retraction. */
|
|
155
|
-
readonly HUNTER_BLADE_DRAW: 78;
|
|
156
|
-
readonly HUNTER_BLADE_SHEATHE: 79;
|
|
157
|
-
/** The Hunter's paired blades: a rasping sweep and a bright metal impact. */
|
|
158
|
-
readonly HUNTER_BLADE_SWISH: 80;
|
|
159
|
-
readonly HUNTER_BLADE_HIT: 81;
|
|
160
|
-
/** A spinning disc launch, its return whistle, and the catch against the wrist bracer. */
|
|
161
|
-
readonly HUNTER_DISC_THROW: 82;
|
|
162
|
-
readonly HUNTER_DISC_RETURN: 83;
|
|
163
|
-
readonly HUNTER_DISC_CATCH: 84;
|
|
164
|
-
/** A rising three-step target lock and a heavy shoulder-mounted laser discharge. */
|
|
165
|
-
readonly HUNTER_LOCK: 85;
|
|
166
|
-
readonly HUNTER_LASER: 86;
|
|
167
|
-
/** The harpoon's next bolt racked in from behind: steel sliding along steel, then the lock home. */
|
|
168
|
-
readonly HARPOON_RELOAD: 87;
|
|
169
|
-
/**
|
|
170
|
-
* The Hunter's views (the user, 2026-11-23): the flash of a view switched with V, then, while a
|
|
171
|
-
* special one is on, a heart beating and a radio that barely holds its station, both looped.
|
|
172
|
-
*/
|
|
173
|
-
readonly HUNTER_FLASH: 88;
|
|
174
|
-
readonly HEARTBEAT: 89;
|
|
175
|
-
readonly STATIC: 90;
|
|
176
|
-
/**
|
|
177
|
-
* The shoulder cannon taking a foe in its sight, after the Predator's (the user, 2026-11-23; the
|
|
178
|
-
* first 5 s of "Predator Target lock and Plasma weapon sound FX", analysed): three dry clicks round
|
|
179
|
-
* 700 Hz 75 ms apart and a breath of noise, then HUNTER_SEEK, looped until the lock: a steady
|
|
180
|
-
* electronic hum at 1.5 kHz over a fainter 1.2 kHz, each buzzing at 65 Hz.
|
|
181
|
-
*/
|
|
182
|
-
readonly HUNTER_TRACK: 91;
|
|
183
|
-
readonly HUNTER_SEEK: 92;
|
|
184
|
-
/** A harpoon bolt striking (the user, 2026-11-24: a shock, not a laser's splash). */
|
|
185
|
-
readonly HARPOON_HIT: 93;
|
|
186
|
-
/**
|
|
187
|
-
* The harpoon unfolding as it comes to hand (HARPOON_DRAW, 1.1 s): a catch let go, the slide and
|
|
188
|
-
* the stock grinding out, a ratchet over them, and a heavy lock as they reach their stops.
|
|
189
|
-
*/
|
|
190
|
-
readonly HARPOON_OPEN: 94;
|
|
191
|
-
/**
|
|
192
|
-
* The Hunter's radio (the user, 2026-11-24: sounds and radio voices of his own): CLICKS his
|
|
193
|
-
* rattle, a trill of throat clicks over a low gurgle; GROWL a deep rolling roar.
|
|
194
|
-
*/
|
|
195
|
-
readonly HUNTER_CLICKS: 95;
|
|
196
|
-
readonly HUNTER_GROWL: 96;
|
|
197
|
-
/** A step in shallow water: a splash with spray and a bubble rising; also a body entering the water, lower. */
|
|
198
|
-
readonly WADE: 97;
|
|
199
|
-
/** A swimmer's stroke through the water, looped: a low wash with a rustle over it, louder with his speed. */
|
|
200
|
-
readonly SWIM: 98;
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* The sounds of the game: one entry per sound, its voices layered, in SOUND order. A low-passed
|
|
204
|
-
* noise is quiet (lp 0.06 keeps about a tenth of the swing): the loops have a high volume.
|
|
205
|
-
*/
|
|
206
|
-
export declare const LAYERS: Voice[][];
|
|
207
|
-
/** The seconds sound `id` lasts: its longest voice, from its start late to the end of its decay. */
|
|
208
|
-
export declare const secondsOf: (id: number, layers?: Voice[][]) => number;
|
|
209
|
-
/** The sounds played in a loop: their buffers go through seam. */
|
|
210
|
-
export declare const LOOPED: number[];
|
|
211
|
-
/**
|
|
212
|
-
* Renders the sound `id` of `layers` as mono samples in [-1, 1] at RATE, deterministic (seeded
|
|
213
|
-
* noise), silent at both ends (no click).
|
|
214
|
-
*/
|
|
215
|
-
export declare const render: (id: number, layers?: Voice[][]) => Float32Array;
|
|
216
|
-
/**
|
|
217
|
-
* A cry of a human voice, source-filter: the flow through the vocal folds (a Rosenberg pulse, not a
|
|
218
|
-
* saw: a saw buzzes like a synth) through four vowel formants, breath riding each opening, and no
|
|
219
|
-
* two periods alike in length or loudness. The death cries are short cries of pain (the user,
|
|
220
|
-
* 2026-11-17: "a brief cry of pain", the screams were long, loud and synthetic).
|
|
221
|
-
*/
|
|
222
|
-
export type Cry = {
|
|
223
|
-
/** Seconds. */
|
|
224
|
-
len: number;
|
|
225
|
-
/** The pitch (Hz) at the start, at `up` s, at `hold` s, and at the end, falling from `hold`. */
|
|
226
|
-
hz: [number, number, number, number];
|
|
227
|
-
up: number;
|
|
228
|
-
hold: number;
|
|
229
|
-
/** Vibrato: Hz and depth. */
|
|
230
|
-
vib: [number, number];
|
|
231
|
-
/** How much each period's loudness is off the last (shimmer). */
|
|
232
|
-
shim: number;
|
|
233
|
-
/** Every other period this much louder: the rasp of a torn throat. */
|
|
234
|
-
rasp: number;
|
|
235
|
-
/** Breath on each opening while held, and more of it as the voice gives out. */
|
|
236
|
-
breath: [number, number];
|
|
237
|
-
/** The formants: Hz at the start, at the end, bandwidth, gain. */
|
|
238
|
-
F: number[][];
|
|
239
|
-
/** Seconds where the voice stops dead, a breath let out after it; 0 fades it out over `fade` s. */
|
|
240
|
-
choke: number;
|
|
241
|
-
fade: number;
|
|
242
|
-
/** The peak of the samples. */
|
|
243
|
-
vol: number;
|
|
244
|
-
seed: number;
|
|
245
|
-
};
|
|
246
|
-
/** Renders a Cry as mono samples at RATE, peaking at its `vol`. */
|
|
247
|
-
export declare const scream: (c?: Cry) => Float32Array;
|
|
248
|
-
/**
|
|
249
|
-
* A radio that barely holds its station, under the Hunter's special views (the user, 2026-11-23:
|
|
250
|
-
* close to the film's, subtle, and no high tone over and over but a deep, unsettling and slightly
|
|
251
|
-
* distorted one coming back slowly, then rarer and slower still): once a loop a low growl swells in
|
|
252
|
-
* and sinks away, overdriven,
|
|
253
|
-
* over a faint hiss that fades and drops out, a crackle now and then and a slow tuning whistle.
|
|
254
|
-
* 6.1 s, for a 6 s loop (seam): the swell's envelope repeats every 6 s, so the seam joins it.
|
|
255
|
-
*/
|
|
256
|
-
export declare const radio: () => Float32Array;
|
|
257
|
-
/**
|
|
258
|
-
* A sound made loopable: the last `x` samples are cross-faded into the first, the length drops by
|
|
259
|
-
* `x`, and the end joins the start. For a stationary sound (a loop's voice is held at full
|
|
260
|
-
* volume, nothing but noise), whose own ends are no longer heard.
|
|
261
|
-
*/
|
|
262
|
-
export declare const seam: (s: Float32Array, x?: number) => Float32Array;
|
|
263
|
-
/** The music's sample rate: half, as nothing in it but the hats goes past 4 kHz. */
|
|
264
|
-
export declare const MUSIC_RATE: number;
|
|
265
|
-
/**
|
|
266
|
-
* The music: sixteen bars in D major at 84 bpm (whole beats, whole samples), slow pads, sparse
|
|
267
|
-
* bells with an echo, soft hats and a muted pulse; mono samples in [-1, 1] at MUSIC_RATE,
|
|
268
|
-
* deterministic, whose end joins its start (every tail wraps onto the start). Quiet enough to sit
|
|
269
|
-
* under the sounds.
|
|
270
|
-
*/
|
|
271
|
-
export declare const music: () => Float32Array;
|
|
272
|
-
/**
|
|
273
|
-
* The moon's music, 8-bit: thirty-two bars in D minor at 126 bpm, a pulse lead, a fast arpeggio
|
|
274
|
-
* in a thin pulse, an octave bass on the triangle and noise drums. The second sixteen bars play
|
|
275
|
-
* the lead thinner with an echo and the arpeggio an octave up. Like music(): mono at MUSIC_RATE,
|
|
276
|
-
* deterministic, its end joining its start.
|
|
277
|
-
*/
|
|
278
|
-
export declare const moon: () => Float32Array;
|
|
279
|
-
/**
|
|
280
|
-
* Highline's music, 8-bit and airy: thirty-two bars in D major at 135 bpm with a lydian second.
|
|
281
|
-
* A high pulse lead with a dotted echo, thin on the theme and wide on the bridge, then on the soft
|
|
282
|
-
* triangle for the return; under it a sparkling sixteenth arpeggio an octave up, a bouncing octave
|
|
283
|
-
* bass on the triangle and light noise drums with an open hat. Mono at MUSIC_RATE, deterministic,
|
|
284
|
-
* its end joining its start.
|
|
285
|
-
*/
|
|
286
|
-
export declare const sky: () => Float32Array;
|
|
287
|
-
/** The music of each map by its key; the others play music(). */
|
|
288
|
-
export declare const SONGS: Record<string, () => Float32Array>;
|
|
289
|
-
/**
|
|
290
|
-
* A map's ambience, played by audio.ts round the listener: beds that loop, each as loud as where
|
|
291
|
-
* he stands makes it, and a cry now and then from afar.
|
|
292
|
-
*/
|
|
293
|
-
export interface Air {
|
|
294
|
-
/** The beds: mono loops at MUSIC_RATE whose end joins their start. */
|
|
295
|
-
beds: (() => Float32Array)[];
|
|
296
|
-
/** Each bed's volume, 0 to 1, for a listener at `eye` at `t` seconds, written into `out`. */
|
|
297
|
-
mix(eye: readonly number[], t: number, out: number[]): void;
|
|
298
|
-
/** The cry's voices, and where one comes from, given two numbers drawn in [0, 1). */
|
|
299
|
-
cry: Voice[];
|
|
300
|
-
from(u: number, v: number): [number, number, number];
|
|
301
|
-
}
|
|
302
|
-
/**
|
|
303
|
-
* The surf, twelve seconds: under the far sea's rumble, two waves a loop and three weaker ones
|
|
304
|
-
* between them. Each swells, breaks (the noise opens up: its low-pass rises with the wave) and
|
|
305
|
-
* draws back down the sand as a long hiss. Every envelope is a whole number of periods a loop and
|
|
306
|
-
* the filters run a quarter of it unheard first, so the end joins the start.
|
|
307
|
-
*/
|
|
308
|
-
export declare const surf: () => Float32Array;
|
|
309
|
-
export declare const breeze: () => Float32Array;
|
|
310
|
-
export declare const blaze: () => Float32Array;
|
|
311
|
-
/**
|
|
312
|
-
* The forest's insects, six seconds: three cicadas, each a high sine that trills and comes and
|
|
313
|
-
* goes. Every frequency is a whole number of periods a loop: its end joins its start.
|
|
314
|
-
*/
|
|
315
|
-
export declare const chirr: () => Float32Array;
|
|
316
|
-
/** The ambience of each map by its key; the others have none. */
|
|
317
|
-
export declare const AIRS: Record<string, Air>;
|
|
318
|
-
/**
|
|
319
|
-
* The menus' theme, 8-bit: thirty-two bars in E minor at 105 bpm, a chord every bar or half bar.
|
|
320
|
-
* The lead on the soft triangle, then on a pulse, then wide and with an echo at the climax, then
|
|
321
|
-
* back on the triangle with an echo over a thinner beat; under it a sixteenth arpeggio of the
|
|
322
|
-
* chord, an octave bass on the triangle and noise drums. Rhythmic, never shrill: the thin pulses
|
|
323
|
-
* stay quiet. Mono at MUSIC_RATE, deterministic, its end joining its start.
|
|
324
|
-
*/
|
|
325
|
-
export declare const anthem: () => Float32Array;
|
|
1
|
+
export * from './sfx/synth';
|
|
2
|
+
export * from './sfx/sounds';
|
|
3
|
+
export * from './sfx/layers';
|
|
4
|
+
export * from './sfx/render';
|
|
5
|
+
export * from './sfx/voices';
|
|
6
|
+
export * from './sfx/music';
|
|
7
|
+
export * from './sfx/air';
|
|
8
|
+
export * from './sfx/anthem';
|