summaryrefslogtreecommitdiff
path: root/scripts/gen_assets.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen_assets.sh')
-rwxr-xr-xscripts/gen_assets.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/gen_assets.sh b/scripts/gen_assets.sh
new file mode 100755
index 0000000..e6b7804
--- /dev/null
+++ b/scripts/gen_assets.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# generate some assets
+
+# Ensure tools are built
+cmake --build build --target spectool asset_packer
+
+# Analyze drum sounds
+./build/spectool analyze ./assets/wav/kick/Glum\ Kick.wav ./assets/final/kick1.spec
+./build/spectool analyze ./assets/wav/snare/Snare\ \(24\).wav ./assets/final/snare1.spec
+./build/spectool analyze ./assets/wav/hh/hammock\ hh.wav ./assets/final/hihat1.spec
+
+# Pack assets into source tree (as requested by Task 9)
+./build/asset_packer ./assets/final/demo_assets.txt ./src/assets.h ./src/assets_data.cc \ No newline at end of file