Repository navigation
API Interface Bus
Defined in: src/engine/audio/mixer.ts:247
A bus, as game code sees it: Audio.bus("Music").volume = 0.5. A return is reached the same way. Unknown names give an inert bus.
readonly name: string;Defined in: src/engine/audio/mixer.ts:249
get activeVoices(): number;Defined in: src/engine/audio/mixer.ts:271
Sounds playing on this bus right now.
number
get authoredMute(): boolean;Defined in: src/engine/audio/mixer.ts:269
The project's mute, read-only to scripts.
boolean
get authoredVolume(): number;Defined in: src/engine/audio/mixer.ts:261
The project's fader (audio.json's volumeDb, as a gain), read-only to scripts; the editor changes it through mixer.apply.
number
get duckGain(): number;Defined in: src/engine/audio/mixer.ts:277
The duck lane's gain, 1 = not ducked, 0..1. On the core backend, STATUS's busDuck (a block old, ADR 0172 §1.1); on the Babylon fallback, main's presence-duck computation.
number
get effectiveGain(): number;Defined in: src/engine/audio/mixer.ts:275
Product of every gain up the tree, all lanes: the level reaching the speakers from this bus.
number
get exists(): boolean;Defined in: src/engine/audio/mixer.ts:252
Whether the project has a bus (or a return) with this name.
boolean
get loudness(): BusLoudness;Defined in: src/engine/audio/mixer.ts:281
Loudness readings and controls; a stable object allocated once per bus, like peak.
BusLoudness
get mute(): boolean;Defined in: src/engine/audio/mixer.ts:263
Runtime switch set by scripts, default false; effective mute = authored mute OR this OR a monitor control. Mute silences the bus and its sends.
boolean
set mute(m): void;Defined in: src/engine/audio/mixer.ts:264
boolean
void
get peak(): number;Defined in: src/engine/audio/mixer.ts:273
The newest peak level on this bus (max of L and R, linear, decayed for display); 0 while the audio is locked. Declared by A1.6 (K10); fed by the core backend from STATUS (0 on the Babylon backend).
number
get solo(): boolean;Defined in: src/engine/audio/mixer.ts:266
While any bus is soloed, only soloed buses (and the buses they feed and pass through, and returns) are heard. Default false.
boolean
set solo(m): void;Defined in: src/engine/audio/mixer.ts:267
boolean
void
get volume(): number;Defined in: src/engine/audio/mixer.ts:258
Runtime multiplier, linear 0..2, default 1, set by scripts. Acts on top of authoredVolume; never written to
audio.json. Authored 2 x runtime 2 = 4 is legal; the master limiter catches it. A fade in progress reads its
current value on the heard clock.
number
set volume(v): void;Defined in: src/engine/audio/mixer.ts:259
number
void
fadeTo(v, seconds): void;Defined in: src/engine/audio/mixer.ts:279
Ease volume to v over seconds (0 jumps over BUS_MIN_RAMP_MS, never an unramped step). One ramp record, not one per display frame.
number
number
void
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference