A8: Synthesized sound effects and an adaptive score

Every sound is made by scripts in tools/audio/ and committed as a WAV in
assets/audio/ with a manifest of hashes and levels:

- dsp.gd: seeded noise, wavetable oscillators, filters, envelopes and
  struck modes. recipes.gd: 50 effects (footsteps on five surfaces,
  a report per weapon, impacts, carpentry building and breaking, the
  tide's bell, foghorn, surge and lighthouse, player, ambience, menus).
- score.gd: an original eight-bar tune and chords in D Dorian, 6/8,
  rendered as four looping layers (drone, frame drum, concertina,
  fiddle).
- loudness.gd and check.gd: per-category loudness targets, a -1 dBFS
  peak ceiling and the mix order (the tide loudest). make audio and
  make audio-check.

In the client, SoundDirector turns FX records, footsteps, building,
the tide and the player's own hurts into sounds, placed on 3D voices
at the event so gunfire and footsteps come from their direction.
MusicDirector fades the score's layers with the tide on an
AudioStreamSynchronized, full in menus. MenuSounds knocks for buttons.

Closes #48

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 14:28:34 -05:00
co-authored by Claude Opus 5.5
parent b3c59d66ac
commit 2545337204
149 changed files with 4143 additions and 8 deletions
+542
View File
@@ -0,0 +1,542 @@
{
"amb_rain": {
"category": "ambience",
"loops": true,
"seconds": 6.0,
"sha256": "91e3a48117bc69d0f092a9838bb036aa419079aa0ab9ce1887b9584f3d1a55f1",
"peak_db": -14.46,
"loudness_db": -27.0,
"target_db": -27.0,
"generator": "tools/audio/recipes.gd"
},
"amb_surf": {
"category": "ambience",
"loops": true,
"seconds": 8.0,
"sha256": "c3388cc9009de894acd9c65783eae02ddd7db14d4f4489f75ef350b19f15624c",
"peak_db": -13.64,
"loudness_db": -27.0,
"target_db": -27.0,
"generator": "tools/audio/recipes.gd"
},
"amb_wind": {
"category": "ambience",
"loops": true,
"seconds": 7.0,
"sha256": "1336f72dc43e97cc1698301d6cb6c13637907a09676a174506477d45dd3daf98",
"peak_db": -13.27,
"loudness_db": -27.0,
"target_db": -27.0,
"generator": "tools/audio/recipes.gd"
},
"bell": {
"category": "tide",
"loops": false,
"seconds": 3.8,
"sha256": "4ab94565e4d460337855d19f3707ac6d7fb8d0c9e762f123ced42cb3223bb193",
"peak_db": -2.32,
"loudness_db": -12.0,
"target_db": -12.0,
"generator": "tools/audio/recipes.gd"
},
"break_driftwood": {
"category": "build",
"loops": false,
"seconds": 1.0,
"sha256": "1e29c274fd5e50c49e1ad9e4cd8ee947816032d692e5ef87db5e4340ce0d7316",
"peak_db": -4.93,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"break_salvage_iron": {
"category": "build",
"loops": false,
"seconds": 1.4,
"sha256": "f9936e7c8532f077b9a556ff875b4d4407418665d66cf74b356a9a0c6765e1c8",
"peak_db": -3.61,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"break_stone": {
"category": "build",
"loops": false,
"seconds": 1.2,
"sha256": "c1da53846d65df3a647bfa651599dbfd7244767a7d9c7de8fe9111eb25606957",
"peak_db": -4.4,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"build_driftwood": {
"category": "build",
"loops": false,
"seconds": 0.62,
"sha256": "f67ee15c0943428c9e093c62ab0a241de51e78ae9c5b913768d678e6396688c8",
"peak_db": -1.98,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"build_salvage_iron": {
"category": "build",
"loops": false,
"seconds": 0.63,
"sha256": "a68d70fab460578940db55fafbfad8d7d28778bed51c483a70b15124e0af6dc7",
"peak_db": -1.08,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"build_stone": {
"category": "build",
"loops": false,
"seconds": 0.7,
"sha256": "b8836a9e3c188c06a4d8ec447844d02b376355d2045231d686b7cadb3a26efc6",
"peak_db": -2.12,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"chest_open": {
"category": "player",
"loops": false,
"seconds": 1.04,
"sha256": "ce3b8b4a09195bce463bc9ff7cb4bfc2f95b71e4b085f83cdff174cbc67e7c7e",
"peak_db": -2.96,
"loudness_db": -22.0,
"target_db": -22.0,
"generator": "tools/audio/recipes.gd"
},
"chop": {
"category": "impact",
"loops": false,
"seconds": 0.3,
"sha256": "271d6962cee2524cb79cd00204dc156dfd7a6f17beab690a342fd3fe1eb5fb7e",
"peak_db": -1.05,
"loudness_db": -19.62,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"eliminated": {
"category": "player",
"loops": false,
"seconds": 2.0,
"sha256": "1f264784e9c1677a70a87d4a6742c0d11a025c3fb0f5cd6f2ba15f2a4a1a53bf",
"peak_db": -11.5,
"loudness_db": -22.0,
"target_db": -22.0,
"generator": "tools/audio/recipes.gd"
},
"foghorn": {
"category": "tide",
"loops": false,
"seconds": 3.6,
"sha256": "5126a894d367689c0deaf7513951464cf893a851be0297e147ca2f2ce42569f0",
"peak_db": -5.36,
"loudness_db": -12.0,
"target_db": -12.0,
"generator": "tools/audio/recipes.gd"
},
"hit_ground": {
"category": "impact",
"loops": false,
"seconds": 0.3,
"sha256": "10856b8ff027df4ee4e8a148275b9bea3c9320bf41292d789a1393c8e15286e6",
"peak_db": -1.05,
"loudness_db": -19.4,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"hit_iron": {
"category": "impact",
"loops": false,
"seconds": 0.8,
"sha256": "6c70d9095869da3364250802a167cabf9094d21fdaaef719302084f34ee580f6",
"peak_db": -1.26,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"hit_player": {
"category": "impact",
"loops": false,
"seconds": 0.25,
"sha256": "288cf84795ac4ba543a2bb9407795401e614f66be76cd0f6ea28f567f92bbac9",
"peak_db": -2.15,
"loudness_db": -19.0,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"hit_stone": {
"category": "impact",
"loops": false,
"seconds": 0.3,
"sha256": "886fe3795ce2fbb0189abb4102df4d759f815263f52fc3d7f987b871c22b9379",
"peak_db": -1.05,
"loudness_db": -20.17,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"hit_wood": {
"category": "impact",
"loops": false,
"seconds": 0.35,
"sha256": "23bafcedafbe8787fdae9d58087792680c24b9879b9076cf967209287e3948fd",
"peak_db": -1.05,
"loudness_db": -19.36,
"target_db": -19.0,
"generator": "tools/audio/recipes.gd"
},
"hurt": {
"category": "player",
"loops": false,
"seconds": 0.35,
"sha256": "8e8f6ff74cb1e74fe7f4c7d3752991a3dd5d31c6b0c088ca0a5faec41afe5ee2",
"peak_db": -5.91,
"loudness_db": -22.0,
"target_db": -22.0,
"generator": "tools/audio/recipes.gd"
},
"keg_blast": {
"category": "weapon",
"loops": false,
"seconds": 2.6,
"sha256": "00d1455ec274c51216ce8cd21d24f04f3ed94670f2ce3ff7d09ad136ecf6e4ed",
"peak_db": -8.75,
"loudness_db": -15.0,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"land": {
"category": "footstep",
"loops": false,
"seconds": 0.4,
"sha256": "47d4d62693eabeaea6fc07be43791ab2341e6661372392f95cae170148a02ca3",
"peak_db": -7.83,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"lighthouse": {
"category": "tide",
"loops": false,
"seconds": 4.0,
"sha256": "98d7d56c5eff271ffa1a09c4c9277dfb31b33418cea9808d1602f2d23fbf8957",
"peak_db": -5.82,
"loudness_db": -12.0,
"target_db": -12.0,
"generator": "tools/audio/recipes.gd"
},
"music_concertina": {
"category": "music",
"loops": true,
"seconds": 13.333,
"sha256": "5564ab9f0f1ec2b5a1d9ba2242e93ce7250e5a1370437e74178871e186c4f208",
"peak_db": -16.31,
"loudness_db": -29.0,
"target_db": -29.0,
"generator": "tools/audio/score.gd"
},
"music_drone": {
"category": "music",
"loops": true,
"seconds": 13.333,
"sha256": "f631a5541a888f62d339b24dff54f072211994ffb20188867f4d3a782b932aa8",
"peak_db": -21.1,
"loudness_db": -29.0,
"target_db": -29.0,
"generator": "tools/audio/score.gd"
},
"music_drum": {
"category": "music",
"loops": true,
"seconds": 13.333,
"sha256": "2d0bd51e5eff39e6674bc8991c14660388830b6bd0cac534bb96a5cc528d656b",
"peak_db": -6.51,
"loudness_db": -28.0,
"target_db": -28.0,
"generator": "tools/audio/score.gd"
},
"music_fiddle": {
"category": "music",
"loops": true,
"seconds": 13.333,
"sha256": "4189c1d4d97098e6d7a5428c4b1b6a0e6edfb41129dfbaa2fd7be43a227971b0",
"peak_db": -19.19,
"loudness_db": -26.0,
"target_db": -26.0,
"generator": "tools/audio/score.gd"
},
"pickup": {
"category": "player",
"loops": false,
"seconds": 0.3,
"sha256": "ba4f7ce11340d1d1e8d224114ec48568b8f4fb12d6711d9a86ff48e177a9842f",
"peak_db": -8.12,
"loudness_db": -22.0,
"target_db": -22.0,
"generator": "tools/audio/recipes.gd"
},
"reload": {
"category": "player",
"loops": false,
"seconds": 0.42,
"sha256": "a13af1213a2fc2542c5b2c74bfa80022b46d7bd61e1036d9e87bfe52ccdd0318",
"peak_db": -1.59,
"loudness_db": -22.0,
"target_db": -22.0,
"generator": "tools/audio/recipes.gd"
},
"shot_dock_carbine": {
"category": "weapon",
"loops": false,
"seconds": 0.92,
"sha256": "f3ce6a703c342e5fc503e9a530851a4943d7e20691af8f5a4bbc1174dd1c5df9",
"peak_db": -1.59,
"loudness_db": -15.0,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"shot_fowling_piece": {
"category": "weapon",
"loops": false,
"seconds": 1.28,
"sha256": "5e7e35d65b92bac72efa7c7b2a70ecf818e65fa45b3410df9bb6bc3130640039",
"peak_db": -4.56,
"loudness_db": -15.0,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"shot_harpoon_gun": {
"category": "weapon",
"loops": false,
"seconds": 0.7,
"sha256": "cfcc4639c77a520803dadfa6dd071dea19257c034f23326e381a03901fc79aa1",
"peak_db": -1.05,
"loudness_db": -16.17,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"shot_line_thrower": {
"category": "weapon",
"loops": false,
"seconds": 0.7,
"sha256": "fa9f8e166c7b1929cd997163b987e355fadec7a6717f8d6ced686cd3ff388216",
"peak_db": -1.05,
"loudness_db": -16.3,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"shot_rivet_repeater": {
"category": "weapon",
"loops": false,
"seconds": 0.4,
"sha256": "f6a9547ee7767b013d46ece53345d58dfa078625b4ecac7dff4ce45793e1f07b",
"peak_db": -1.05,
"loudness_db": -16.21,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"shot_signal_revolver": {
"category": "weapon",
"loops": false,
"seconds": 0.5,
"sha256": "081ccf38cbc7b079967f552a760efc89c823e04e9955141579d2e8c845fb8cae",
"peak_db": -1.05,
"loudness_db": -15.34,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"shot_whalers_longgun": {
"category": "weapon",
"loops": false,
"seconds": 2.19,
"sha256": "3ba89892d3688a2e0966127ad5c5fd12b9eef8ea9bad094a1da9b475fac626f4",
"peak_db": -6.86,
"loudness_db": -15.0,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"splash": {
"category": "water",
"loops": false,
"seconds": 0.9,
"sha256": "1a21d14c506c92cf0f4b005c103c2863ff40732324c965e8706b8bb0a7fe88a3",
"peak_db": -4.04,
"loudness_db": -18.0,
"target_db": -18.0,
"generator": "tools/audio/recipes.gd"
},
"step_grass_1": {
"category": "footstep",
"loops": false,
"seconds": 0.22,
"sha256": "22a2bd90f3b588c8ccfa22efab837fc6c616f169e1669e2cf226cc2da5fa1300",
"peak_db": -9.76,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_grass_2": {
"category": "footstep",
"loops": false,
"seconds": 0.22,
"sha256": "324f1f657487dd6aca6f306e6ed0e1dcb0811eab85747bcbdc2d84dfb12604aa",
"peak_db": -7.17,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_rock_1": {
"category": "footstep",
"loops": false,
"seconds": 0.18,
"sha256": "e3a807d9dd4af50b5df046892fbdadb1bb0bdccc5c269d5593b53386939a577e",
"peak_db": -3.95,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_rock_2": {
"category": "footstep",
"loops": false,
"seconds": 0.18,
"sha256": "d0e5428402084e215827b27e2970349a300c70aed7713dbb8a7e4bf89dd9f1e6",
"peak_db": -3.05,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_sand_1": {
"category": "footstep",
"loops": false,
"seconds": 0.26,
"sha256": "a64ddb1b12ebd81519c341a88ceefee684e3f29d1c9c55da03766d304d196b71",
"peak_db": -6.09,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_sand_2": {
"category": "footstep",
"loops": false,
"seconds": 0.26,
"sha256": "9b69077d25cc225f805cf39ad8c1ef59270e9576451d825fae74b9b104f8bca2",
"peak_db": -5.39,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_shallows_1": {
"category": "footstep",
"loops": false,
"seconds": 0.4,
"sha256": "bb50596d7df3f35d34627ec99ad15845cff887b3414db1a83773eb67720d68f5",
"peak_db": -9.68,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_shallows_2": {
"category": "footstep",
"loops": false,
"seconds": 0.4,
"sha256": "71d194685dc0a4691e38aea75da99aab57a9a45a8c97a9c72bf9149c6647c842",
"peak_db": -9.66,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_wood_1": {
"category": "footstep",
"loops": false,
"seconds": 0.3,
"sha256": "2e090e4083221d26767b4cc6a0b19581a9b5c8802fc9aa1c9a367bceee44d946",
"peak_db": -5.18,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"step_wood_2": {
"category": "footstep",
"loops": false,
"seconds": 0.3,
"sha256": "13db663efad3f31e7fc6622ab387c2f5d406c6cebb3cb1c6a56043d4ead617f0",
"peak_db": -4.98,
"loudness_db": -24.0,
"target_db": -24.0,
"generator": "tools/audio/recipes.gd"
},
"surge": {
"category": "tide",
"loops": false,
"seconds": 3.5,
"sha256": "f4256bc08a72b21398db80872de4f8d37a5aac30fa43e7e73ca2aa083bac34eb",
"peak_db": -5.98,
"loudness_db": -12.0,
"target_db": -12.0,
"generator": "tools/audio/recipes.gd"
},
"swim": {
"category": "water",
"loops": false,
"seconds": 0.6,
"sha256": "089ea4461b4023fdfba8007a1a26e4b6033a04a058a45cdbb3cc62a1853da679",
"peak_db": -5.54,
"loudness_db": -18.0,
"target_db": -18.0,
"generator": "tools/audio/recipes.gd"
},
"swing_boathook": {
"category": "weapon",
"loops": false,
"seconds": 0.35,
"sha256": "b79c188f3e30e725eb8c169eee02031e45b44ff82b05750b31d9f4195073308d",
"peak_db": -2.18,
"loudness_db": -15.0,
"target_db": -15.0,
"generator": "tools/audio/recipes.gd"
},
"ui_back": {
"category": "ui",
"loops": false,
"seconds": 0.27,
"sha256": "b071fdd776579afd65aa04deebec85a96ef3c42c5618685a60889cfa70b9be45",
"peak_db": -6.35,
"loudness_db": -26.0,
"target_db": -26.0,
"generator": "tools/audio/recipes.gd"
},
"ui_click": {
"category": "ui",
"loops": false,
"seconds": 0.14,
"sha256": "25e825b7975be91744cbe68942aeba141538a09961fd862d131446dc92440e63",
"peak_db": -5.57,
"loudness_db": -26.0,
"target_db": -26.0,
"generator": "tools/audio/recipes.gd"
},
"ui_confirm": {
"category": "ui",
"loops": false,
"seconds": 0.9,
"sha256": "fb91d5ef05cfab1d9ee1f4141b71050a2156a12db92f203009a7ce48564206b2",
"peak_db": -11.36,
"loudness_db": -26.0,
"target_db": -26.0,
"generator": "tools/audio/recipes.gd"
},
"ui_hover": {
"category": "ui",
"loops": false,
"seconds": 0.08,
"sha256": "53db564707f8a01f27af3ba94513df6bc37431462cd1f9c1939625beacc3cc08",
"peak_db": -7.92,
"loudness_db": -26.0,
"target_db": -26.0,
"generator": "tools/audio/recipes.gd"
}
}