Skip to content

Open source CapCut alternative.

TypeScript

feat(site): camera focus lock ships with three takes

David Le0aaf30246713
diff --git a/site/scripts/generate-stock-sfx.ts b/site/scripts/generate-stock-sfx.ts
index ffe8d353..8d20760d 100644
--- a/site/scripts/generate-stock-sfx.ts
+++ b/site/scripts/generate-stock-sfx.ts
@@ -106,7 +106,7 @@ const CATALOG: CatalogItem[] = [
["zoom-in-whoosh", 0.7, "A fast punch-in zoom whoosh, a quick rising air swipe that stops sharp.", ["camera", "zoom in", "punch in", "whoosh", "fast"]],
["zoom-out-whoosh", 0.7, "A fast zoom-out whoosh, a quick falling air swipe that stops sharp.", ["camera", "zoom out", "whoosh", "fast", "pull back"]],
], core),
- // One focus sound, one take: the lock itself, the way a DSLR confirms it.
+ // One focus sound: the lock itself, the way a DSLR confirms it.
...sfx("Camera", [
["focus-lock", 0.6, "A single DSLR autofocus lock: one soft, precise lens click with a faint motor tick, dry, close-miked, no beep.", ["camera", "focus", "lock", "lens", "dslr"]],
]),
diff --git a/site/src/cut/lib/stockSfxManifest.ts b/site/src/cut/lib/stockSfxManifest.ts
index 3d56261c..81a72c6a 100644
--- a/site/src/cut/lib/stockSfxManifest.ts
+++ b/site/src/cut/lib/stockSfxManifest.ts
@@ -51,6 +51,8 @@ export const STOCK_SFX: StockSfx[] = [
{"id":"camera-zoom-out-whoosh-2","category":"Camera","prompt":"A fast zoom-out whoosh, a quick falling air swipe that stops sharp.","tags":["camera","zoom out","whoosh","fast","pull back"],"file":"https://media.donkeycut.com/stock/sfx/camera-zoom-out-whoosh-2.mp3","duration":1,"peaks":[0.56,0.55,0.86,1,0.88,0.56,0.43,0.29,0.16,0.13,0.08,0.04,0.05,0.03,0.02,0.02,0.01,0.01,0.01,0.01,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]},
{"id":"camera-zoom-out-whoosh-3","category":"Camera","prompt":"A fast zoom-out whoosh, a quick falling air swipe that stops sharp.","tags":["camera","zoom out","whoosh","fast","pull back"],"file":"https://media.donkeycut.com/stock/sfx/camera-zoom-out-whoosh-3.mp3","duration":1,"peaks":[0.73,0.83,1,0.93,0.82,0.66,0.6,0.48,0.33,0.3,0.25,0.2,0.17,0.14,0.13,0.09,0.07,0.06,0.03,0.02,0.01,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.01]},
{"id":"camera-focus-lock","category":"Camera","prompt":"A single DSLR autofocus lock: one soft, precise lens click with a faint motor tick, dry, close-miked, no beep.","tags":["camera","focus","lock","lens","dslr"],"file":"https://media.donkeycut.com/stock/sfx/camera-focus-lock.mp3","duration":0.88,"peaks":[0.13,0.97,0.21,0.02,0,0,0,0,0,0,0,0.03,0.04,0.03,0.04,0.13,1,0.35,0.01,0,0,0,0,0.1,0.01,0.01,0,0.01,0.02,0.05,0.02,0.06,0.07,0.07,0.56,0.07,0.01,0.01,0,0]},
+ {"id":"camera-focus-lock-2","category":"Camera","prompt":"A single DSLR autofocus lock: one soft, precise lens click with a faint motor tick, dry, close-miked, no beep.","tags":["camera","focus","lock","lens","dslr"],"file":"https://media.donkeycut.com/stock/sfx/camera-focus-lock-2.mp3","duration":0.44,"peaks":[0.02,0.04,0.5,0.06,0.03,0.02,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.07,0.07,0.07,0.27,0.19,0.2,1,0.11,0.07,0.03,0.01,0.01,0,0.01,0,0,0,0,0,0]},
+ {"id":"camera-focus-lock-3","category":"Camera","prompt":"A single DSLR autofocus lock: one soft, precise lens click with a faint motor tick, dry, close-miked, no beep.","tags":["camera","focus","lock","lens","dslr"],"file":"https://media.donkeycut.com/stock/sfx/camera-focus-lock-3.mp3","duration":0.69,"peaks":[0.01,0.04,0.04,0.87,1,0.06,0,0,0,0,0,0,0,0,0,0,0,0.04,0.01,0.01,0,0,0,0,0,0.02,0,0.02,0.01,0,0.03,0.31,0.22,0.02,0,0,0,0,0,0]},
{"id":"flash-pop","category":"Flash","prompt":"A camera flash firing: a quick rising electric charge whine then a bright pop.","tags":["flash","camera","pop","charge","quick cut"],"file":"https://media.donkeycut.com/stock/sfx/flash-pop.mp3","duration":1,"peaks":[1,0.67,0.61,0.41,0.34,0.35,0.46,0.44,0.44,0.34,0.26,0.19,0.15,0.15,0.15,0.13,0.12,0.08,0.1,0.07,0.06,0.06,0.07,0.06,0.06,0.07,0.07,0.12,0.1,0.09,0.11,0.1,0.11,0.1,0.01,0,0,0,0,0.01]},
{"id":"flash-pop-2","category":"Flash","prompt":"A camera flash firing: a quick rising electric charge whine then a bright pop.","tags":["flash","camera","pop","charge","quick cut"],"file":"https://media.donkeycut.com/stock/sfx/flash-pop-2.mp3","duration":1,"peaks":[0.89,1,0.96,0.8,0.79,0.61,0.5,0.45,0.45,0.35,0.43,0.42,0.46,0.42,0.4,0.33,0.33,0.46,0.47,0.38,0.45,0.56,0.5,0.49,0.51,0.63,0.55,0.7,0.57,0.67,0.72,0.83,0.68,0.6,0.32,0,0,0,0,0]},
{"id":"flash-pop-3","category":"Flash","prompt":"A camera flash firing: a quick rising electric charge whine then a bright pop.","tags":["flash","camera","pop","charge","quick cut"],"file":"https://media.donkeycut.com/stock/sfx/flash-pop-3.mp3","duration":1,"peaks":[0.52,0.33,0.34,0.24,0.36,0.4,0.32,0.25,0.27,0.29,0.26,0.3,0.23,0.26,0.18,0.15,0.16,0.12,0.14,0.14,0.12,0.1,0.11,0.14,0.11,0.09,0.14,0.17,0.23,0.28,0.25,0.36,0.63,1,0.28,0.07,0.04,0.02,0,0]},