Expand description
awsm-audio-player — the WebAudio playback engine for the awsm-audio editor.
Player owns the live AudioContext and a fixed master chain
(master gain → analyser → destination). Player::play instantiates an
authored Graph onto the context (see the build module) and routes it into the
master bus; Player::stop tears the instance down. The analyser exposes
time-domain samples for the editor’s waveform view.
Modules§
- bounce
- Offline rendering — “bounce” a Sound’s playable graph (plus its scheduled note
voices and control automation) to PCM via an
OfflineAudioContext. Runs faster than realtime and is deterministic, so the editor can freeze a Sound into an audio clip. - document
- Play a whole
SampleLibrarydocument — the same engine the editor drives, exposed so any application can load a saved project and play it. - worklet
- The generic WASM AudioWorklet shim.
Structs§
- Audio
Clip Part - One bounced audio clip to schedule on the arrangement timeline. Times are in
seconds;
startis relative to the playback origin (the controller applies the scrub seek),offsetis into the buffer,lengthis how long to play. - Control
Lane Part - One control lane to automate: a target node’s AudioParam plus its breakpoints (already resolved to seconds-from-start + absolute value + the curve reaching each point from the previous one).
- Player
- Owns the
AudioContextand the persistent master chain, plus whatever graph instance is currently playing. - Song
Voice Spec - One scheduled note within a
TriggerPart. - Trigger
Part - One sound’s worth of triggered notes within an arrangement: the instrument to instantiate, the arrangement node whose voice-bus its voices feed, and the notes (already resolved to seconds + transpose + gain).
Functions§
- version
- Version string baked from the crate manifest (handy link-check symbol).