Metronome volume step controlled by widget?

Try this gig:
Metro.gig (47.8 KB)

And this is the script used:

//$<AutoDeclare>
// DO NOT EDIT THIS SECTION MANUALLY
Var
   METRO : Widget
   DOWN : Widget
   UP : Widget
//$</AutoDeclare>


// Called when a single widget value has changed
On WidgetValueChanged(newValue : double) from UP
 if newValue == 1.0 then
    METRO.SetWidgetValue(Round((METRO.GetWidgetValue()+0.1)*10)/10.0)
 end   
End

// Called when a single widget value has changed
On WidgetValueChanged(newValue : double) from DOWN
 if newValue == 1.0 then
    METRO.SetWidgetValue(Round((METRO.GetWidgetValue()-0.1)*10)/10.0)
 end   
End

And with this setting you can define the lower and upper level of the Metronome

3 Likes