First Light: Crowfeet
README.md
audio.recipes
Every noise First Light: Crowfeet makes, written down as a recipe: how long
it is, what rate it is computed at, whether it LOOPS, and a build that fills
a mono f32 buffer using audio.synth.
The palette is E minor opening to E major. The ground note of the cliff is E1 (41.2 Hz); the night score sits on E2 with the minor third G above it, and the dawn score is the same drone with G sharp in place of it. The one musical event of the round is that third turning over as the light comes — the score does not change key, tempo or instrument, only its third, so the change reads as the light rather than as a track swap.
Everything is dark, wet and close: a basalt face at four in the morning is not a place for bright sound.
Twenty-seven clips, in six families
- UI furniture — a tick, a struck E, a lower answer, a hollow low swell. The menus belong to the same cliff.
- crowfeet on basalt — the hop, the two landings (soft and hard), the four claws scrabbling for a lip and one of them taking hold, the whole body dragged up over it, and letting go.
- Eating — a beak on stone, and one sound per food: a grub giving way, a limpet prised off wet rock, and the crowfoot blossom, which is the best food on the cliff and earns a small bright note for it.
- Going wrong — a shelf cracking and a second of grit going down the face, the long fall, the sea closing over, the hop that does not happen when the crow is too weak, and the hollow under the breastbone when hunger is low.
- The two big moments — first light, where the chord swells and the third turns over with the murder waking far above it; and the flock lifting, which is thirty birds off a roost at once.
- The beds — four seamless loops: the sea and the wind on the face, the roost above you, and the two score decks.
How a bed can loop at all
opts.loopStart / loopEnd are stored by the encoder and read by no playback
surface, so the only loop that works is a clip that already joins to itself end
to end — and an Opus round trip loses the head of the clip, which is a click on
every pass. So every bed here is built loop-coherently (a held partial is a
WHOLE number of cycles across the buffer; a filter runs circularly; a struck
note's tail wraps round to the head) and baked codec = "pcm". synth.seamError
measures the join in the units the signal itself steps in: all four beds land
between 0.36 and 2.4, where a click reads in the tens or hundreds.
Baking
game/audio/bake.luau turns these into .soundClip assets under
/source/game/audio/clips:
execute { file = "/zero/source/game/audio/bake.luau", args = { names = { "hop" } } }
execute { file = "/zero/source/game/audio/bake.luau" } -- all of them
The bake seeds the noise generator from each clip's own name, so re-baking an untouched recipe produces the same bytes and a checksum only moves when the recipe moved. Nothing here runs at play time: the game ships baked clips, so a browser session synthesises nothing on the player's machine.
Owned by the sound slice.