Bundleware, Toolbar Script Reference

Last site update 29th October 2026

useLevels

HookAPI 2

The toolbar's sound levels, re-rendering every frame while it plays. With smoothing (0 up to 1), levels rise at once and fall away gradually.

SignatureuseLevels(count?: number, options?: LevelOptions & { smoothing?: number }): readonly number[]
Take it fromconst { useLevels } = Bundleware;

Parameters

ParameterTypeDescription
countnumberOptional.
optionsLevelOptions & { smoothing?: number }Optional.
options.lownumberOptional.
options.highnumberOptional.
options.smoothingnumberOptional.

Return Value

Typereadonly number[]

Availability

Applicable versionsAPI 2 and higher
Bundleware0.3.0, build 2026.10.29