Hey I'm not sure what I'm doing wrong here.
If I have $DEV = "Hammond" then everything works fine in selecting different sweeps, but if it is not "Hammond" (it would be "Nord). All I get it the last Hammond Setting. Maybe my case construct is wrong but I've been pulling my hair out for hours.
TRIGGER_CLICK DevExp1Select =
{
switch($DEV)
{
case "Hammond":
switch($HammondExp1Type)
{
case "Swell":
Pedal 1 = SWHammondVol
$HammondExp1Type ="Vol"
break
case "Vol":
Pedal 1 = SWHammondSwell
$HammondExp1Type = "Swell"
break
default:
break
} //switch($HammondExp1Type)
break // case "Hammond"
default:
switch($NordExp1Type)
{
case "Swell":
Pedal 1 = SWNordMaster
$NordExp1Type = "Master"
break
case "Master":
Pedal 1 = SWNordCtl
$NordExp1Type = "Control"
break
case "Control":
Pedal 1 = SWNordSwell
$NordExp1Type = "Swell"
break
default:
Pedal 1 = SWNordSwell
$NordExp1Type = "Swell"
break
} //switch($NordExp1Type)
break
} //switch($DEV)
SendPedal 1
} //TRIGGER_CLICK DevExp1Select
I think it was working on 1.2 but I now how the 1.3 chip so not sure and don't want to go back and re-install the old chip.