Dev log #20 · Systems · · 4 min read
A living steppe score: horizon beds, solo voices, and raid takeover
Rebuilding Bodun's adaptive music runtime from the ground up: 64-second non-metronome stereo horizon beds, a live director weaving 36 solo steppe phrases across stereo space, 8 event stingers, an exclusive 112 BPM war-gallop takeover, and a matching interactive browser director.
Playtesting long campaigns in Bodun made one weakness of our earlier adaptive music clear: locking every layer to a repeating 16-bar, 72 BPM pulse worked for a single listen, but over an hour on the world map the metronome grid revealed itself. This update replaces that fixed-grid approach with a procedural steppe score director built to breathe for hours—and you can audition the exact same engine live on the soundtrack page.
Horizon Beds Without A Metronome
All 19 non-combat world layers—three base beds, three variations per season, and state beds for camp, migrating, decision, and starving—are now 64-second stereo non-metronome horizon beds. Rather than repeating a rhythmic bar pattern, they carry living open-fifth D2 drones, bowed resonance, soft wind and hearth air, and sparse harmonic swells with zero-latency circular limiting so loop wraps remain completely click-free.
In the engine, MusicDirector rotates base and seasonal variations phase-locked across the full loop boundary with equal-power crossfades, applies uniform headroom scaling across stacked layers, and opens quiet 26–45 second rest windows after two calm cycles so world ambience and hearth fire can breathe on their own.
Live Solo Phrases And Six Context Pools
Melodic and rhythmic character now lives outside the looping beds in a new Phrase Director (PhraseDirectorPlayer) running two alternating stereo voice channels. It schedules 36 hand-crafted solo steppe phrases (4.3–8.3 s each)—pear-wood dombra and topshuur flicks, baritone morin khuur and igil lines, tsuur breath calls, tuned D2 khomus jaw harp, and wordless throat voices—placing each phrase naturally across the stereo field with gentle gain variation and no immediate repetition.
Six context-aware pools follow live ECS state automatically:
- Open Steppe (
common): year-round dombra, morin khuur, tsuur, and khomus phrases. - Yayla (
spring,summer) & Frost (autumn,winter): seasonal voice sets shifting between warm open-plateau bows and sparse cold igil and overtone glints. - On the Move (
migrating), Council (decision), and Hunger (starving): state-specific pools that rise to 4× selection weight whenever the clan packs its gers, faces a dilemma or Kurultai, or endures low rations.
Transition Cues And Exclusive Raid Takeover
MusicRuntimeStateSystem now wires all five gameplay overlays from live ECS components (TribeComponent, CampTransitionState, HardshipState, KurultaiState, DilemmaState, WolfPackState, ArbanParty, and WarEntry) with hysteresis hold timers and enqueues 8 stereo transition stingers (season_spring, season_summer, season_autumn, season_winter, ovoo_raised, migration_depart, dilemma_open, and combat_alert) that briefly duck the horizon beds as they land.
When raiders or wolves strike, combat no longer stacks awkwardly on top of a calm drone. Configured as an exclusive takeover (BaseDuck = 0, SeasonDuck = 0), combat_alert cuts through, calm beds and solo phrases step aside, and a 112 BPM 2/4 war-gallop built around stereo khengereg frame drums, bowed strings, and deep throat vocals launches cleanly from beat one. Once the raid passes, the steppe exhales back into the active season.
Acoustic Multisample Pipeline And Credits Cleanup
Every bed, phrase, and stinger is rendered in stereo from acoustic CC0 1.0 recordings—Versilian Studios VCSL frame drums, bass drum, bass recorder, strumstick, shakers, ocean drum, and bell; FreePats Nivkh jaw harp; and Freesound CC0 erhu, cello, nylon plucks, bamboo flutes, hooves, room impulse responses, and five wordless throat voices—alongside the credited CC BY 4.0 morin khuur recording (677538). Legacy FluidSynth/GeneralUser GS music paths, the removed 232410 vocal excerpt, and the old AI stem prompt libraries have been retired from both the codebase and the in-game Credits.
Browser Director On The Soundtrack Page
The interactive widget on Bodun's soundtrack page now runs a Web Audio copy of this exact director with all 10 stereo beds, 8 event cues, and 36 solo phrases:
- Stereo Horizon Strip: replaces the old 16-bar counter with a live left-to-right stereo display showing each sounding solo instrument, event cue, or 112 BPM raid pulse.
- Solo Voices Row: toggle procedural phrases on or off to compare bare horizon beds against the full mix, or click Next voice to summon a fresh phrase immediately from the active pool.
- Hear a Year Pass: press Hear a year pass—and then Hear another year—to follow a guided four-season arc where both the solo steppe voices and key turning points shift organically from one listen to the next.