macOS Music App Volume Control

Easiest way: just download the json attached above and import it to BTT.
Otherwise create a slider widget, assign the first code to its display (the codebox on the right), then make it do the action Apple Script async in background with the second script here.

Find a slider also in my PHoeNiX Preset!