Files
logic-puzzle/assets/audio/AMBIENCE.md
T
Hadrian Burkhardt 68871ec573 Expand narrated story, preserve solved patterns, and add ambience
Connect the island story with new character memories and narrative transitions.
Blend each solved symbol into its artwork and retain a replayable pattern stamp.
Allow completed grids to be inspected after navigation and app restarts.
Reduce campaign difficulty spikes and keep explained story hints free.

Append 24 narrated continuations while preserving original PCM takes. Add
four offline environmental loops with saved mute/volume controls, scene
fades, narration ducking and lifecycle handling.

Validation: 31 unit/widget tests, Flutter analysis, narration and soundscape
asset checks, tablet discovery layouts and extended-audio integration,
including simultaneous active voice and ambience mixer tracks.
2026-11-02 05:04:57 +01:00

20 lines
1.6 KiB
Markdown

# Environmental soundscapes
Four original, procedurally rendered sound textures ship as 24-second, 24 kHz mono PCM16 WAV loops. No third-party recordings, models, downloads or samples are used for these soundscapes. They are sound design approximations rather than field recordings.
| File | Scene | Texture |
| --- | --- | --- |
| `ambience_cottage.wav` | Cottage and homecoming story pages | Soft air through trees and quiet timber movement |
| `ambience_harbour.wav` | Boat, anchor and shore bell | Small swells and water washing against the harbour wall |
| `ambience_bridge.wav` | Stone bridge | Steady current with changing surface turbulence |
| `ambience_tower.wav` | Gear, lens and lighthouse | Low sheltered wind with higher gusts |
`scripts/render_ambience.py` uses seeded spectral noise, slow periodic envelopes and a smooth loop join. `ambience_manifest.json` records seeds, format, frame counts and SHA-256 hashes. Reproduce with the narration Python environment (NumPy and soundfile), then validate with the standard-library checker:
```sh
python scripts/render_ambience.py
python3 scripts/check_soundscape_assets.py
```
The app plays bundled files, with no synthesis at runtime. Atmosphere defaults on inside the story. Sound & atmosphere saves a separate mute switch and volume, independent of the narration controls. Scene changes fade over 240 ms. The atmosphere falls to a quarter of its usual gain under narration. Muting, leaving the story or backgrounding stops it; foregrounding restores only environmental audio. Narration remains opt-in. Audio interruptions and headphone removal pause the players.