Repository navigation
API Interface OneShotOptions
Defined in: src/plugins/audio/runtime/oneShot.ts:22
Options for Audio.playOneShot (ADR 0074, api-and-models §1).
at?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:38
Start at this audio-clock time (seconds, the base of Audio.time). Past or omitted: as soon as possible. Ignored while Audio.status is "locked". Non-finite: warns, plays now.
bus?: string;Defined in: src/plugins/audio/runtime/oneShot.ts:34
The mixer bus to play on (ADR 0097); default Master. Unknown: Master plus the existing one-time warning.
dopplerLevel?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:45
With a position: scales the Doppler shift from the listener's motion, 0..5. Default 0 (opt in).
highpass?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:53
High-pass cutoff, Hz (10..24000; 20 and below is none).
lowpass?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:51
Low-pass cutoff, Hz (10..24000; 20000 and above is none). The lowest low-pass wins over automation's.
maxDistance?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:32
With a position: the distance where the falloff stops, metres (default 100).
minDistance?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:30
With a position: full volume inside this distance, metres (default 1).
occlusion?: boolean;Defined in: src/plugins/audio/runtime/oneShot.ts:43
With a position: walls between the sound and the listener muffle it. Default true.
offset?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:40
Start this many seconds into the clip (ADR 0343, 0348: audition from a point; a trimmed sample: into its trimmed sound, ADR 0342). 0 or omitted: the start; past the end it ends at once. Negative or non-finite: warns, plays from the start.
pitch?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:28
Ratio, default 1, clamped 0.0625..16.
position?: Vec3Like;Defined in: src/plugins/audio/runtime/oneShot.ts:26
World metres; omitted = flat. Play spatially at this world point.
priority?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:36
0..255, default 128. Mostly decides who is stolen when a limit is hit; it only mildly raises audibility (at most +6 dB in selection).
reverbSend?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:47
With a position: how much goes to the reverb zones that hold it, 0..2. Default 1.
reverbSendCurve?: Curve;Defined in: src/plugins/audio/runtime/oneShot.ts:49
With a position: the reverb send against distance. Default: full send up close, half at maxDistance.
volume?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:24
Linear gain, default 1.
yaw?: number;Defined in: src/plugins/audio/runtime/oneShot.ts:55
Ambisonic clips: turns the recording about the vertical axis, degrees (-180..180), positive to the right (clockwise seen from above, ADR 0164).
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