# Music for the Five Chapters Each chapter has an original composition with three synchronized stereo parts: an exploration lead, an ambient response, and a battle ensemble. The battle part has its own drums, string rhythms, and melody and can enter on the current harmony anywhere in the phrase. | Setting | Track | Exploration | Battle arrangement | Loop length | | --- | --- | --- | --- | --- | | Prehistoric settlement | Fire in the Empty Mountains | Triple meter in D. A low xiao flute introduces a short phrase that echoes between wood and pottery. | Frame drum accents shift across the three beats. Rim strikes and short bowed notes answer, with a rest at the end of the long phrase. | 34.29 seconds | | Xiliang | Dusk at the Mountain Pass | Quadruple meter in E. The xiao slides from low B to E over plucked strings and distant low bows. | Drums on either side trade dotted rhythms, followed by quick bows and short plucked notes. | 45.00 seconds | | Rainforest | Listening for Dew | Five beats in G minor. Low xiao, soft reeds, and droplet-like percussion answer across the forest. | Low drums group the five beats into two and three. Short, dark string notes move around the offbeats. | 40.54 seconds | | Coastal sandbar | The Long Shore at Ebb Tide | B-flat in 6/8. Xiao and felt piano span low bowed notes as harp echoes meet at the tide line. | Two deep drums answer in groups of three. Each string cycle starts on a different scale degree. | 37.06 seconds | | City streets | Torchlight Beneath the Clock Tower | Quadruple meter in E-flat. Low bows and felt piano support the strings, answered by glassy bell tones. | Low drum and frame drum alternate while short bows shift within the bar and distant bells ring out. | 34.29 seconds | The melodies, harmonies, synthesized instruments, and reverberation were created for the game. The xiao combines airflow, pipe harmonics, lip noise, and breath-driven pitch changes. The drums combine membrane resonances, attack transients, and frame resonance. Each chapter has a distinct stereo reflection pattern. Sustained notes and reverb tails wrap into the start of each loop. The source, `tools/music/render-score.py`, requires NumPy and python-soundfile. Each `music-{chapter}.js` contains two stereo exploration MP3s. On first contact, the game decodes the third part from `music-battle-{chapter}.js`. All three share loop points. Night reduces the response part, and rain and wind leave more room for ambient sound. Muting, pausing, or turning music off preserves phrase position. Entering another map starts its track from the beginning. The preview *From Flute to War Drums* uses the first 33.75 seconds of the Xiliang score. The first 9.55 seconds feature exploration. Drums and strings enter over about one second, and the flute begins to return at 24.35 seconds. Pass `--previews ` to render the sample, a five-chapter sequence, and complete dynamic previews.