@adatechnology/game-weather 0.3.0 → 0.3.2
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.global.js +564 -0
- package/dist/index.global.js.map +1 -1
- package/package.json +3 -3
package/dist/index.global.js
CHANGED
|
@@ -960,6 +960,570 @@ var GameWeather = (() => {
|
|
|
960
960
|
]
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
+
var sceneMany = (count, make) => Array.from({ length: count }, make);
|
|
964
|
+
var FOLEY_FALLOFF = {
|
|
965
|
+
model: "inverse_square",
|
|
966
|
+
k: 0.02,
|
|
967
|
+
cutoffK: 0.04,
|
|
968
|
+
minGain: 4e-3
|
|
969
|
+
};
|
|
970
|
+
var vary = (f, pct = 0.04) => [Math.round(f * (1 - pct)), Math.round(f * (1 + pct))];
|
|
971
|
+
var foley = (id, layers, note) => ({
|
|
972
|
+
id,
|
|
973
|
+
bus: "world",
|
|
974
|
+
pan: true,
|
|
975
|
+
layers,
|
|
976
|
+
falloff: FOLEY_FALLOFF,
|
|
977
|
+
sources: [`sdk: ${note}`]
|
|
978
|
+
});
|
|
979
|
+
var click = (f, vol, delay = 0) => [
|
|
980
|
+
sceneNoise({
|
|
981
|
+
type: "bandpass",
|
|
982
|
+
f: vary(f, 0.08),
|
|
983
|
+
q: 4,
|
|
984
|
+
d: [0.018, 0.03],
|
|
985
|
+
vol: [vol * 0.85, vol * 1.1],
|
|
986
|
+
delay
|
|
987
|
+
}),
|
|
988
|
+
sceneTone({
|
|
989
|
+
f: vary(f * 0.8, 0.06),
|
|
990
|
+
f2: Math.round(f * 0.62),
|
|
991
|
+
d: [0.015, 0.025],
|
|
992
|
+
vol: vol * 0.18,
|
|
993
|
+
delay
|
|
994
|
+
})
|
|
995
|
+
];
|
|
996
|
+
var meet = (body, panel, vol, latch) => [
|
|
997
|
+
sceneTone({
|
|
998
|
+
f: vary(body),
|
|
999
|
+
f2: Math.round(body * 0.5),
|
|
1000
|
+
d: [0.12, 0.16],
|
|
1001
|
+
vol: [vol * 0.9, vol * 1.1]
|
|
1002
|
+
}),
|
|
1003
|
+
sceneNoise({
|
|
1004
|
+
type: "bandpass",
|
|
1005
|
+
f: vary(panel, 0.06),
|
|
1006
|
+
q: 1.2,
|
|
1007
|
+
d: [0.08, 0.12],
|
|
1008
|
+
vol: [vol * 0.9, vol * 1.1],
|
|
1009
|
+
wet: 0.25
|
|
1010
|
+
}),
|
|
1011
|
+
...click(latch, vol * 0.45, [0.012, 0.028])
|
|
1012
|
+
];
|
|
1013
|
+
var LEAF_FOLEY = [
|
|
1014
|
+
// a wooden house door or wardrobe door: latch, a short creak, the leaf on the frame (the hard slam adds the frame rattling)
|
|
1015
|
+
foley("door_wood_open", click(2400, 0.4), "the latch of a wooden door giving"),
|
|
1016
|
+
foley(
|
|
1017
|
+
"door_creak",
|
|
1018
|
+
[
|
|
1019
|
+
sceneTone({ f: [190, 240], f2: 310, d: [0.4, 0.55], vol: [0.04, 0.06] }),
|
|
1020
|
+
sceneNoise({
|
|
1021
|
+
type: "bandpass",
|
|
1022
|
+
f: [480, 560],
|
|
1023
|
+
q: 6,
|
|
1024
|
+
a: 0.05,
|
|
1025
|
+
d: [0.35, 0.5],
|
|
1026
|
+
vol: [0.1, 0.14]
|
|
1027
|
+
})
|
|
1028
|
+
],
|
|
1029
|
+
"a wooden hinge turning"
|
|
1030
|
+
),
|
|
1031
|
+
foley("door_wood_close", meet(120, 600, 0.55, 2400), "a wooden leaf meeting its frame"),
|
|
1032
|
+
foley(
|
|
1033
|
+
"door_wood_slam",
|
|
1034
|
+
[
|
|
1035
|
+
...meet(110, 560, 0.85, 2300),
|
|
1036
|
+
...sceneMany(
|
|
1037
|
+
3,
|
|
1038
|
+
() => sceneNoise({
|
|
1039
|
+
type: "bandpass",
|
|
1040
|
+
f: [900, 1500],
|
|
1041
|
+
q: 3,
|
|
1042
|
+
d: 0.03,
|
|
1043
|
+
vol: [0.08, 0.14],
|
|
1044
|
+
delay: [0.05, 0.18]
|
|
1045
|
+
})
|
|
1046
|
+
)
|
|
1047
|
+
],
|
|
1048
|
+
"a wooden door slammed: the frame and the hinges rattle after the hit"
|
|
1049
|
+
),
|
|
1050
|
+
// a metal door or gate: a hollow panel that rings a little
|
|
1051
|
+
foley("door_metal_open_close", [...meet(160, 900, 0.55, 2e3), sceneTone({ f: vary(1250), f2: 1150, d: [0.1, 0.16], vol: 0.06, wet: 0.3 })], "a metal door or gate meeting its frame"),
|
|
1052
|
+
foley(
|
|
1053
|
+
"door_creak_metal",
|
|
1054
|
+
[
|
|
1055
|
+
sceneTone({ f: [620, 760], f2: 900, d: [0.3, 0.4], vol: [0.03, 0.045] }),
|
|
1056
|
+
sceneNoise({
|
|
1057
|
+
type: "bandpass",
|
|
1058
|
+
f: [1300, 1500],
|
|
1059
|
+
q: 8,
|
|
1060
|
+
a: 0.04,
|
|
1061
|
+
d: [0.25, 0.35],
|
|
1062
|
+
vol: [0.07, 0.09]
|
|
1063
|
+
})
|
|
1064
|
+
],
|
|
1065
|
+
"a metal hinge turning"
|
|
1066
|
+
),
|
|
1067
|
+
// the handle of a locked door shaken: the latch knocking in its keeper, five to seven times in half a second
|
|
1068
|
+
foley(
|
|
1069
|
+
"door_locked_rattle",
|
|
1070
|
+
[
|
|
1071
|
+
...sceneMany(
|
|
1072
|
+
6,
|
|
1073
|
+
() => sceneNoise({
|
|
1074
|
+
type: "bandpass",
|
|
1075
|
+
f: [1600, 2600],
|
|
1076
|
+
q: 3,
|
|
1077
|
+
d: [0.025, 0.04],
|
|
1078
|
+
vol: [0.22, 0.34],
|
|
1079
|
+
delay: [0, 0.45]
|
|
1080
|
+
})
|
|
1081
|
+
),
|
|
1082
|
+
...sceneMany(
|
|
1083
|
+
3,
|
|
1084
|
+
() => sceneTone({
|
|
1085
|
+
f: [170, 210],
|
|
1086
|
+
f2: 120,
|
|
1087
|
+
d: 0.05,
|
|
1088
|
+
vol: [0.12, 0.18],
|
|
1089
|
+
delay: [0.02, 0.4]
|
|
1090
|
+
})
|
|
1091
|
+
)
|
|
1092
|
+
],
|
|
1093
|
+
"the handle of a locked door shaken: latch knocks and the leaf thumping in its frame"
|
|
1094
|
+
),
|
|
1095
|
+
// a fridge: the rubber seal lets go with a soft suck, the bottles in the door clink; closing it is a soft thump and the seal pulling shut
|
|
1096
|
+
foley(
|
|
1097
|
+
"fridge_open",
|
|
1098
|
+
[
|
|
1099
|
+
sceneNoise({
|
|
1100
|
+
type: "lowpass",
|
|
1101
|
+
f: [320, 380],
|
|
1102
|
+
a: 0.03,
|
|
1103
|
+
d: [0.14, 0.2],
|
|
1104
|
+
vol: [0.32, 0.4]
|
|
1105
|
+
}),
|
|
1106
|
+
sceneNoise({
|
|
1107
|
+
type: "bandpass",
|
|
1108
|
+
f: [800, 950],
|
|
1109
|
+
f2: 1400,
|
|
1110
|
+
q: 2,
|
|
1111
|
+
a: 0.02,
|
|
1112
|
+
d: 0.12,
|
|
1113
|
+
vol: [0.08, 0.12]
|
|
1114
|
+
}),
|
|
1115
|
+
...sceneMany(
|
|
1116
|
+
2,
|
|
1117
|
+
() => sceneTone({
|
|
1118
|
+
f: [2600, 4200],
|
|
1119
|
+
d: [0.04, 0.08],
|
|
1120
|
+
vol: [0.015, 0.03],
|
|
1121
|
+
delay: [0.08, 0.22]
|
|
1122
|
+
})
|
|
1123
|
+
)
|
|
1124
|
+
],
|
|
1125
|
+
"a fridge door: the seal letting go and the bottles in the door"
|
|
1126
|
+
),
|
|
1127
|
+
foley(
|
|
1128
|
+
"fridge_close",
|
|
1129
|
+
[
|
|
1130
|
+
sceneTone({ f: vary(85), f2: 45, d: [0.1, 0.13], vol: [0.38, 0.46] }),
|
|
1131
|
+
sceneNoise({
|
|
1132
|
+
type: "lowpass",
|
|
1133
|
+
f: [520, 620],
|
|
1134
|
+
d: [0.08, 0.12],
|
|
1135
|
+
vol: [0.3, 0.36]
|
|
1136
|
+
}),
|
|
1137
|
+
sceneNoise({
|
|
1138
|
+
type: "lowpass",
|
|
1139
|
+
f: [260, 320],
|
|
1140
|
+
a: 0.02,
|
|
1141
|
+
d: 0.1,
|
|
1142
|
+
vol: [0.12, 0.18],
|
|
1143
|
+
delay: [0.04, 0.07]
|
|
1144
|
+
}),
|
|
1145
|
+
...sceneMany(
|
|
1146
|
+
2,
|
|
1147
|
+
() => sceneTone({
|
|
1148
|
+
f: [2600, 4200],
|
|
1149
|
+
d: [0.04, 0.07],
|
|
1150
|
+
vol: [0.015, 0.03],
|
|
1151
|
+
delay: [0.03, 0.12]
|
|
1152
|
+
})
|
|
1153
|
+
)
|
|
1154
|
+
],
|
|
1155
|
+
"a fridge door shut: a soft thump, the seal pulling and the bottles"
|
|
1156
|
+
),
|
|
1157
|
+
// a microwave: the spring catch of the door, plastic on plastic
|
|
1158
|
+
foley(
|
|
1159
|
+
"microwave_open",
|
|
1160
|
+
[
|
|
1161
|
+
...click(1800, 0.34),
|
|
1162
|
+
sceneTone({
|
|
1163
|
+
f: [3e3, 3400],
|
|
1164
|
+
f2: 2800,
|
|
1165
|
+
d: 0.05,
|
|
1166
|
+
vol: 0.025,
|
|
1167
|
+
delay: [0.01, 0.02]
|
|
1168
|
+
})
|
|
1169
|
+
],
|
|
1170
|
+
"the spring catch of a microwave door"
|
|
1171
|
+
),
|
|
1172
|
+
foley(
|
|
1173
|
+
"microwave_close",
|
|
1174
|
+
[
|
|
1175
|
+
sceneNoise({
|
|
1176
|
+
type: "bandpass",
|
|
1177
|
+
f: [1200, 1450],
|
|
1178
|
+
q: 2.5,
|
|
1179
|
+
d: [0.04, 0.06],
|
|
1180
|
+
vol: [0.36, 0.44]
|
|
1181
|
+
}),
|
|
1182
|
+
sceneTone({ f: vary(180), f2: 120, d: 0.05, vol: [0.16, 0.22] }),
|
|
1183
|
+
...click(2200, 0.2, [8e-3, 0.016])
|
|
1184
|
+
],
|
|
1185
|
+
"a microwave door clacking shut"
|
|
1186
|
+
),
|
|
1187
|
+
foley("microwave_beep", [sceneTone({ wave: "square", f: 2e3, d: 0.12, vol: 0.05 })], "the beep of a microwave"),
|
|
1188
|
+
// drawers and sliding leaves: the runners, then the stop
|
|
1189
|
+
foley(
|
|
1190
|
+
"drawer_open",
|
|
1191
|
+
[
|
|
1192
|
+
sceneNoise({
|
|
1193
|
+
type: "bandpass",
|
|
1194
|
+
f: [620, 780],
|
|
1195
|
+
q: 2,
|
|
1196
|
+
a: 0.04,
|
|
1197
|
+
d: [0.28, 0.36],
|
|
1198
|
+
vol: [0.18, 0.24]
|
|
1199
|
+
}),
|
|
1200
|
+
sceneNoise({ type: "bandpass", f: [2e3, 2400], q: 5, d: 0.28, vol: 0.04 }),
|
|
1201
|
+
...click(1400, 0.16, [0.28, 0.34])
|
|
1202
|
+
],
|
|
1203
|
+
"a drawer on its runners and its stop"
|
|
1204
|
+
),
|
|
1205
|
+
foley(
|
|
1206
|
+
"drawer_close",
|
|
1207
|
+
[
|
|
1208
|
+
sceneNoise({
|
|
1209
|
+
type: "bandpass",
|
|
1210
|
+
f: [620, 780],
|
|
1211
|
+
q: 2,
|
|
1212
|
+
a: 0.03,
|
|
1213
|
+
d: [0.2, 0.28],
|
|
1214
|
+
vol: [0.18, 0.24]
|
|
1215
|
+
}),
|
|
1216
|
+
sceneTone({
|
|
1217
|
+
f: vary(150),
|
|
1218
|
+
f2: 90,
|
|
1219
|
+
d: 0.08,
|
|
1220
|
+
vol: [0.22, 0.3],
|
|
1221
|
+
delay: [0.2, 0.26]
|
|
1222
|
+
})
|
|
1223
|
+
],
|
|
1224
|
+
"a drawer pushed home"
|
|
1225
|
+
)
|
|
1226
|
+
];
|
|
1227
|
+
var ITEM_FOLEY = [
|
|
1228
|
+
// the hand closing on the item: a touch of skin and cloth, then the item's own small sound
|
|
1229
|
+
foley(
|
|
1230
|
+
"item_pickup_metal",
|
|
1231
|
+
[
|
|
1232
|
+
sceneNoise({ type: "bandpass", f: [700, 900], q: 1, d: 0.06, vol: 0.18 }),
|
|
1233
|
+
sceneTone({
|
|
1234
|
+
f: [1900, 2600],
|
|
1235
|
+
f2: 1700,
|
|
1236
|
+
d: [0.05, 0.08],
|
|
1237
|
+
vol: [0.06, 0.09],
|
|
1238
|
+
delay: [0.01, 0.03]
|
|
1239
|
+
})
|
|
1240
|
+
],
|
|
1241
|
+
"picking up a metal thing"
|
|
1242
|
+
),
|
|
1243
|
+
foley(
|
|
1244
|
+
"item_pickup_plastic",
|
|
1245
|
+
[
|
|
1246
|
+
sceneNoise({ type: "bandpass", f: [700, 900], q: 1, d: 0.06, vol: 0.18 }),
|
|
1247
|
+
sceneNoise({
|
|
1248
|
+
type: "bandpass",
|
|
1249
|
+
f: [1500, 1900],
|
|
1250
|
+
q: 3,
|
|
1251
|
+
d: 0.03,
|
|
1252
|
+
vol: [0.15, 0.21],
|
|
1253
|
+
delay: [0.01, 0.03]
|
|
1254
|
+
})
|
|
1255
|
+
],
|
|
1256
|
+
"picking up a plastic thing"
|
|
1257
|
+
),
|
|
1258
|
+
foley(
|
|
1259
|
+
"item_pickup_glass",
|
|
1260
|
+
[
|
|
1261
|
+
sceneNoise({ type: "bandpass", f: [700, 900], q: 1, d: 0.06, vol: 0.15 }),
|
|
1262
|
+
sceneTone({
|
|
1263
|
+
f: [3200, 4200],
|
|
1264
|
+
d: [0.05, 0.08],
|
|
1265
|
+
vol: [0.038, 0.06],
|
|
1266
|
+
delay: [0.01, 0.03]
|
|
1267
|
+
})
|
|
1268
|
+
],
|
|
1269
|
+
"picking up a glass thing"
|
|
1270
|
+
),
|
|
1271
|
+
foley(
|
|
1272
|
+
"item_pickup_paper",
|
|
1273
|
+
[
|
|
1274
|
+
sceneNoise({
|
|
1275
|
+
type: "highpass",
|
|
1276
|
+
f: [2600, 3400],
|
|
1277
|
+
a: 0.01,
|
|
1278
|
+
d: [0.1, 0.14],
|
|
1279
|
+
vol: [0.12, 0.18]
|
|
1280
|
+
}),
|
|
1281
|
+
sceneNoise({ type: "bandpass", f: [800, 1e3], q: 1, d: 0.05, vol: 0.12 })
|
|
1282
|
+
],
|
|
1283
|
+
"picking up paper or cardboard"
|
|
1284
|
+
),
|
|
1285
|
+
foley(
|
|
1286
|
+
"item_pickup_fabric",
|
|
1287
|
+
[
|
|
1288
|
+
sceneNoise({
|
|
1289
|
+
type: "bandpass",
|
|
1290
|
+
f: [900, 1300],
|
|
1291
|
+
q: 0.8,
|
|
1292
|
+
a: 0.02,
|
|
1293
|
+
d: [0.12, 0.16],
|
|
1294
|
+
vol: [0.15, 0.21]
|
|
1295
|
+
})
|
|
1296
|
+
],
|
|
1297
|
+
"picking up cloth"
|
|
1298
|
+
),
|
|
1299
|
+
foley(
|
|
1300
|
+
"item_pickup_wood",
|
|
1301
|
+
[
|
|
1302
|
+
sceneNoise({ type: "bandpass", f: [700, 900], q: 1, d: 0.06, vol: 0.18 }),
|
|
1303
|
+
sceneNoise({
|
|
1304
|
+
type: "bandpass",
|
|
1305
|
+
f: [900, 1100],
|
|
1306
|
+
q: 2,
|
|
1307
|
+
d: 0.04,
|
|
1308
|
+
vol: [0.15, 0.21],
|
|
1309
|
+
delay: [0.01, 0.03]
|
|
1310
|
+
})
|
|
1311
|
+
],
|
|
1312
|
+
"picking up a wooden thing"
|
|
1313
|
+
),
|
|
1314
|
+
foley(
|
|
1315
|
+
"item_pickup_food",
|
|
1316
|
+
[
|
|
1317
|
+
sceneNoise({ type: "bandpass", f: [700, 900], q: 1, d: 0.06, vol: 0.18 }),
|
|
1318
|
+
sceneNoise({
|
|
1319
|
+
type: "lowpass",
|
|
1320
|
+
f: [500, 650],
|
|
1321
|
+
d: 0.05,
|
|
1322
|
+
vol: 0.12,
|
|
1323
|
+
delay: [0.01, 0.03]
|
|
1324
|
+
})
|
|
1325
|
+
],
|
|
1326
|
+
"picking up food"
|
|
1327
|
+
),
|
|
1328
|
+
foley(
|
|
1329
|
+
"item_throw",
|
|
1330
|
+
[
|
|
1331
|
+
sceneNoise({
|
|
1332
|
+
type: "bandpass",
|
|
1333
|
+
f: [450, 650],
|
|
1334
|
+
f2: 1400,
|
|
1335
|
+
q: 1.5,
|
|
1336
|
+
a: 0.05,
|
|
1337
|
+
d: 0.18,
|
|
1338
|
+
vol: [0.1, 0.14]
|
|
1339
|
+
})
|
|
1340
|
+
],
|
|
1341
|
+
"the arm throwing something: air"
|
|
1342
|
+
),
|
|
1343
|
+
// a can: the tab cracks, the gas hisses out; drinking is gulps; crushing it crumples the sheet
|
|
1344
|
+
foley(
|
|
1345
|
+
"can_open",
|
|
1346
|
+
[
|
|
1347
|
+
...click(3200, 0.36),
|
|
1348
|
+
sceneNoise({
|
|
1349
|
+
type: "highpass",
|
|
1350
|
+
f: [3600, 4400],
|
|
1351
|
+
a: 5e-3,
|
|
1352
|
+
d: [0.22, 0.3],
|
|
1353
|
+
vol: [0.16, 0.22],
|
|
1354
|
+
delay: [0.012, 0.02]
|
|
1355
|
+
}),
|
|
1356
|
+
...sceneMany(5, () => sceneTone({ f: [4e3, 7e3], d: 0.02, vol: 0.01, delay: [0.05, 0.4] }))
|
|
1357
|
+
],
|
|
1358
|
+
"the tab of a can and the gas hissing out"
|
|
1359
|
+
),
|
|
1360
|
+
foley(
|
|
1361
|
+
"can_crush",
|
|
1362
|
+
[
|
|
1363
|
+
sceneNoise({
|
|
1364
|
+
type: "bandpass",
|
|
1365
|
+
f: [1600, 2200],
|
|
1366
|
+
q: 1.2,
|
|
1367
|
+
d: [0.18, 0.25],
|
|
1368
|
+
vol: [0.3, 0.38]
|
|
1369
|
+
}),
|
|
1370
|
+
...sceneMany(
|
|
1371
|
+
6,
|
|
1372
|
+
() => sceneTone({
|
|
1373
|
+
f: [1200, 3400],
|
|
1374
|
+
f2: 900,
|
|
1375
|
+
d: 0.03,
|
|
1376
|
+
vol: [0.03, 0.06],
|
|
1377
|
+
delay: [0, 0.2]
|
|
1378
|
+
})
|
|
1379
|
+
)
|
|
1380
|
+
],
|
|
1381
|
+
"a can crushed in the hand"
|
|
1382
|
+
),
|
|
1383
|
+
foley(
|
|
1384
|
+
"can_puncture_spray",
|
|
1385
|
+
[
|
|
1386
|
+
sceneNoise({
|
|
1387
|
+
type: "highpass",
|
|
1388
|
+
f: [2400, 3e3],
|
|
1389
|
+
a: 5e-3,
|
|
1390
|
+
d: [0.5, 0.7],
|
|
1391
|
+
vol: [0.2, 0.26]
|
|
1392
|
+
}),
|
|
1393
|
+
sceneNoise({ type: "bandpass", f: [600, 800], q: 2, d: 0.4, vol: 0.06 })
|
|
1394
|
+
],
|
|
1395
|
+
"a can holed: the jet hissing out"
|
|
1396
|
+
),
|
|
1397
|
+
foley(
|
|
1398
|
+
"bottle_open",
|
|
1399
|
+
[
|
|
1400
|
+
...sceneMany(
|
|
1401
|
+
5,
|
|
1402
|
+
() => sceneNoise({
|
|
1403
|
+
type: "bandpass",
|
|
1404
|
+
f: [2200, 3e3],
|
|
1405
|
+
q: 4,
|
|
1406
|
+
d: 8e-3,
|
|
1407
|
+
vol: [0.1, 0.16],
|
|
1408
|
+
delay: [0, 0.18]
|
|
1409
|
+
})
|
|
1410
|
+
),
|
|
1411
|
+
sceneNoise({
|
|
1412
|
+
type: "highpass",
|
|
1413
|
+
f: 3800,
|
|
1414
|
+
a: 5e-3,
|
|
1415
|
+
d: 0.12,
|
|
1416
|
+
vol: [0.06, 0.1],
|
|
1417
|
+
delay: [0.18, 0.22]
|
|
1418
|
+
})
|
|
1419
|
+
],
|
|
1420
|
+
"the screw cap of a bottle turning off"
|
|
1421
|
+
),
|
|
1422
|
+
foley(
|
|
1423
|
+
"drink_gulp",
|
|
1424
|
+
[
|
|
1425
|
+
sceneNoise({
|
|
1426
|
+
type: "lowpass",
|
|
1427
|
+
f: [280, 360],
|
|
1428
|
+
a: 0.02,
|
|
1429
|
+
d: [0.1, 0.14],
|
|
1430
|
+
vol: [0.24, 0.3]
|
|
1431
|
+
}),
|
|
1432
|
+
sceneTone({ f: [140, 170], f2: 85, d: [0.08, 0.11], vol: [0.12, 0.16] })
|
|
1433
|
+
],
|
|
1434
|
+
"a gulp"
|
|
1435
|
+
),
|
|
1436
|
+
foley(
|
|
1437
|
+
"eat_crunch",
|
|
1438
|
+
[
|
|
1439
|
+
...sceneMany(
|
|
1440
|
+
4,
|
|
1441
|
+
() => sceneNoise({
|
|
1442
|
+
type: "bandpass",
|
|
1443
|
+
f: [1800, 3200],
|
|
1444
|
+
q: 1.5,
|
|
1445
|
+
d: [0.02, 0.04],
|
|
1446
|
+
vol: [0.12, 0.2],
|
|
1447
|
+
delay: [0, 0.12]
|
|
1448
|
+
})
|
|
1449
|
+
)
|
|
1450
|
+
],
|
|
1451
|
+
"a bite of something crunchy"
|
|
1452
|
+
),
|
|
1453
|
+
foley(
|
|
1454
|
+
"eat_chew",
|
|
1455
|
+
[
|
|
1456
|
+
sceneNoise({
|
|
1457
|
+
type: "lowpass",
|
|
1458
|
+
f: [450, 600],
|
|
1459
|
+
a: 0.03,
|
|
1460
|
+
d: [0.1, 0.14],
|
|
1461
|
+
vol: [0.12, 0.16]
|
|
1462
|
+
}),
|
|
1463
|
+
sceneNoise({
|
|
1464
|
+
type: "bandpass",
|
|
1465
|
+
f: [1100, 1400],
|
|
1466
|
+
q: 2,
|
|
1467
|
+
d: 0.04,
|
|
1468
|
+
vol: 0.04,
|
|
1469
|
+
delay: [0.03, 0.06]
|
|
1470
|
+
})
|
|
1471
|
+
],
|
|
1472
|
+
"chewing"
|
|
1473
|
+
),
|
|
1474
|
+
foley(
|
|
1475
|
+
"bandage_wrap",
|
|
1476
|
+
[
|
|
1477
|
+
sceneNoise({
|
|
1478
|
+
type: "bandpass",
|
|
1479
|
+
f: [1400, 1800],
|
|
1480
|
+
f2: 2400,
|
|
1481
|
+
q: 1,
|
|
1482
|
+
a: 0.04,
|
|
1483
|
+
d: [0.3, 0.4],
|
|
1484
|
+
vol: [0.12, 0.16]
|
|
1485
|
+
})
|
|
1486
|
+
],
|
|
1487
|
+
"a bandage unrolled round a limb"
|
|
1488
|
+
),
|
|
1489
|
+
foley(
|
|
1490
|
+
"pills_shake",
|
|
1491
|
+
[
|
|
1492
|
+
...sceneMany(
|
|
1493
|
+
8,
|
|
1494
|
+
() => sceneTone({
|
|
1495
|
+
f: [2400, 3600],
|
|
1496
|
+
d: 0.015,
|
|
1497
|
+
vol: [0.03, 0.05],
|
|
1498
|
+
delay: [0, 0.25]
|
|
1499
|
+
})
|
|
1500
|
+
),
|
|
1501
|
+
sceneNoise({ type: "bandpass", f: [1500, 1900], q: 2, d: 0.25, vol: 0.05 })
|
|
1502
|
+
],
|
|
1503
|
+
"pills shaken in their bottle"
|
|
1504
|
+
),
|
|
1505
|
+
foley(
|
|
1506
|
+
"medkit_use",
|
|
1507
|
+
[
|
|
1508
|
+
...click(1700, 0.24),
|
|
1509
|
+
sceneNoise({
|
|
1510
|
+
type: "bandpass",
|
|
1511
|
+
f: [1e3, 1400],
|
|
1512
|
+
q: 1,
|
|
1513
|
+
a: 0.03,
|
|
1514
|
+
d: [0.25, 0.32],
|
|
1515
|
+
vol: [0.08, 0.12],
|
|
1516
|
+
delay: [0.05, 0.08]
|
|
1517
|
+
})
|
|
1518
|
+
],
|
|
1519
|
+
"a first aid kit opened and rummaged"
|
|
1520
|
+
),
|
|
1521
|
+
foley("flashlight_click", click(2600, 0.3), "the switch of a flashlight")
|
|
1522
|
+
];
|
|
1523
|
+
var FOLEY_BANK = {
|
|
1524
|
+
id: "foley",
|
|
1525
|
+
sounds: [...LEAF_FOLEY, ...ITEM_FOLEY]
|
|
1526
|
+
};
|
|
963
1527
|
var TAKES = [
|
|
964
1528
|
{ f: 1, t: 1, v: 1 },
|
|
965
1529
|
{ f: 1.08, t: 0.9, v: 0.92 },
|