score
<!-- zero:scaffolded-readme --> <!-- Replace the line below with what this module provides and who consumes it, then delete both comment lines. -->
score
<!-- 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
arrival(tSeen: number, range: number) → number
When a sound leaving a source `range` metres away at film time `tSeen` reaches the ears.
| arg | type | description |
|---|---|---|
| tSeen | number | Film seconds at which the event was SEEN. |
| range | number | Metres from the event to the camera. |
emitted(tHeard: number, range: number) → number
The film time whose sound is reaching the ears now from `range` metres away — the inverse of `arrival`, for a source whose loudness envelope has to be read at the moment it was emitted rather than the moment it lands.
| arg | type | description |
|---|---|---|
| tHeard | number | |
| range | number |
score_shore( ) → void
score_secondsun( ) → void
score_lid( ) → void
amb_lagoon_night( ) → void
amb_fire( ) → void
amb_ashfall( ) → void
amb_steam( ) → void
sfx_water_lap( ) → void
sfx_herd( ) → void
sfx_birds_lift( ) → void
sfx_channel_drain( ) → void
sfx_blast( ) → void
sfx_surge( ) → void
sfx_ignite( ) → void
clip(key: string) → any
| arg | type | description |
|---|---|---|
| key | string |
rebind( ) → void
Forget every resolved clip, so a clip that finished generating after the film first ticked is picked up on the next tick.
makeSource(name: string, fields: { [string]: any }) → Deck
| arg | type | description |
|---|---|---|
| name | string | |
| fields | { [string]: any } |
build( ) → void
setDeck(deck: Deck?, key: string?, gain: number) → void
Assign a deck's clip only when it changes — writing `clip` restarts the voice, so doing it every frame would hold every source at its first sample.
| arg | type | description |
|---|---|---|
| deck | Deck? | |
| key | string? | |
| gain | number |
place(deck: Deck?, x: number, y: number, z: number) → void
| arg | type | description |
|---|---|---|
| deck | Deck? | |
| x | number | |
| y | number | |
| z | number |
scoreMix(t: number) → void
Which score cue is playing, and how loud, at film time `t`. Two cues overlap across a 3 s cross-fade at each act change.
| arg | type | description |
|---|---|---|
| t | number |
scoreLevel(t: number) → number
The score's own level. It is nearly nothing under act I, it climbs with the fireball, it is at its loudest under the ejecta, and it thins to a single held chord under the lid.
| arg | type | description |
|---|---|---|
| t | number |
bedMix(t: number) → void
| arg | type | description |
|---|---|---|
| t | number |
fireOneShots(t: number, dt: number) → void
| arg | type | description |
|---|---|---|
| t | number | |
| dt | number |
tick(t: number, dt: number) → void
Put the whole mix into the state film time `t` describes. Idempotent: one call lands the mix, and calling it again at the same `t` changes nothing.
| arg | type | description |
|---|---|---|
| t | number | |
| dt | number |
report( ) → void
The delay law's arithmetic for this film's own events, and every source's live gain and reason for silence. What to read when the film looks right and sounds wrong.
teardown( ) → void
Drop every source this stage authored, so the next tick rebuilds them.
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.
Inside
1 problem across 1 itemagent_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.