This can already be done with a rather trivial GPScript.
Var
MetronomeVol : Widget
On WidgetValueChanged(newValue : double) from MetronomeVol
SetMetronomeVolume(newValue)
End
Attached is a rackspace you can just drag into a gig to see how you would use it.
MetronomeExample.rackspace (8.8 KB)