Consider the following code:
powerMin = Draw.Slider( 'Power Min: ', EVENT_SLIDER_POWER_MIN, X_MARGIN, lines, SLIDER_WIDTH, SLIDER_HEIGHT, powerMin.val, AudioAnalysis.POWER_MIN, AudioAnalysis.POWER_MAX, 1, 'Minimum power amplitude data point.' )
The slider’s value can be changed by setting powerMin.val.
Now how do you change the minimum and maximum values for the slider? I’d like to do something similar to the following (which does not work):
powerMin.min = 5 powerMin.max = 105 powerMin.val = 5
If recreating a new Slider is the only option, how is the old one removed?