thanks, all! i will look at the radio button script (i forgot the name of this functionality - “radio buttons,” of course) and report back.
btw, i also stole a function called "TurnOffAllLightsExcept(index : integer) for this, so that my GP rackspace that looks like my pedal setup would do the same thing - i guess maybe i can adapt that function to do what i want with sending midi messages to the SST.
i realized after going to bed that i should have posted my script…here is the relevant part:
var
Button1 : Widget //clean button
Button2 : Widget //crunch button
Button3 : Widget //rhythm button
Button4 : Widget //lead button
cl : Widget //clean light
cr : Widget //crunch light
rh : Widget //rhythm light
ld : Widget //lead light
SST : MidiOutBlock // softstep
k1 : ControlChangeMessage //for setting LED for key 1
k2 : ControlChangeMessage //for setting LED for key 2
k3 : ControlChangeMessage //for setting LED for key 3
k4 : ControlChangeMessage //for setting LED for key 4
Initialization
lights = [cl, cr, rh, ld]
function TurnOffAllLightsExcept(index : integer)
var
i : integer
for i = 0; i < Size(lights); i = i + 1 do
if i <> index
then SetWidgetValue(lights[i], 0)
else SetWidgetValue(lights[i], 1)
end
end
end
//switch to clean
On WidgetValueChanged(newValue : double) from Button1
k1 = MakeControlChangeMessage(20,1)
k2 = MakeControlChangeMessage(21,0)
k3 = MakeControlChangeMessage(22,0)
k4 = MakeControlChangeMessage(23,0)
SendNowExternal(SST, k1)
SendNowExternal(SST, k2)
SendNowExternal(SST, k3)
SendNowExternal(SST, k4)
end
//switch to crunch
On WidgetValueChanged(newValue : double) from Button2
k1 = MakeControlChangeMessage(20,0)
k2 = MakeControlChangeMessage(21,1)
k3 = MakeControlChangeMessage(22,0)
k4 = MakeControlChangeMessage(23,0)
SendNowExternal(SST, k1)
SendNowExternal(SST, k2)
SendNowExternal(SST, k3)
SendNowExternal(SST, k4)
end
//switch to rhythm
On WidgetValueChanged(newValue : double) from Button3
k1 = MakeControlChangeMessage(20,0)
k2 = MakeControlChangeMessage(21,0)
k3 = MakeControlChangeMessage(22,1)
k4 = MakeControlChangeMessage(23,0)
SendNowExternal(SST, k1)
SendNowExternal(SST, k2)
SendNowExternal(SST, k3)
SendNowExternal(SST, k4)
end
//switch to lead
On WidgetValueChanged(newValue : double) from Button4
k1 = MakeControlChangeMessage(20,0)
k2 = MakeControlChangeMessage(21,0)
k3 = MakeControlChangeMessage(22,0)
k4 = MakeControlChangeMessage(23,1)
SendNowExternal(SST, k1)
SendNowExternal(SST, k2)
SendNowExternal(SST, k3)
SendNowExternal(SST, k4)
end