audio
A module script.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2Chiptune audio: original 8-bit tunes, played through Audio components. The tunes live as `.soundClip` assets under /zero/source/pkmn/audio/ (imported from the synthesized WAVs); the synth below is the fallback that regenerates a clip if one is ever missing.
synthNote(freq: ?, dur: ?, wave: ?, vol: ?) → void
square/triangle/noise sample generators returning 0..255 (128 = silence)
| arg | type | description |
|---|---|---|
| freq | ? | |
| dur | ? | |
| wave | ? | |
| vol | ? |
silence(dur: ?) → void
| arg | type | description |
|---|---|---|
| dur | ? |
seq(notes: ?, wave: ?, tempo: ?) → void
| arg | type | description |
|---|---|---|
| notes | ? | |
| wave | ? | |
| tempo | ? |
u32(v: ?) → void
| arg | type | description |
|---|---|---|
| v | ? |
u16(v: ?) → void
| arg | type | description |
|---|---|---|
| v | ? |
wavBytes(pcm: ?) → void
| arg | type | description |
|---|---|---|
| pcm | ? |
overworld( ) → void
battle( ) → void
overworld( ) → void
battle( ) → void
blip( ) → void
tick( ) → void
hit( ) → void
faint( ) → void
levelup( ) → void
catch( ) → void
cry( ) → void
lowhp( ) → void
overworld( ) → void
battle( ) → void
blip( ) → void
tick( ) → void
hit( ) → void
faint( ) → void
levelup( ) → void
catch( ) → void
cry( ) → void
lowhp( ) → void
clip(name: ?) → void
Return the `.soundClip` asset ref for a tune, resolving the imported clip first and caching it. Returns nil if the clip can't be resolved or built.
| arg | type | description |
|---|---|---|
| name | ? |
ensure( ) → void
Resolve every tune up front (called off the awake path) so the first play doesn't pay a resolve/create cost mid-frame.
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.