The encounter enters battleContact, fill and Anchor
132 BPM
The area score ducks under a four-note call. The call leaves a quiet pedal under the approved one-bar fill. The first bar of Anchor starts the repeating section.
The sixteen-bar theme keeps its skipping subject, falling turn, combat lift and held answer. The general mix pairs Lo-Fi Pluck with Felt Keys. The calm mix uses Glass Grains, Open Fifths and an acoustic kit. The fast mix uses Reed, Deep End and a harder kit. Each preserves its saved levels.
Play the Main ThemePlay the calm mixPlay the fast mix
Select the cue by place
Home and City give the held answer different balances. City and the moving metro share a playhead. Train motion brings the city's drums forward. Thanadox uses short taped plucks and the relay kit. A facility pursuit brings in a separate alert cue. A brief hold keeps the mix steady around chase corners and through contact.
On the rebuilt metro route, the Car 2 departure starts the moving mix.
Braking returns to the City arrangement before the Thanadox door opens.
The wheel loop, door cues and the cabin's PA play on the world effects bus.
Play HomePlay CityPlay moving metroPlay ThanadoxPlay Facility Alert
Match phase when intensity changes
When a shadow pursues, the Main Theme crossfades into the corresponding phrase position in the faster mix. Each print keeps its own tempo during the overlap. Native streams the selected cue. Web Audio decodes the selected print at its original rate. Both release the previous source after the fade.
Play the crossfade example
Time the encounter to shadow contact
At contact, the area mix ducks under a compressed D-minor Anchor call. The call hands off to the approved fill during the glitch. Its quiet tail carries through the spaces in the fill. The separate loop boundary sits one bar into the Anchor file, so the fill plays once. A glass descent marks escape, a major third marks victory and a lower minor figure marks defeat. The result music holds through the return and crossfades into the area. Music Lab can play each cue separately or run the four in order. The mixer retains the four-bar ramp into Anchor. On the web, the prepared fill starts on the encounter cue's audio clock, even when the render thread is busy. The tuning player draws the captured frames from the same Web Audio clock that advances the gain ramps. On a phone, the timeline stays visible while the sliders are open.
Play the encounter handoffPlay Anchor from the fill
The Beat lock combat trial (#824) lets the score lead. Anchor plays exactly as authored at 132 BPM, and every combat tick lands on its beat grid, one tick a beat at the shipped rate (2.2 ticks a second instead of 2.25). The combat state counts the score's beats on the logic clock. In live play it compares that count with the audio clock four times a second and corrects it when they drift by more than 14 ms. Each correction is recorded in the session as a beat sync command, so a replay applies the same value on the same tick without reading audio. A tick that would land off the grid, after a hold, a slow frame or a late music start, is slowed to the next beat or pulled in by at most 15 percent of a tick. The ticks stutter and the music does not. Round 2 sliced the loop on every tick, which stuttered audibly whenever frames ran late. The Music muffles trial (#909) subdues the loop while the timeline holds: a low-pass closes toward 650 Hz and the level ducks up to 5 dB, in proportion to the Tempo lost since the hold began, and both open again within about 0.15 s of a commit. The muffle never touches the playback rate or the play position, so the beat grid stays exact. The score can also slow the loop by up to 6 percent for a deliberate moment such as a boss phase change, never from Tempo. The filter chain is only wired in when a muffle or calm is asked for. Tempo adds a hat line on the ticks, halves and quarters. Each layer fades in on its own stretch of the meter, so the line thickens with no step at a Tempo level and tops out about 10 dB under a full-level hat. Beat lock research
Play notes capture the cue held by the audio system at that tick. When an
arrangement change is still loading, the note names the cue that is still
playing. Operator replays can use the captured cue because historical input
recordings do not contain the browser’s audio output.
Compare a new palette in Music Lab
The Music Lab compares four-bar phrases, instruments, drums and textures over a fixed backing. A melody and lead together select a pre-rendered take, all locked to a D-centered 120 BPM clock. The counterpoint auditions render the subject and its answers on independent voices, with the selectable lead playing the top line. The print includes wavetable, FM and additive layers, a soft saturation stage and a short convolution room. Swaps start at the current loop offset and crossfade. The owner can review one variable per deck, shuffle the layers in the mixer, and save a specific mix with a link. The mixer keeps Play and Stop visible while the owner scrolls through layers on a phone.
The melody-only pass compares twelve edited Bach phrases with the same front voice, quieter lower answer, jungle break and supporting bed. It keeps long holds and rests, caps overlap in each voice and moves coincident notes together on the swung grid. Each pass retains its catalog release, votes, and typed or recorded notes. A completed pass produces a source-linked draft for deciding goals, setting, constraints and palette. The audio inputs, patch credits and render steps are in the toolbelt. Music toolbelt
The game-score pass extracts four-bar lead phrases from original CC0 MIDI. The same fit grader checks them against two jungle breaks before the chosen phrases are played on the Lab synths. The motif catalog records the original bar range, track and score hash for each phrase. The focused pass keeps its own version and shares its audio with the full Lab catalog.
Arrange a full cue in the Lab
Round 6 expands the four-bar subjects into 64 to 80 second cues with an intro, main section, breakdown and return. The main theme uses the skipping BWV 788 subject, its falling turn and its held answer in different sections. The lower lead carries farther after the listening pass. City, facility, home and combat vary the source cells, registers, gates or break. A cue preset holds its own loop clock and starts drums, bass, two distinct leads, pads and texture together. The lead and its answer can be adjusted independently. The renderer meters the summed mix and applies a shared gain stage to all six locked stems, so recombining them preserves the intended balance and loop point. These are audition arrangements. Score and preset render
The community instrument pass adds 20 credited voices selected from 66 performances of the same phrase. Surge renders its patches directly. A Python host prints VST3 voices. A small LV2 host restores the additive synth state. The active palette and the focused review share the same audio files. An interrupted native render can resume from finished stems.
The next cue audition gives each location its own lead and drum kit. It keeps the previous Home mix as one City candidate and matches its loudness to a new City arrangement for comparison. Thanadox retains its phrase and backing while the new lead and kit change the attacks. The report checks six phase-aligned stems per cue after export. Its player measures decoded length in whole samples to allow one frame of resampling rounding. Round 7 cue renderer
Play a cue at a changing tempo
The sixteen-bar Main Theme uses the BWV 788 subject, falling turn and held answer, with the shorter BWV 784 hook at the lift. The mixer groups its eleven layers by melody, harmony, low end, rhythm and texture. Keys and arps follow the pad harmony, and separate percussion plays around the main hits. The exploration mix leaves room between the hits. Higher intensity opens rolling kicks and ghosts, then brings up hats, octave bass pickups and high glass accents.
The browser reads a score in beats. It schedules the next notes and hits against the audio clock and uses fixed-pitch recordings of each instrument. The beat clock speeds up and slows down through the ramp. Note onsets and releases follow it, and the sample playback rate stays at one. The four-bar return continues from the current beat. Every mixer layer has instrument choices. Banks for a given layer share the same sample ranges, so a new voice plays the next unscheduled note or hit while sounding notes finish with their original voice. Ambience crossfades at the current position in its loop. The combat ramp ends at 132 BPM and manual tempo reaches 176 BPM. Three owner-saved picks sit above five starter mixes. The comparison uses the same score, audio banks and playhead. The current mix provides the reference, and a pick recalls its saved voices, levels, tempo and intensity. An upper-mid spectrum check guided which bright voices to retire from new pickers. Older releases retain their original banks. On phones, starter mixes start collapsed. The transport keeps the current-mix and save controls visible, and the tempo summary shows the current BPM and phase. A saved mix recalls the instruments, clock setting, intensity, faders, mutes and solos from its versioned score. Music Lab score and controls
Measure a cue revision
The Home revision reads the onset of each electric-key, felt, pad and bass note against its intended beat. It keeps the swung drum grid and checks the extra delay between the event and a measurable attack. The pitch audit compares three windows per note with A440 and accounts for the electric key patch's octave. The approved City and Thanadox masters are pinned by content hash.
Two battle auditions use separate entrance stings and seven synchronized stems over 16 bars at 132 BPM. The lower part and breakbeat drive the base loop. Ghost hits, octave pickups and high glass form an intensity stem that can rise on the same beat clock. The audition checks the decoded stem sum, true peak, and one-shot and loop boundaries. Round 8 cue renderer
A second Home pass compares stronger attacks after tone and room processing with the decoded drum stem. It finds the first 6 ms RMS windows at 50% and 80% of each early peak, then checks whether intentional accents line up with the kit. It also prints a click comparison at the intended beat positions. The new voice removes the early room reflection and follows the swung brush hits. The two Glassline hooks use the same pulse voice and pinned rhythm stems so the player can compare their phrasing at the same level. Round 9 renderer and attack audit
A later Glassline pass writes one short rhythm for the call and its pitch sequences, then holds the cadence on beat 3 every fourth bar. The score check looks for repeated cells, a small set of note lengths and room to breathe at the phrase boundary. Three one-bar pickups enter the same 132 BPM loop for comparison. Home is an exact sum of the six archived preset lanes. The apartment plays the 64-second print at the saved level. Round 10 render and rhythm check
The Materials Gallery rail wash plays as a sound effect on the train's fixed crossing clock. That clock also drives the moving street shadow.
Limits
The three Main Theme mixes crossfade at corresponding phrase positions. Their tempos can diverge during the short overlap. Gameplay events have their usual timing independently of the score.
The hold muffle and a deliberate calm recede the whole Anchor print rather than only its percussion, since it is one mixed print. Under Beat lock a tick can land up to one frame off the heard beat: a frame that runs several logic ticks plays their clicks and hats together, and the audio clock is read once a frame. A Tick rate that is not a whole number of ticks a beat lands on its own grid from the print's start, so at 1.25x only every fourth tick meets a beat.
Music Lab browser checks share the devbox render pool with player checks. A queued comparison waits for a free renderer before opening Chromium or WebKit.
The Gallery capture now shows the cyan rail gate and magenta wayfinding
above the plaza. The Gallery and metro ride keep their existing music
transitions.
The Metro Ride evidence still follows the same station, tunnel and city cues
through the two strips' changed emissive treatment.