Bundleware, Toolbar Script Reference

Last site update 29th October 2026

context.sound

ContextAPI 2

A deck of this toolbar's own music, made with Web Audio; it stops when this mount ends. Call play from an action: browsers start sound only after a click.

Signaturecontext.sound(onChange?: (state: SoundState) => void): Sound
Take it fromconst { sound } = useToolbar();

Parameters

ParameterTypeDescription
onChange(state: SoundState) => voidOptional.

Return Value

MemberTypeDescription
play(score, options?)voidPlays a score from the start, replacing what this deck was playing.
pause()void
resume()void
stop()void
set(options?)voidChanges the volume or the room while playing.

Availability

Applicable versionsAPI 2 and higher
Bundleware0.3.0, build 2026.10.29