ambience
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
ambience
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->TODO: describe this module.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
makeNoise(seed: number) → void
Synthesis A cheap deterministic noise source: two linear congruential streams so the bake is identical on every machine and every run.
| arg | type | description |
|---|---|---|
| seed | number |
loopable(frames: number, tail: number, gen: (number) → void
Generate `frames + tail` samples with `gen`, then fold the tail back over the head under a cosine crossfade. The result is `frames` long and seamless.
| arg | type | description |
|---|---|---|
| frames | number | |
| tail | number | |
| gen | (number |
reedWind(seconds: number) → buffer
Wind working through dead reed: broadband hiss shaped by a one-pole high-pass (the dry rattle of stalks) over a one-pole low-pass bed (the air itself), with the whole thing breathing on three slow, loop-periodic gusts.
| arg | type | description |
|---|---|---|
| seconds | number |
ditchWater(seconds: number) → buffer
Water in a cut. Almost nothing moves in these ditches, so this is mostly a low seep with an occasional drip off the bank — the drips are placed on a loop-periodic schedule so the pattern repeats with the waveform.
| arg | type | description |
|---|---|---|
| seconds | number |
bittern( ) → buffer
A bittern booming: three low pulses off a bird standing in the reed a long way off. Almost pure fundamental at 150 Hz with a little second harmonic, and a breath of noise drawn in before each one.
bake( ) → BakeReport
place(parent: any, name: string, clip: any, pos: { number }, opts: { volume: number, maxDistance: number, pitch: number }) → void
| arg | type | description |
|---|---|---|
| parent | any | |
| name | string | |
| clip | any | |
| pos | { number } | |
| opts | { volume: number, maxDistance: number, pitch: number } |
build(root: any) → void
| arg | type | description |
|---|---|---|
| root | any |
update(dt: number) → void
The bittern moves before it calls, so it never comes from the same place twice and never from anywhere you could walk to and find it.
| arg | type | description |
|---|---|---|
| dt | number |
teardown( ) → void
BakeReport = { [string]: string }Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.